Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nettle / testsuite / ripemd160-test.c
blob85518e6b08c676dc599f4d1c86ea4e912bdfa9d3
1 #include "testutils.h"
2 #include "ripemd160.h"
4 void
5 test_main(void)
7 test_hash(&nettle_ripemd160, SDATA(""),
8 SHEX("9c1185a5c5e9fc54612808977ee8f548b2258d31"));
10 test_hash(&nettle_ripemd160, SDATA("a"),
11 SHEX("0bdc9d2d256b3ee9daae347be6f4dc835a467ffe"));
13 test_hash(&nettle_ripemd160, SDATA("abc"),
14 SHEX("8eb208f7e05d987a9b044a8e98c6b087f15a0bfc"));
16 test_hash(&nettle_ripemd160, SDATA("abcdefghijklmnopqrstuvwxyz"),
17 SHEX("f71c27109c692c1b56bbdceb5b9d2865b3708dbc"));
19 test_hash(&nettle_ripemd160, SDATA("message digest"),
20 SHEX("5d0689ef49d2fae572b881b123a85ffa21595f36"));
22 test_hash(&nettle_ripemd160,
23 SDATA("ABCDEFGHIJKLMNOPQRSTUVWXYZ"
24 "abcdefghijklmnopqrstuvwxyz0123456789"),
25 SHEX("b0e20b6e3116640286ed3a87a5713079b21f5189"));
27 test_hash(&nettle_ripemd160,
28 SDATA("1234567890123456789012345678901234567890"
29 "1234567890123456789012345678901234567890"),
30 SHEX("9b752e45573d4b39f4dbd3323cab82bf63326bfb"));
32 /* Additional test vector, from Daniel Kahn Gillmor */
33 test_hash(&nettle_ripemd160, SDATA("38"),
34 SHEX("6b2d075b1cd34cd1c3e43a995f110c55649dad0e"));