1 # Tests of the SHA1 module
4 Run: echo -n "abc" | ../obj/ucw/sha1-t
5 Out: a9993e364706816aba3e25717850c26c9cd0d89d
8 Run: echo -n "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" | ../obj/ucw/sha1-t
9 Out: 84983e441c3bd26ebaae4aa1f95129e5e54670f1
11 # Tests of SHA-1 HMAC specified in RFC 2202
14 Run: ../obj/ucw/sha1-hmac-t
15 In: 0x0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
17 Out: b617318655057264e28bc0b6fb378c8ef146be00
20 Run: ../obj/ucw/sha1-hmac-t
22 what do ya want for nothing?
23 Out: effcdf6ae5eb2fa2d27416d5f184df9c259a7c79
26 Run: ../obj/ucw/sha1-hmac-t
27 In: 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
28 0xdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
29 Out: 125d7342b9ac11cd91a39af48aa17b4f63f175d3
32 Run: ../obj/ucw/sha1-hmac-t
33 In: 0x0102030405060708090a0b0c0d0e0f10111213141516171819
34 0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd
35 Out: 4c9007f4026250c6bc8414f9bf50c86c2d7235da
38 Run: ../obj/ucw/sha1-hmac-t
39 In: 0x0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c
41 Out: 4c1a03424b55e07fe7f27be1d58bb9324a9a5a04
44 Run: ../obj/ucw/sha1-hmac-t
45 In: 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
46 Test Using Larger Than Block-Size Key - Hash Key First
47 Out: aa4ae5e15272d00e95705637ce8a3b55ed402112
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
56 Run: ../obj/ucw/sha1-hmac-t
57 In: 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
58 Test Using Larger Than Block-Size Key - Hash Key First
59 Out: aa4ae5e15272d00e95705637ce8a3b55ed402112
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