~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to TestVectors/hmac.txt

  • Committer: weidai
  • Date: 2009-03-14 22:27:56 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:455
fix line ending

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
Comment: Test Case 1
5
5
Key: 0x0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
6
6
Message: "Hi There"
7
 
Digest: 0x9294727a3638bb1c13f48ef8158bfc9d
 
7
MAC: 0x9294727a3638bb1c13f48ef8158bfc9d
8
8
Test: Verify
9
9
Comment: Test Case 2
10
10
Key: "Jefe"
11
11
Message: "what do ya want for nothing?"
12
 
Digest: 0x750c783e6ab0b503eaa86e310a5db738
 
12
MAC: 0x750c783e6ab0b503eaa86e310a5db738
13
13
Test: Verify
14
14
Comment: Test Case 3
15
15
Key: 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
16
16
Message: r50 0xdd
17
 
Digest: 0x56be34521d144c88dbb8c733f0e8b3f6
 
17
MAC: 0x56be34521d144c88dbb8c733f0e8b3f6
18
18
Test: Verify
19
19
Comment: Test Case 4
20
20
Key: 0x0102030405060708090a0b0c0d0e0f10111213141516171819
21
21
Message: r50 0xcd
22
 
Digest: 0x697eaf0aca3a3aea3a75164746ffaa79
 
22
MAC: 0x697eaf0aca3a3aea3a75164746ffaa79
23
23
Test: Verify
24
24
Comment: Test Case 5
25
25
Key: 0x0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c
26
26
Message: "Test With Truncation"
27
 
Digest: 0x56461ef2342edc00f9bab995690efd4c
 
27
MAC: 0x56461ef2342edc00f9bab995690efd4c
28
28
Test: Verify
29
 
Digest: 0x56461ef2342edc00f9bab995
30
 
TruncatedSize: 12
 
29
MAC: 0x56461ef2342edc00f9bab995
 
30
#TruncatedSize: 12
31
31
Test: VerifyTruncated
32
32
Comment: Test Case 6
33
33
Key: r80 0xaa
34
34
Message: "Test Using Larger Than Block-Size Key - Hash Key First"
35
 
Digest: 0x6b1ab7fe4bd7bf8f0b62e6ce61b9d0cd
 
35
MAC: 0x6b1ab7fe4bd7bf8f0b62e6ce61b9d0cd
36
36
Test: Verify
37
37
Comment: Test Case 7
38
38
Key: r80 0xaa
39
39
Message: "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data"
40
 
Digest: 0x6f630fad67cda0ee1fb1f562db3aa53e
 
40
MAC: 0x6f630fad67cda0ee1fb1f562db3aa53e
41
41
Test: Verify
42
42
 
43
43
AlgorithmType: MAC
46
46
Comment: Test Case 1
47
47
Key: 0x0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
48
48
Message: "Hi There"
49
 
Digest: 0xb617318655057264e28bc0b6fb378c8ef146be00
 
49
MAC: 0xb617318655057264e28bc0b6fb378c8ef146be00
50
50
Test: Verify
51
51
Comment: Test Case 2
52
52
Key: "Jefe"
53
53
Message: "what do ya want for nothing?"
54
 
Digest: 0xeffcdf6ae5eb2fa2d27416d5f184df9c259a7c79
 
54
MAC: 0xeffcdf6ae5eb2fa2d27416d5f184df9c259a7c79
55
55
Test: Verify
56
56
Comment: Test Case 3
57
57
Key: 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
58
58
Message: r50 0xdd
59
 
Digest: 0x125d7342b9ac11cd91a39af48aa17b4f63f175d3
 
59
MAC: 0x125d7342b9ac11cd91a39af48aa17b4f63f175d3
60
60
Test: Verify
61
61
Comment: Test Case 4
62
62
Key: 0x0102030405060708090a0b0c0d0e0f10111213141516171819
63
63
Message: r50 0xcd
64
 
Digest: 0x4c9007f4026250c6bc8414f9bf50c86c2d7235da
 
