d03ab969 |
1 | # Test vectors for MD4 hash function |
d03ab969 |
2 | |
3 | # --- Basic hash function --- |
4 | # |
5 | # Test vectors from RFC1186 and some others I generated using the reference |
6 | # implementation. |
7 | |
8 | md4 { |
d03ab969 |
9 | "" 31d6cfe0d16ae931b73c59d7e0c089c0; |
10 | "a" bde52cb31de33e46245e05fbdbd6fb24; |
11 | "abc" a448017aaf21d8525fc10ae87aa6729d; |
12 | "message digest" d9130a8164549fe818874806e1c7014b; |
13 | "abcdefghijklmnopqrstuvwxyz" |
14 | d79e1c308aa5bbcdeea8ed63df412da9; |
15 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" |
16 | 043f8582f241db351ce627e153e7f0e4; |
17 | } |
18 | |
19 | # --- HMAC mode --- |
20 | # |
21 | # No test vectors available. The HMAC implementation has not been tested |
22 | # against an external reference. However, MD4 isn't strong enough to make |
23 | # a realistic MAC anyway, and use of md4-mac is thoroughly deprecated. The |
24 | # HMAC code is autogenerated anyway, and ought to be reliable and correct. |
25 | # |
26 | # These test vectors are here to spot changes in behaviour rather than ensure |
45c0fd36 |
27 | # interoperability. |
d03ab969 |
28 | |
29 | md4-hmac { |
30 | "Hi There" |
31 | 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b |
32 | 90a79458f58f437e21f169cdba283da6; |
33 | |
34 | "what do ya want for nothing?" |
35 | 4a656665 |
36 | be192c588a8e914d8a59b474a828128f; |
37 | |
38 |