Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
9ded2d15
Commit
9ded2d15
authored
Aug 28, 2011
by
Andres Mejia
Committed by
Niels Möller
Aug 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New file, contributed by Andres Mejia.
Rev: nettle/testsuite/ripemd160-test.c:1.1
parent
df696584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
testsuite/ripemd160-test.c
testsuite/ripemd160-test.c
+37
-0
No files found.
testsuite/ripemd160-test.c
0 → 100644
View file @
9ded2d15
#include "testutils.h"
#include "ripemd160.h"
int
test_main
(
void
)
{
test_hash
(
&
nettle_ripemd160
,
0
,
""
,
H
(
"9c1185a5c5e9fc54612808977ee8f548b2258d31"
));
test_hash
(
&
nettle_ripemd160
,
1
,
"a"
,
H
(
"0bdc9d2d256b3ee9daae347be6f4dc835a467ffe"
));
test_hash
(
&
nettle_ripemd160
,
3
,
"abc"
,
H
(
"8eb208f7e05d987a9b044a8e98c6b087f15a0bfc"
));
test_hash
(
&
nettle_ripemd160
,
26
,
"abcdefghijklmnopqrstuvwxyz"
,
H
(
"f71c27109c692c1b56bbdceb5b9d2865b3708dbc"
));
test_hash
(
&
nettle_ripemd160
,
14
,
"message digest"
,
H
(
"5d0689ef49d2fae572b881b123a85ffa21595f36"
));
test_hash
(
&
nettle_ripemd160
,
62
,
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz0123456789"
,
H
(
"b0e20b6e3116640286ed3a87a5713079b21f5189"
));
test_hash
(
&
nettle_ripemd160
,
80
,
"1234567890123456789012345678901234567890"
"1234567890123456789012345678901234567890"
,
H
(
"9b752e45573d4b39f4dbd3323cab82bf63326bfb"
));
/* Additional test vector, from Daniel Kahn Gillmor */
test_hash
(
&
nettle_ripemd160
,
LDATA
(
"38"
),
H
(
"6b2d075b1cd34cd1c3e43a995f110c55649dad0e"
));
SUCCESS
();
}
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