Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
ea348bd6
Commit
ea348bd6
authored
Sep 28, 2005
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* examples/nettle-benchmark.c (main): Benchmark openssl md5 and
sha1. Rev: src/nettle/examples/nettle-benchmark.c:1.13
parent
e57dd37c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
examples/nettle-benchmark.c
examples/nettle-benchmark.c
+5
-3
No files found.
examples/nettle-benchmark.c
View file @
ea348bd6
...
...
@@ -162,11 +162,11 @@ init_key(unsigned length,
static
void
display
(
const
char
*
name
,
const
char
*
mode
,
double
speed
)
double
time
)
{
printf
(
"%1
3
s (%s): %.3fMB/s
\n
"
,
printf
(
"%1
8
s (%s): %.3f
MB/s
\n
"
,
name
,
mode
,
1
/
(
speed
*
1048576
.
0
/
BENCH_BLOCK
));
BENCH_BLOCK
/
(
time
*
1048576
.
0
));
}
static
void
*
...
...
@@ -295,7 +295,9 @@ main(int argc UNUSED, char **argv UNUSED)
const
struct
nettle_hash
*
hashes
[]
=
{
&
nettle_md2
,
&
nettle_md4
,
&
nettle_md5
,
OPENSSL
(
&
nettle_openssl_md5
)
&
nettle_sha1
,
&
nettle_sha256
,
OPENSSL
(
&
nettle_openssl_sha1
)
NULL
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment