Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
0e577b14
Commit
0e577b14
authored
Sep 28, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Progress indicator for test_hash_large.
parent
7e9b73e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
ChangeLog
ChangeLog
+3
-0
testsuite/testutils.c
testsuite/testutils.c
+7
-1
No files found.
ChangeLog
View file @
0e577b14
2013-09-28 Niels Möller <nisse@lysator.liu.se>
2013-09-28 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.c (test_hash_large): Added simple progress
indicator.
* macros.h (MD_PAD): Use size argument, don't depend on
* macros.h (MD_PAD): Use size argument, don't depend on
sizeof of the count field(s).
sizeof of the count field(s).
...
...
testsuite/testutils.c
View file @
0e577b14
...
@@ -592,7 +592,13 @@ test_hash_large(const struct nettle_hash *hash,
...
@@ -592,7 +592,13 @@ test_hash_large(const struct nettle_hash *hash,
hash
->
init
(
ctx
);
hash
->
init
(
ctx
);
for
(
i
=
0
;
i
<
count
;
i
++
)
for
(
i
=
0
;
i
<
count
;
i
++
)
{
hash
->
update
(
ctx
,
length
,
data
);
hash
->
update
(
ctx
,
length
,
data
);
if
(
i
%
(
count
/
50
)
==
0
)
fprintf
(
stderr
,
"."
);
}
fprintf
(
stderr
,
"
\n
"
);
hash
->
digest
(
ctx
,
hash
->
digest_size
,
buffer
);
hash
->
digest
(
ctx
,
hash
->
digest_size
,
buffer
);
print_hex
(
hash
->
digest_size
,
buffer
);
print_hex
(
hash
->
digest_size
,
buffer
);
...
...
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