]> mj.ucw.cz Git - libucw.git/blob - ucw/sha1.t
Logging: Cleanup of log-syslog.c.
[libucw.git] / ucw / sha1.t
1 # Tests of the SHA1 module
2
3 Name:   SHA1-1
4 Run:    echo -n "abc" | ../obj/ucw/sha1-t
5 Out:    a9993e364706816aba3e25717850c26c9cd0d89d
6
7 Name:   SHA1-2
8 Run:    echo -n "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" | ../obj/ucw/sha1-t
9 Out:    84983e441c3bd26ebaae4aa1f95129e5e54670f1
10
11 # Tests of SHA-1 HMAC specified in RFC 2202
12
13 Name:   HMAC1
14 Run:    ../obj/ucw/sha1-hmac-t
15 In:     0x0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
16         Hi There
17 Out:    b617318655057264e28bc0b6fb378c8ef146be00
18
19 Name:   HMAC2
20 Run:    ../obj/ucw/sha1-hmac-t
21 In:     Jefe
22         what do ya want for nothing?
23 Out:    effcdf6ae5eb2fa2d27416d5f184df9c259a7c79
24
25 Name:   HMAC3
26 Run:    ../obj/ucw/sha1-hmac-t
27 In:     0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
28         0xdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
29 Out:    125d7342b9ac11cd91a39af48aa17b4f63f175d3
30
31 Name:   HMAC4
32 Run:    ../obj/ucw/sha1-hmac-t
33 In:     0x0102030405060708090a0b0c0d0e0f10111213141516171819
34         0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd
35 Out:    4c9007f4026250c6bc8414f9bf50c86c2d7235da
36
37 Name:   HMAC5
38 Run:    ../obj/ucw/sha1-hmac-t
39 In:     0x0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c
40         Test With Truncation
41 Out:    4c1a03424b55e07fe7f27be1d58bb9324a9a5a04
42
43 Name:   HMAC6
44 Run:    ../obj/ucw/sha1-hmac-t
45 In:     0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
46         Test Using Larger Than Block-Size Key - Hash Key First
47 Out:    aa4ae5e15272d00e95705637ce8a3b55ed402112
48
49 Name:   HMAC7
50 Run:    ../obj/ucw/sha1-hmac-t
51 In:     0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
52         Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data
53 Out:    e8e99d0f45237d786d6bbaa7965c7808bbff1a91
54
55 Name:   HMAC8
56 Run:    ../obj/ucw/sha1-hmac-t
57 In:     0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
58         Test Using Larger Than Block-Size Key - Hash Key First
59 Out:    aa4ae5e15272d00e95705637ce8a3b55ed402112
60
61 Name:   HMAC9
62 Run:    ../obj/ucw/sha1-hmac-t
63 In:     0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
64         Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data
65 Out:    e8e99d0f45237d786d6bbaa7965c7808bbff1a91