This repository has been archived by the owner on May 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
aesccm.txt
219 lines (191 loc) · 15.7 KB
/
aesccm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
Test vectors for AES-CCM-128 for 1609.2 v3
==========================================
It is based on NIST SP 800-38C (and RFC 3610) with the following:
- Adata = 0, i.e. no associated authenticated data
- t=16, i.e. tag length is 16 octets
- n=12, i.e. Nonce length is 12 octets
- q=3, i.e. the message length in octets is encoded in 3 octets
Inputs:
- key: {octet string} AES-CCM key, K (hex encoded bytes)
- nonce: {octet string} nonce, N (hex encoded bytes)
- plaintext: {octet string} plaintext to be encrypted and authenticated, P (hex encoded bytes)
Output:
ciphertext || tag = C || T {octet string}
Test Vector #1:
---------------
K = 0xE58D5C8F8C9ED9785679E08ABC7C8116
key[16] =
{ 0xE5, 0x8D, 0x5C, 0x8F, 0x8C, 0x9E, 0xD9, 0x78, 0x56, 0x79, 0xE0, 0x8A, 0xBC, 0x7C, 0x81, 0x16 }
N = 0xA9F593C09EAEEA8BF0C1CF6A
nonce[12] =
{ 0xA9, 0xF5, 0x93, 0xC0, 0x9E, 0xAE, 0xEA, 0x8B, 0xF0, 0xC1, 0xCF, 0x6A }
P = 0x0653B5714D1357F4995BDDACBE10873951A1EBA663718D1AF35D2F0D52C79DE49BE622C4A6D90647BA2B004C3E8AE422FD27063AFA19AD883DCCBD97D98B8B0461B5671E75F19701C24042B8D3AF79B9FF62BC448EF9440B1EA3F7E5C0F4BFEFE3E326E62D5EE4CB4B4CFFF30AD5F49A7981ABF71617245B96E522E1ADD78A
pt[127] =
{ 0x06, 0x53, 0xB5, 0x71, 0x4D, 0x13, 0x57, 0xF4, 0x99, 0x5B, 0xDD, 0xAC, 0xBE, 0x10, 0x87, 0x39,
0x51, 0xA1, 0xEB, 0xA6, 0x63, 0x71, 0x8D, 0x1A, 0xF3, 0x5D, 0x2F, 0x0D, 0x52, 0xC7, 0x9D, 0xE4,
0x9B, 0xE6, 0x22, 0xC4, 0xA6, 0xD9, 0x06, 0x47, 0xBA, 0x2B, 0x00, 0x4C, 0x3E, 0x8A, 0xE4, 0x22,
0xFD, 0x27, 0x06, 0x3A, 0xFA, 0x19, 0xAD, 0x88, 0x3D, 0xCC, 0xBD, 0x97, 0xD9, 0x8B, 0x8B, 0x04,
0x61, 0xB5, 0x67, 0x1E, 0x75, 0xF1, 0x97, 0x01, 0xC2, 0x40, 0x42, 0xB8, 0xD3, 0xAF, 0x79, 0xB9,
0xFF, 0x62, 0xBC, 0x44, 0x8E, 0xF9, 0x44, 0x0B, 0x1E, 0xA3, 0xF7, 0xE5, 0xC0, 0xF4, 0xBF, 0xEF,
0xE3, 0xE3, 0x26, 0xE6, 0x2D, 0x5E, 0xE4, 0xCB, 0x4B, 0x4C, 0xFF, 0xF3, 0x0A, 0xD5, 0xF4, 0x9A,
0x79, 0x81, 0xAB, 0xF7, 0x16, 0x17, 0x24, 0x5B, 0x96, 0xE5, 0x22, 0xE1, 0xAD, 0xD7, 0x8A }
C_T = 0x5F82B9FCE34B94835395DD89D71FB758D2A3907FBF2FD58994A2B9CF8725AF26F0B23853C27A06E35EE72CAD827713C18FA5DDA971D9BAA7B42A301FF60C6E4AD651C1BB6ED4F25F7D0FF387A11627934CD11F86984EA3AC969DDA9A020AD6424B0D393E3FB4B1119ADF5CDB012A59753E41D47E5E5A8C3A118ED407049B56D53BF56CB38C0B20A2502D1DA70B9761
c_t[143] =
{ 0x5F, 0x82, 0xB9, 0xFC, 0xE3, 0x4B, 0x94, 0x83, 0x53, 0x95, 0xDD, 0x89, 0xD7, 0x1F, 0xB7, 0x58,
0xD2, 0xA3, 0x90, 0x7F, 0xBF, 0x2F, 0xD5, 0x89, 0x94, 0xA2, 0xB9, 0xCF, 0x87, 0x25, 0xAF, 0x26,
0xF0, 0xB2, 0x38, 0x53, 0xC2, 0x7A, 0x06, 0xE3, 0x5E, 0xE7, 0x2C, 0xAD, 0x82, 0x77, 0x13, 0xC1,
0x8F, 0xA5, 0xDD, 0xA9, 0x71, 0xD9, 0xBA, 0xA7, 0xB4, 0x2A, 0x30, 0x1F, 0xF6, 0x0C, 0x6E, 0x4A,
0xD6, 0x51, 0xC1, 0xBB, 0x6E, 0xD4, 0xF2, 0x5F, 0x7D, 0x0F, 0xF3, 0x87, 0xA1, 0x16, 0x27, 0x93,
0x4C, 0xD1, 0x1F, 0x86, 0x98, 0x4E, 0xA3, 0xAC, 0x96, 0x9D, 0xDA, 0x9A, 0x02, 0x0A, 0xD6, 0x42,
0x4B, 0x0D, 0x39, 0x3E, 0x3F, 0xB4, 0xB1, 0x11, 0x9A, 0xDF, 0x5C, 0xDB, 0x01, 0x2A, 0x59, 0x75,
0x3E, 0x41, 0xD4, 0x7E, 0x5E, 0x5A, 0x8C, 0x3A, 0x11, 0x8E, 0xD4, 0x07, 0x04, 0x9B, 0x56, 0xD5,
0x3B, 0xF5, 0x6C, 0xB3, 0x8C, 0x0B, 0x20, 0xA2, 0x50, 0x2D, 0x1D, 0xA7, 0x0B, 0x97, 0x61 }
Test Vector #2:
---------------
K = 0xE58D5C8F8C9ED9785679E08ABC7C8116
key[16] =
{ 0xE5, 0x8D, 0x5C, 0x8F, 0x8C, 0x9E, 0xD9, 0x78, 0x56, 0x79, 0xE0, 0x8A, 0xBC, 0x7C, 0x81, 0x16 }
N = 0xA9F593C09EAEEA8BF0C1CF6A
nonce[12] =
{ 0xA9, 0xF5, 0x93, 0xC0, 0x9E, 0xAE, 0xEA, 0x8B, 0xF0, 0xC1, 0xCF, 0x6A }
P = 0xACA650CCCCDA604E16A8B54A3335E0BC2FD9444F33E3D9B82AFE6F445357634974F0F1728CF113452321CBE5858304B01D4A14AE7F3B45980EE8033AD2A8599B78C29494C9E5F8945A8CADE3EB5A30D156C0D83271626DADDB650954093443FBAC9701C02E5A973F39C2E1761A4B48C764BF6DB215A54B285A06ECA3AF0A83F7
pt[128] =
{ 0xAC, 0xA6, 0x50, 0xCC, 0xCC, 0xDA, 0x60, 0x4E, 0x16, 0xA8, 0xB5, 0x4A, 0x33, 0x35, 0xE0, 0xBC,
0x2F, 0xD9, 0x44, 0x4F, 0x33, 0xE3, 0xD9, 0xB8, 0x2A, 0xFE, 0x6F, 0x44, 0x53, 0x57, 0x63, 0x49,
0x74, 0xF0, 0xF1, 0x72, 0x8C, 0xF1, 0x13, 0x45, 0x23, 0x21, 0xCB, 0xE5, 0x85, 0x83, 0x04, 0xB0,
0x1D, 0x4A, 0x14, 0xAE, 0x7F, 0x3B, 0x45, 0x98, 0x0E, 0xE8, 0x03, 0x3A, 0xD2, 0xA8, 0x59, 0x9B,
0x78, 0xC2, 0x94, 0x94, 0xC9, 0xE5, 0xF8, 0x94, 0x5A, 0x8C, 0xAD, 0xE3, 0xEB, 0x5A, 0x30, 0xD1,
0x56, 0xC0, 0xD8, 0x32, 0x71, 0x62, 0x6D, 0xAD, 0xDB, 0x65, 0x09, 0x54, 0x09, 0x34, 0x43, 0xFB,
0xAC, 0x97, 0x01, 0xC0, 0x2E, 0x5A, 0x97, 0x3F, 0x39, 0xC2, 0xE1, 0x76, 0x1A, 0x4B, 0x48, 0xC7,
0x64, 0xBF, 0x6D, 0xB2, 0x15, 0xA5, 0x4B, 0x28, 0x5A, 0x06, 0xEC, 0xA3, 0xAF, 0x0A, 0x83, 0xF7 }
C_T = 0xF5775C416282A339DC66B56F5A3AD0DDACDB3F96EFBD812B4D01F98686B5518B1FA4EBE5E85213E1C7EDE704397EF3536FC8CF3DF4FB52B7870E8EB2FD2FBCD5CF263231D2C09DCAE5C31CDC99E36EFBE5737BF067D58A0A535B242BCBCA2A5604791E183CB0C2E5E851425E11B4E528237F123B5DE8E349DD6D1A4506465F7257001080003872271900D3F39C9661FD
c_t[144] =
{ 0xF5, 0x77, 0x5C, 0x41, 0x62, 0x82, 0xA3, 0x39, 0xDC, 0x66, 0xB5, 0x6F, 0x5A, 0x3A, 0xD0, 0xDD,
0xAC, 0xDB, 0x3F, 0x96, 0xEF, 0xBD, 0x81, 0x2B, 0x4D, 0x01, 0xF9, 0x86, 0x86, 0xB5, 0x51, 0x8B,
0x1F, 0xA4, 0xEB, 0xE5, 0xE8, 0x52, 0x13, 0xE1, 0xC7, 0xED, 0xE7, 0x04, 0x39, 0x7E, 0xF3, 0x53,
0x6F, 0xC8, 0xCF, 0x3D, 0xF4, 0xFB, 0x52, 0xB7, 0x87, 0x0E, 0x8E, 0xB2, 0xFD, 0x2F, 0xBC, 0xD5,
0xCF, 0x26, 0x32, 0x31, 0xD2, 0xC0, 0x9D, 0xCA, 0xE5, 0xC3, 0x1C, 0xDC, 0x99, 0xE3, 0x6E, 0xFB,
0xE5, 0x73, 0x7B, 0xF0, 0x67, 0xD5, 0x8A, 0x0A, 0x53, 0x5B, 0x24, 0x2B, 0xCB, 0xCA, 0x2A, 0x56,
0x04, 0x79, 0x1E, 0x18, 0x3C, 0xB0, 0xC2, 0xE5, 0xE8, 0x51, 0x42, 0x5E, 0x11, 0xB4, 0xE5, 0x28,
0x23, 0x7F, 0x12, 0x3B, 0x5D, 0xE8, 0xE3, 0x49, 0xDD, 0x6D, 0x1A, 0x45, 0x06, 0x46, 0x5F, 0x72,
0x57, 0x00, 0x10, 0x80, 0x00, 0x38, 0x72, 0x27, 0x19, 0x00, 0xD3, 0xF3, 0x9C, 0x96, 0x61, 0xFD }
Test Vector #3:
---------------
K = 0xE58D5C8F8C9ED9785679E08ABC7C8116
key[16] =
{ 0xE5, 0x8D, 0x5C, 0x8F, 0x8C, 0x9E, 0xD9, 0x78, 0x56, 0x79, 0xE0, 0x8A, 0xBC, 0x7C, 0x81, 0x16 }
N = 0xA9F593C09EAEEA8BF0C1CF6A
nonce[12] =
{ 0xA9, 0xF5, 0x93, 0xC0, 0x9E, 0xAE, 0xEA, 0x8B, 0xF0, 0xC1, 0xCF, 0x6A }
P = 0xD1AA8BBC04DFC92FFE2CB7748E70B02F5A91DA14781223A712D44C4BA14A1C78EB02387FE73FDCBCA8447056ACAA9B5F94D5208972B706DF9FC4C803EABB2BC58C3D8DF4AC496C34CB6BAB939478CB417995B2314DAF7AF3F4C8A8D5D57A03F0EB2B7BBD2D16BABBF22C5B1EEBFF72C7DD4F912D5821F9A6BFA2D063CE6F6648DF
pt[129] =
{ 0xD1, 0xAA, 0x8B, 0xBC, 0x04, 0xDF, 0xC9, 0x2F, 0xFE, 0x2C, 0xB7, 0x74, 0x8E, 0x70, 0xB0, 0x2F,
0x5A, 0x91, 0xDA, 0x14, 0x78, 0x12, 0x23, 0xA7, 0x12, 0xD4, 0x4C, 0x4B, 0xA1, 0x4A, 0x1C, 0x78,
0xEB, 0x02, 0x38, 0x7F, 0xE7, 0x3F, 0xDC, 0xBC, 0xA8, 0x44, 0x70, 0x56, 0xAC, 0xAA, 0x9B, 0x5F,
0x94, 0xD5, 0x20, 0x89, 0x72, 0xB7, 0x06, 0xDF, 0x9F, 0xC4, 0xC8, 0x03, 0xEA, 0xBB, 0x2B, 0xC5,
0x8C, 0x3D, 0x8D, 0xF4, 0xAC, 0x49, 0x6C, 0x34, 0xCB, 0x6B, 0xAB, 0x93, 0x94, 0x78, 0xCB, 0x41,
0x79, 0x95, 0xB2, 0x31, 0x4D, 0xAF, 0x7A, 0xF3, 0xF4, 0xC8, 0xA8, 0xD5, 0xD5, 0x7A, 0x03, 0xF0,
0xEB, 0x2B, 0x7B, 0xBD, 0x2D, 0x16, 0xBA, 0xBB, 0xF2, 0x2C, 0x5B, 0x1E, 0xEB, 0xFF, 0x72, 0xC7,
0xDD, 0x4F, 0x91, 0x2D, 0x58, 0x21, 0xF9, 0xA6, 0xBF, 0xA2, 0xD0, 0x63, 0xCE, 0x6F, 0x66, 0x48,
0xDF }
C_T = 0x887B8731AA870A5834E2B751E77F804ED993A1CDA44C7B34752BDA8974A82EBA805622E8839CDC184C885CB710576CBCE657FB1AF97711F01622458BC53CCE8B3BD92B51B76C096A74241AACE6C1956BCA2611F35B189D547CF685AA17846A5D43C564653FFCEF6123BFF836E000DF289A8FEEA4106C51C738C926856723BACDB3F5D0F87F7E29D94BF1B41DE8063E1071
c_t[145] =
{ 0x88, 0x7B, 0x87, 0x31, 0xAA, 0x87, 0x0A, 0x58, 0x34, 0xE2, 0xB7, 0x51, 0xE7, 0x7F, 0x80, 0x4E,
0xD9, 0x93, 0xA1, 0xCD, 0xA4, 0x4C, 0x7B, 0x34, 0x75, 0x2B, 0xDA, 0x89, 0x74, 0xA8, 0x2E, 0xBA,
0x80, 0x56, 0x22, 0xE8, 0x83, 0x9C, 0xDC, 0x18, 0x4C, 0x88, 0x5C, 0xB7, 0x10, 0x57, 0x6C, 0xBC,
0xE6, 0x57, 0xFB, 0x1A, 0xF9, 0x77, 0x11, 0xF0, 0x16, 0x22, 0x45, 0x8B, 0xC5, 0x3C, 0xCE, 0x8B,
0x3B, 0xD9, 0x2B, 0x51, 0xB7, 0x6C, 0x09, 0x6A, 0x74, 0x24, 0x1A, 0xAC, 0xE6, 0xC1, 0x95, 0x6B,
0xCA, 0x26, 0x11, 0xF3, 0x5B, 0x18, 0x9D, 0x54, 0x7C, 0xF6, 0x85, 0xAA, 0x17, 0x84, 0x6A, 0x5D,
0x43, 0xC5, 0x64, 0x65, 0x3F, 0xFC, 0xEF, 0x61, 0x23, 0xBF, 0xF8, 0x36, 0xE0, 0x00, 0xDF, 0x28,
0x9A, 0x8F, 0xEE, 0xA4, 0x10, 0x6C, 0x51, 0xC7, 0x38, 0xC9, 0x26, 0x85, 0x67, 0x23, 0xBA, 0xCD,
0xB3, 0xF5, 0xD0, 0xF8, 0x7F, 0x7E, 0x29, 0xD9, 0x4B, 0xF1, 0xB4, 0x1D, 0xE8, 0x06, 0x3E, 0x10,
0x71 }
Test Vector #4:
---------------
K = 0xB8453A728060F8D517BACEED3829F4D9
key[16] =
{ 0xB8, 0x45, 0x3A, 0x72, 0x80, 0x60, 0xF8, 0xD5, 0x17, 0xBA, 0xCE, 0xED, 0x38, 0x29, 0xF4, 0xD9 }
N = 0xCFBCE69C884D5BABBBAAF9A3
nonce[12] =
{ 0xCF, 0xBC, 0xE6, 0x9C, 0x88, 0x4D, 0x5B, 0xAB, 0xBB, 0xAA, 0xF9, 0xA3 }
P = 0xF7629B73DAE85A9BCA45C42EB7FC1818DC74A60E13AE65A043E24B5A4D3AE04C273E7D6F42710F2D223D09EB7C1315718A5A1293D482E4C45C3E852E5106AAD7B695A02C4854801A5EFE937A6540BCE8734E8141558C3433B1D4C733DC5EF9C47B5279AA46EE3D8BD33B0950BE5C9EBDF18BCF069B6DAF82FF1186912F0ABA
pt[127] =
{ 0xF7, 0x62, 0x9B, 0x73, 0xDA, 0xE8, 0x5A, 0x9B, 0xCA, 0x45, 0xC4, 0x2E, 0xB7, 0xFC, 0x18, 0x18,
0xDC, 0x74, 0xA6, 0x0E, 0x13, 0xAE, 0x65, 0xA0, 0x43, 0xE2, 0x4B, 0x5A, 0x4D, 0x3A, 0xE0, 0x4C,
0x27, 0x3E, 0x7D, 0x6F, 0x42, 0x71, 0x0F, 0x2D, 0x22, 0x3D, 0x09, 0xEB, 0x7C, 0x13, 0x15, 0x71,
0x8A, 0x5A, 0x12, 0x93, 0xD4, 0x82, 0xE4, 0xC4, 0x5C, 0x3E, 0x85, 0x2E, 0x51, 0x06, 0xAA, 0xD7,
0xB6, 0x95, 0xA0, 0x2C, 0x48, 0x54, 0x80, 0x1A, 0x5E, 0xFE, 0x93, 0x7A, 0x65, 0x40, 0xBC, 0xE8,
0x73, 0x4E, 0x81, 0x41, 0x55, 0x8C, 0x34, 0x33, 0xB1, 0xD4, 0xC7, 0x33, 0xDC, 0x5E, 0xF9, 0xC4,
0x7B, 0x52, 0x79, 0xAA, 0x46, 0xEE, 0x3D, 0x8B, 0xD3, 0x3B, 0x09, 0x50, 0xBE, 0x5C, 0x9E, 0xBD,
0xF1, 0x8B, 0xCF, 0x06, 0x9B, 0x6D, 0xAF, 0x82, 0xFF, 0x11, 0x86, 0x91, 0x2F, 0x0A, 0xBA }
C_T = 0xDEDE575B6EFE390F2CBB4F368A711F6CDF69ABD11AF580B2BF4029F85EB835D1ABDDB30E9E9CF3F13CBA3BCC2E918713D218AF0D07CC614AF69892AFA986AF2D5E60EDB05D09D3B29E2A65B543AD6F26E5D76B660FE9184906A6315CD6B5355FA291A1E90C510DF20E46C116E2180009C287659DB8D45CC3968049FA29F08DE5D156EDF7B0DBC84E410F292868C4BE
c_t[143] =
{ 0xDE, 0xDE, 0x57, 0x5B, 0x6E, 0xFE, 0x39, 0x0F, 0x2C, 0xBB, 0x4F, 0x36, 0x8A, 0x71, 0x1F, 0x6C,
0xDF, 0x69, 0xAB, 0xD1, 0x1A, 0xF5, 0x80, 0xB2, 0xBF, 0x40, 0x29, 0xF8, 0x5E, 0xB8, 0x35, 0xD1,
0xAB, 0xDD, 0xB3, 0x0E, 0x9E, 0x9C, 0xF3, 0xF1, 0x3C, 0xBA, 0x3B, 0xCC, 0x2E, 0x91, 0x87, 0x13,
0xD2, 0x18, 0xAF, 0x0D, 0x07, 0xCC, 0x61, 0x4A, 0xF6, 0x98, 0x92, 0xAF, 0xA9, 0x86, 0xAF, 0x2D,
0x5E, 0x60, 0xED, 0xB0, 0x5D, 0x09, 0xD3, 0xB2, 0x9E, 0x2A, 0x65, 0xB5, 0x43, 0xAD, 0x6F, 0x26,
0xE5, 0xD7, 0x6B, 0x66, 0x0F, 0xE9, 0x18, 0x49, 0x06, 0xA6, 0x31, 0x5C, 0xD6, 0xB5, 0x35, 0x5F,
0xA2, 0x91, 0xA1, 0xE9, 0x0C, 0x51, 0x0D, 0xF2, 0x0E, 0x46, 0xC1, 0x16, 0xE2, 0x18, 0x00, 0x09,
0xC2, 0x87, 0x65, 0x9D, 0xB8, 0xD4, 0x5C, 0xC3, 0x96, 0x80, 0x49, 0xFA, 0x29, 0xF0, 0x8D, 0xE5,
0xD1, 0x56, 0xED, 0xF7, 0xB0, 0xDB, 0xC8, 0x4E, 0x41, 0x0F, 0x29, 0x28, 0x68, 0xC4, 0xBE }
Test Vector #5:
---------------
K = 0xB8453A728060F8D517BACEED3829F4D9
key[16] =
{ 0xB8, 0x45, 0x3A, 0x72, 0x80, 0x60, 0xF8, 0xD5, 0x17, 0xBA, 0xCE, 0xED, 0x38, 0x29, 0xF4, 0xD9 }
N = 0xCFBCE69C884D5BABBBAAF9A3
nonce[12] =
{ 0xCF, 0xBC, 0xE6, 0x9C, 0x88, 0x4D, 0x5B, 0xAB, 0xBB, 0xAA, 0xF9, 0xA3 }
P = 0x29B4013F552FBCE993544CC6605CB05C62A7894C4C99E6A12C5F9F2EE4DFBEBAD70CDD0893542240F28BB5FBB9090332ED110ABFAE6C4C6460D916F8994136575B5A6FD8DB605FDF14CB81977AFF7F99B5272580BF220133C691B09BADC4D1FE7125FD17FDBFC103E3F00A4D8E5A6F1E3D3AF2A908535DE858E1CCD3DB4D1835
pt[128] =
{ 0x29, 0xB4, 0x01, 0x3F, 0x55, 0x2F, 0xBC, 0xE9, 0x93, 0x54, 0x4C, 0xC6, 0x60, 0x5C, 0xB0, 0x5C,
0x62, 0xA7, 0x89, 0x4C, 0x4C, 0x99, 0xE6, 0xA1, 0x2C, 0x5F, 0x9F, 0x2E, 0xE4, 0xDF, 0xBE, 0xBA,
0xD7, 0x0C, 0xDD, 0x08, 0x93, 0x54, 0x22, 0x40, 0xF2, 0x8B, 0xB5, 0xFB, 0xB9, 0x09, 0x03, 0x32,
0xED, 0x11, 0x0A, 0xBF, 0xAE, 0x6C, 0x4C, 0x64, 0x60, 0xD9, 0x16, 0xF8, 0x99, 0x41, 0x36, 0x57,
0x5B, 0x5A, 0x6F, 0xD8, 0xDB, 0x60, 0x5F, 0xDF, 0x14, 0xCB, 0x81, 0x97, 0x7A, 0xFF, 0x7F, 0x99,
0xB5, 0x27, 0x25, 0x80, 0xBF, 0x22, 0x01, 0x33, 0xC6, 0x91, 0xB0, 0x9B, 0xAD, 0xC4, 0xD1, 0xFE,
0x71, 0x25, 0xFD, 0x17, 0xFD, 0xBF, 0xC1, 0x03, 0xE3, 0xF0, 0x0A, 0x4D, 0x8E, 0x5A, 0x6F, 0x1E,
0x3D, 0x3A, 0xF2, 0xA9, 0x08, 0x53, 0x5D, 0xE8, 0x58, 0xE1, 0xCC, 0xD3, 0xDB, 0x4D, 0x18, 0x35 }
C_T = 0x0008CD17E139DF7D75AAC7DE5DD1B72861BA849345C203B3D0FDFD8CF75D6B275BEF13694FB9DE9CEC0C87DCEB8B9150B553B7217D22C9EACA7F017961C133ADB3AF2244CE3D0C77D41F77585C12AC5723BECFA7E5472D4971E346F4A72F1D65A8E62554B700F17A3E8DC20BD21EF1AA0E3658322BEAAEA9317003B8DDB72FFDFA0834974152B95BADE2DF83D7EEC455
c_t[144] =
{ 0x00, 0x08, 0xCD, 0x17, 0xE1, 0x39, 0xDF, 0x7D, 0x75, 0xAA, 0xC7, 0xDE, 0x5D, 0xD1, 0xB7, 0x28,
0x61, 0xBA, 0x84, 0x93, 0x45, 0xC2, 0x03, 0xB3, 0xD0, 0xFD, 0xFD, 0x8C, 0xF7, 0x5D, 0x6B, 0x27,
0x5B, 0xEF, 0x13, 0x69, 0x4F, 0xB9, 0xDE, 0x9C, 0xEC, 0x0C, 0x87, 0xDC, 0xEB, 0x8B, 0x91, 0x50,
0xB5, 0x53, 0xB7, 0x21, 0x7D, 0x22, 0xC9, 0xEA, 0xCA, 0x7F, 0x01, 0x79, 0x61, 0xC1, 0x33, 0xAD,
0xB3, 0xAF, 0x22, 0x44, 0xCE, 0x3D, 0x0C, 0x77, 0xD4, 0x1F, 0x77, 0x58, 0x5C, 0x12, 0xAC, 0x57,
0x23, 0xBE, 0xCF, 0xA7, 0xE5, 0x47, 0x2D, 0x49, 0x71, 0xE3, 0x46, 0xF4, 0xA7, 0x2F, 0x1D, 0x65,
0xA8, 0xE6, 0x25, 0x54, 0xB7, 0x00, 0xF1, 0x7A, 0x3E, 0x8D, 0xC2, 0x0B, 0xD2, 0x1E, 0xF1, 0xAA,
0x0E, 0x36, 0x58, 0x32, 0x2B, 0xEA, 0xAE, 0xA9, 0x31, 0x70, 0x03, 0xB8, 0xDD, 0xB7, 0x2F, 0xFD,
0xFA, 0x08, 0x34, 0x97, 0x41, 0x52, 0xB9, 0x5B, 0xAD, 0xE2, 0xDF, 0x83, 0xD7, 0xEE, 0xC4, 0x55 }
Test Vector #6:
---------------
K = 0xB8453A728060F8D517BACEED3829F4D9
key[16] =
{ 0xB8, 0x45, 0x3A, 0x72, 0x80, 0x60, 0xF8, 0xD5, 0x17, 0xBA, 0xCE, 0xED, 0x38, 0x29, 0xF4, 0xD9 }
N = 0xCFBCE69C884D5BABBBAAF9A3
nonce[12] =
{ 0xCF, 0xBC, 0xE6, 0x9C, 0x88, 0x4D, 0x5B, 0xAB, 0xBB, 0xAA, 0xF9, 0xA3 }
P = 0x1D76BDF0626A7134BEB28A90D54ED7796C4C9535465C090C4B583A8CD40EF0A3864E7C07CCAED140DF6B9D73234E652F8FF425FC206F63DFAB7DCDBBBE30411A14695E72A2BD8C4BFB1D6991DB4F99EEA7435E55261E37FDF57CE79DF725C810192F5E6E0331ED62EB8A72C5B9DA6DFD9748B3D168A69BAB33319EFD1E84EF2570
pt[129] =
{ 0x1D, 0x76, 0xBD, 0xF0, 0x62, 0x6A, 0x71, 0x34, 0xBE, 0xB2, 0x8A, 0x90, 0xD5, 0x4E, 0xD7, 0x79,
0x6C, 0x4C, 0x95, 0x35, 0x46, 0x5C, 0x09, 0x0C, 0x4B, 0x58, 0x3A, 0x8C, 0xD4, 0x0E, 0xF0, 0xA3,
0x86, 0x4E, 0x7C, 0x07, 0xCC, 0xAE, 0xD1, 0x40, 0xDF, 0x6B, 0x9D, 0x73, 0x23, 0x4E, 0x65, 0x2F,
0x8F, 0xF4, 0x25, 0xFC, 0x20, 0x6F, 0x63, 0xDF, 0xAB, 0x7D, 0xCD, 0xBB, 0xBE, 0x30, 0x41, 0x1A,
0x14, 0x69, 0x5E, 0x72, 0xA2, 0xBD, 0x8C, 0x4B, 0xFB, 0x1D, 0x69, 0x91, 0xDB, 0x4F, 0x99, 0xEE,
0xA7, 0x43, 0x5E, 0x55, 0x26, 0x1E, 0x37, 0xFD, 0xF5, 0x7C, 0xE7, 0x9D, 0xF7, 0x25, 0xC8, 0x10,
0x19, 0x2F, 0x5E, 0x6E, 0x03, 0x31, 0xED, 0x62, 0xEB, 0x8A, 0x72, 0xC5, 0xB9, 0xDA, 0x6D, 0xFD,
0x97, 0x48, 0xB3, 0xD1, 0x68, 0xA6, 0x9B, 0xAB, 0x33, 0x31, 0x9E, 0xFD, 0x1E, 0x84, 0xEF, 0x25,
0x70 }
C_T = 0x34CA71D8D67C12A0584C0188E8C3D00D6F5198EA4F07EC1EB7FA582EC78C253E0AADB26610432D9CC1ECAF5471CCF74DD7B69862F321E65101DBDA3A46B044E0FC9C13EEB7E0DFE33BC99F5EFDA24A2031DAB4727C7B1B87420E11F2FDCE048BC0EC862D498EDD1B36F7BA83E59EF349A444194A4B1F68EA5AA05196187ED8ED684826C0C356A9B8EDA55BD91C2BA1022B
c_t[145] =
{ 0x34, 0xCA, 0x71, 0xD8, 0xD6, 0x7C, 0x12, 0xA0, 0x58, 0x4C, 0x01, 0x88, 0xE8, 0xC3, 0xD0, 0x0D,
0x6F, 0x51, 0x98, 0xEA, 0x4F, 0x07, 0xEC, 0x1E, 0xB7, 0xFA, 0x58, 0x2E, 0xC7, 0x8C, 0x25, 0x3E,
0x0A, 0xAD, 0xB2, 0x66, 0x10, 0x43, 0x2D, 0x9C, 0xC1, 0xEC, 0xAF, 0x54, 0x71, 0xCC, 0xF7, 0x4D,
0xD7, 0xB6, 0x98, 0x62, 0xF3, 0x21, 0xE6, 0x51, 0x01, 0xDB, 0xDA, 0x3A, 0x46, 0xB0, 0x44, 0xE0,
0xFC, 0x9C, 0x13, 0xEE, 0xB7, 0xE0, 0xDF, 0xE3, 0x3B, 0xC9, 0x9F, 0x5E, 0xFD, 0xA2, 0x4A, 0x20,
0x31, 0xDA, 0xB4, 0x72, 0x7C, 0x7B, 0x1B, 0x87, 0x42, 0x0E, 0x11, 0xF2, 0xFD, 0xCE, 0x04, 0x8B,
0xC0, 0xEC, 0x86, 0x2D, 0x49, 0x8E, 0xDD, 0x1B, 0x36, 0xF7, 0xBA, 0x83, 0xE5, 0x9E, 0xF3, 0x49,
0xA4, 0x44, 0x19, 0x4A, 0x4B, 0x1F, 0x68, 0xEA, 0x5A, 0xA0, 0x51, 0x96, 0x18, 0x7E, 0xD8, 0xED,
0x68, 0x48, 0x26, 0xC0, 0xC3, 0x56, 0xA9, 0xB8, 0xED, 0xA5, 0x5B, 0xD9, 0x1C, 0x2B, 0xA1, 0x02,
0x2B }