64
MAC: 0x4c9007f4026250c6bc8414f9bf50c86c2d7235da
65
65
Test: Verify
66
66
Comment: Test Case 5
67
67
Key: 0x0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c
68
68
Message: "Test With Truncation"
69
 
Digest: 0x4c1a03424b55e07fe7f27be1d58bb9324a9a5a04
 
69
MAC: 0x4c1a03424b55e07fe7f27be1d58bb9324a9a5a04
70
70
Test: Verify
71
 
Digest: 0x4c1a03424b55e07fe7f27be1
72
 
TruncatedSize: 12
 
71
MAC: 0x4c1a03424b55e07fe7f27be1
 
72
#TruncatedSize: 12
73
73
Test: VerifyTruncated
74
74
Comment: Test Case 6
75
75
Key: r80 0xaa
76
76
Message: "Test Using Larger Than Block-Size Key - Hash Key First"
77
 
Digest: 0xaa4ae5e15272d00e95705637ce8a3b55ed402112
 
77
MAC: 0xaa4ae5e15272d00e95705637ce8a3b55ed402112
78
78
Test: Verify
79
79
Comment: Test Case 7
80
80
Key: r80 0xaa
81
81
Message: "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data"
82
 
Digest: 0xe8e99d0f45237d786d6bbaa7965c7808bbff1a91
 
82
MAC: 0xe8e99d0f45237d786d6bbaa7965c7808bbff1a91
83
83
Test: Verify
84
84
 
85
85
AlgorithmType: MAC
88
88
Comment: Test Case 1
89
89
Key: 0x0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
90
90
Message: "Hi There"
91
 
Digest: 0x24cb4bd67d20fc1a5d2ed7732dcc39377f0a5668
 
91
MAC: 0x24cb4bd67d20fc1a5d2ed7732dcc39377f0a5668
92
92
Test: Verify
93
93
Comment: Test Case 2
94
94
Key: "Jefe"
95
95
Message: "what do ya want for nothing?"
96
 
Digest: 0xdda6c0213a485a9e24f4742064a7f033b43c4069
 
96
MAC: 0xdda6c0213a485a9e24f4742064a7f033b43c4069
97
97
Test: Verify
98
98
Comment: Test Case 3
99
99
Key: 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
100
100
Message: r50 0xdd
101
 
Digest: 0xb0b105360de759960ab4f35298e116e295d8e7c1
 
101
MAC: 0xb0b105360de759960ab4f35298e116e295d8e7c1
102
102
Test: Verify
103
103
Comment: Test Case 4
104
104
Key: 0x0102030405060708090a0b0c0d0e0f10111213141516171819
105
105
Message: r50 0xcd
106
 
Digest: 0xd5ca862f4d21d5e610e18b4cf1beb97a4365ecf4
 
106
MAC: 0xd5ca862f4d21d5e610e18b4cf1beb97a4365ecf4
107
107
Test: Verify
108
108
Comment: Test Case 5
109
109
Key: 0x0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c
110
110
Message: "Test With Truncation"
111
 
Digest: 0x7619693978f91d90539ae786500ff3d8e0518e39
 
111
MAC: 0x7619693978f91d90539ae786500ff3d8e0518e39
112
112
Test: Verify
113
 
Digest: 0x7619693978f91d90539ae786
114
 
TruncatedSize: 12
 
113
MAC: 0x7619693978f91d90539ae786
 
114
#TruncatedSize: 12
115
115
Test: VerifyTruncated
116
116
Comment: Test Case 6
117
117
Key: r80 0xaa
118
118
Message: "Test Using Larger Than Block-Size Key - Hash Key First"
119
 
Digest: 0x6466ca07ac5eac29e1bd523e5ada7605b791fd8b
 
119
MAC: 0x6466ca07ac5eac29e1bd523e5ada7605b791fd8b
120
120
Test: Verify
121
121
Comment: Test Case 7
122
122
Key: r80 0xaa
123
123
Message: "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data"
124
 
Digest: 0x69ea60798d71616cce5fd0871e23754cd75d5a0a
 
124
MAC: 0x69ea60798d71616cce5fd0871e23754cd75d5a0a
125
125
Test: Verify