7fcfe7de |
1 | # Test vectors for the Whirlpool hash function |
2 | # |
3 | # $Id: sha 2187 2004-09-04 07:50:08Z mdw $ |
4 | |
5 | # --- Basic hash function --- |
6 | # |
7 | # Some of these are taken from the ISO test vectors from the Whirlpool |
8 | # distribution. |
9 | |
10 | whirlpool256 { |
11 | "" |
12 | 19fa61d75522a4669b44e39c1d2e1726c530232130d407f89afee0964997f7a7; |
13 | "a" |
14 | 8aca2602792aec6f11a67206531fb7d7f0dff59413145e6973c45001d0087b42; |
15 | "abc" |
16 | 4e2448a4c6f486bb16b6562c73b4020bf3043e3a731bce721ae1b303d97e6d4c; |
17 | "message digest" |
18 | 378c84a4126e2dc6e56dcc7458377aac838d00032230f53ce1f5700c0ffb4d3b; |
19 | "abcdefghijklmnopqrstuvwxyz" |
20 | f1d754662636ffe92c82ebb9212a484a8d38631ead4238f5442ee13b8054e41b; |
21 | "abcdbcdecdefdefgefghfghighijhijk" |
22 | 2a987ea40f917061f5d6f0a0e4644f488a7a5a52deee656207c562f988e95c69; |
23 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" |
24 | dc37e008cf9ee69bf11f00ed9aba26901dd7c28cdec066cc6af42e40f82f3a1e; |
25 | } |
26 | |
27 | whirlpool256-rep { |
28 | "1234567890" 8 |
29 | 466ef18babb0154d25b9d38a6414f5c08784372bccb204d6549c4afadb601429; |
30 | "a" 1000000 |
31 | 0c99005beb57eff50a7cf005560ddf5d29057fd86b20bfd62deca0f1ccea4af5; |
32 | } |
33 | |
34 | # --- HMAC mode --- |
35 | # |
36 | # Home-made test vectors, for regression. |
37 | |
38 | whirlpool256-hmac { |
39 | "Hi There" |
40 | 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b |
41 | 9ab3bbb27b85df2edc51f2e05c880560439547e7c2772f8cec6ae00bead0bd7e; |
42 | |
43 | "what do ya want for nothing?" |
44 | 4a656665 |
45 | 977fd7f1d53e8af854404262630bfac20269ab3fc2fccabecd8feaa05b8cdabb; |
46 | |
47 |