cleanup: Big pile of whitespace fixes, all at once.
[u/mdw/catacomb] / tests / sha224
1 # $Id: sha224,v 1.2 2004/04/21 00:38:42 mdw Exp $
2 #
3 # Test vectors for SHA-224
4
5 # --- Basic hash function ---
6
7 sha224 {
8
9 # --- Test vectors from the definition [FALSE] ---
10
11 "abc"
12 23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7;
13 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
14 75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525;
15
16 # --- Other tests to trap regression ---
17
18 ""
19 d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f;
20 "a"
21 abd37534c7d9a2efb9465de931cd7055ffdb8879563ae98078d6d6d5;
22 "message digest"
23 2cb21c83ae2f004de7e81c3c7019cbcb65b71ab656b22d6d0c39b8eb;
24 "abcdefghijklmnopqrstuvwxyz"
25 45a5f72c39c5cff2522eb3429799e49e5f44b356ef926bcf390dccc2;
26 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
27 75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525;
28 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
29 bff72b4fcb7d75e5632900ac5f90d219e05e97a7bde72e740db393d9;
30 }
31
32 sha224-rep {
33 "1234567890" 8
34 b50aecbe4e9bb0b57bc5f3ae760a8e01db24f203fb3cdcd13148046e;
35 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
36 " 23
37 5a86156c37c95ab356e003d569370580737794815f46de7f4834d634;
38 "a" 1000000
39 20794655980c91d8bbb4c1ea97618a4bf03f42581948b2ee4ee7ad67;
40 }
41
42 # --- HMAC mode ---
43 #
44 # Autogenerated, unofficial.
45
46 sha224-hmac {
47 "Hi There"
48 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
49 1abbc7c42cf4ca9f9d7b624564cb72d7b0945ea0a615095904a0fd34;
50
51 "what do ya want for nothing?"
52 4a656665
53 a30e01098bc6dbbf45690f3a7e9e6d0f8bbea2a39e6148008fd05e44;
54
55 "ÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝ"
56 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
57 5121d4bc8e43ee3ddcc2b0d312c110e961fc34b19ced1cce11c7a55c;
58
59 "ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ"
60 0102030405060708090a0b0c0d0e0f10111213141516171819
61 6c11506874013cac6a2abc1bb382627cec6a90d86efc012de7afec5a;
62
63 "Test With Truncation"
64 0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c
65 0f081672137307d07aad12880537cd43f454823de00c038424741e17;
66
67 "Test Using Larger Than Block-Size Key - Hash Key First"
68 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
69 9ed2eebc0ed23576efc815e9b5bc0d9257e36d13e4dd5d5f0c809b38;
70
71 "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data"
72 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
73 7358939e58683a448ac5065196d33191a1c1d33d4b8b0304dc60f5e0;
74 }