Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nettle / testsuite / md4-test.c
blobd46693d63da2e173c85c6b7b47b7ce5d2360a0f6
1 #include "testutils.h"
2 #include "md4.h"
4 void
5 test_main(void)
7 /* Testcases from RFC 1320 */
8 test_hash(&nettle_md4, SDATA(""),
9 SHEX("31d6cfe0d16ae931b73c59d7e0c089c0"));
10 test_hash(&nettle_md4, SDATA("a"),
11 SHEX("bde52cb31de33e46245e05fbdbd6fb24"));
12 test_hash(&nettle_md4, SDATA("abc"),
13 SHEX("a448017aaf21d8525fc10ae87aa6729d"));
14 test_hash(&nettle_md4, SDATA("message digest"),
15 SHEX("d9130a8164549fe818874806e1c7014b"));
16 test_hash(&nettle_md4, SDATA("abcdefghijklmnopqrstuvwxyz"),
17 SHEX("d79e1c308aa5bbcdeea8ed63df412da9"));
18 test_hash(&nettle_md4,
19 SDATA("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
20 "0123456789"),
21 SHEX("043f8582f241db351ce627e153e7f0e4"));
22 test_hash(&nettle_md4,
23 SDATA("12345678901234567890123456789012345678901234567890"
24 "123456789012345678901234567890"),
25 SHEX("e33b4ddc9c38f2199c3e7b164fcc0536"));
27 /* Additional test vectors, from Daniel Kahn Gillmor */
28 test_hash(&nettle_md4, SDATA("38"),
29 SHEX("ae9c7ebfb68ea795483d270f5934b71d"));
30 test_hash(&nettle_md4, SDATA("abc"),
31 SHEX("a448017aaf21d8525fc10ae87aa6729d"));
32 test_hash(&nettle_md4, SDATA("message digest"),
33 SHEX("d9130a8164549fe818874806e1c7014b"));
34 test_hash(&nettle_md4, SDATA("abcdefghijklmnopqrstuvwxyz"),
35 SHEX("d79e1c308aa5bbcdeea8ed63df412da9"));