OpenCores
URL https://opencores.org/ocsvn/twofish/twofish/trunk

Subversion Repositories twofish

[/] [twofish/] [trunk/] [test_vectors/] [ECB_IVAL.TXT] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 spyros
 
2
=========================
3
 
4
FILENAME:  "ecb_ival.txt"
5
 
6
Electronic Codebook (ECB) Mode
7
Intermediate Value Tests
8
 
9
Algorithm Name:       TWOFISH
10
Principal Submitter:  Bruce Schneier, Counterpane Systems
11
 
12
==========
13
 
14
KEYSIZE=128
15
 
16
KEY=00000000000000000000000000000000
17
 
18
;
19
;makeKey:   Input key            -->  S-box key     [Encrypt]
20
;             00000000 00000000  -->  00000000
21
;             00000000 00000000  -->  00000000
22
;           Subkeys
23
;             52C54DDE 11F0626D   Input whiten
24
;             7CAC9D4A 4D1B4AAA
25
;             B7B83A10 1E7D0BEB  Output whiten
26
;             EE9C341F CFE14BE4
27
;             F98FFEF9 9C5B3C17  Round subkeys
28
;             15A48310 342A4D81
29
;             424D89FE C14724A7
30
;             311B834C FDE87320
31
;             3302778F 26CD67B4
32
;             7A6C6362 C2BAF60E
33
;             3411B994 D972C87F
34
;             84ADB1EA A7DEE434
35
;             54D2960F A2F7CAA8
36
;             A6B8FF8C 8014C425
37
;             6A748D1C EDBAF720
38
;             928EF78C 0338EE13
39
;             9949D6BE C8314176
40
;             07C07D68 ECAE7EA7
41
;             1FE71844 85C05C89
42
;             F298311E 696EA672
43
;
44
PT=00000000000000000000000000000000
45
 
46
Encrypt()
47
 
48
R[-1]: x= 00000000  00000000  00000000  00000000.
49
R[ 0]: x= 52C54DDE  11F0626D  7CAC9D4A  4D1B4AAA.
50
R[ 1]: x= 52C54DDE  11F0626D  C38DCAA4  7A0A91B6.    t0=C06D4949. t1=41B9BFC1.
51
R[ 2]: x= 55A538DE  5C5A4DB6  C38DCAA4  7A0A91B6.    t0=7C4536B9. t1=67A58299.
52
R[ 3]: x= 55A538DE  5C5A4DB6  899063BD  893E49A9.    t0=60DAC1A4. t1=2D84C23D.
53
R[ 4]: x= 2AE61A96  84BC42D3  899063BD  893E49A9.    t0=607AAEAD. t1=6ED2DBF9.
54
R[ 5]: x= 2AE61A96  84BC42D3  F14F2618  821B5F36.    t0=067D0B49. t1=318EACB4.
55
R[ 6]: x= 0FFE0AD1  D6B87B70  F14F2618  821B5F36.    t0=58554EDB. t1=62585CF7.
56
R[ 7]: x= 0FFE0AD1  D6B87B70  CD0D38A1  C069BD9B.    t0=839B0017. t1=B3A89DB0.
57
R[ 8]: x= A85CE579  DE2661CE  CD0D38A1  C069BD9B.    t0=E9BC6975. t1=F0DDA4C3.
58
R[ 9]: x= A85CE579  DE2661CE  7A39754C  973ABD2A.    t0=54687CDF. t1=9044BF4B.
59
R[10]: x= 013077D7  B3528BA1  7A39754C  973ABD2A.    t0=77FC927F. t1=8B8678CC.
60
R[11]: x= 013077D7  B3528BA1  D57933FD  F8EA8B1B.    t0=E3C81108. t1=828E7493.
61
R[12]: x= 64F0EAA1  DA27090C  D57933FD  F8EA8B1B.    t0=B33C25D6. t1=83068533.
62
R[13]: x= 64F0EAA1  DA27090C  F64F1005  99149A52.    t0=A0AA2F81. t1=FFF30DB7.
63
R[14]: x= B0681C46  606D0273  F64F1005  99149A52.    t0=114C17C5. t1=EB143CFF.
64
R[15]: x= B0681C46  606D0273  EB27628F  2C51191D.    t0=677DA87D. t1=989D1459.
65
R[16]: x= C1708BA9  9522A3CE  EB27628F  2C51191D.    t0=9357B338. t1=AC9926BF.
66
R[17]: x= 5C9F589F  322C12F6  2FECBFB6  5AC3E82A.
67
 
68
CT=9F589F5CF6122C32B6BFEC2F2AE8C35A
69
 
70
Decrypt()
71
 
72
CT=9F589F5CF6122C32B6BFEC2F2AE8C35A
73
 
74
 
75
R[17]: x= 5C9F589F  322C12F6  2FECBFB6  5AC3E82A.
76
R[16]: x= C1708BA9  9522A3CE  EB27628F  2C51191D.    t0=9357B338. t1=AC9926BF.
77
R[15]: x= B0681C46  606D0273  EB27628F  2C51191D.    t0=677DA87D. t1=989D1459.
78
R[14]: x= B0681C46  606D0273  F64F1005  99149A52.    t0=114C17C5. t1=EB143CFF.
79
R[13]: x= 64F0EAA1  DA27090C  F64F1005  99149A52.    t0=A0AA2F81. t1=FFF30DB7.
80
R[12]: x= 64F0EAA1  DA27090C  D57933FD  F8EA8B1B.    t0=B33C25D6. t1=83068533.
81
R[11]: x= 013077D7  B3528BA1  D57933FD  F8EA8B1B.    t0=E3C81108. t1=828E7493.
82
R[10]: x= 013077D7  B3528BA1  7A39754C  973ABD2A.    t0=77FC927F. t1=8B8678CC.
83
R[ 9]: x= A85CE579  DE2661CE  7A39754C  973ABD2A.    t0=54687CDF. t1=9044BF4B.
84
R[ 8]: x= A85CE579  DE2661CE  CD0D38A1  C069BD9B.    t0=E9BC6975. t1=F0DDA4C3.
85
R[ 7]: x= 0FFE0AD1  D6B87B70  CD0D38A1  C069BD9B.    t0=839B0017. t1=B3A89DB0.
86
R[ 6]: x= 0FFE0AD1  D6B87B70  F14F2618  821B5F36.    t0=58554EDB. t1=62585CF7.
87
R[ 5]: x= 2AE61A96  84BC42D3  F14F2618  821B5F36.    t0=067D0B49. t1=318EACB4.
88
R[ 4]: x= 2AE61A96  84BC42D3  899063BD  893E49A9.    t0=607AAEAD. t1=6ED2DBF9.
89
R[ 3]: x= 55A538DE  5C5A4DB6  899063BD  893E49A9.    t0=60DAC1A4. t1=2D84C23D.
90
R[ 2]: x= 55A538DE  5C5A4DB6  C38DCAA4  7A0A91B6.    t0=7C4536B9. t1=67A58299.
91
R[ 1]: x= 52C54DDE  11F0626D  C38DCAA4  7A0A91B6.    t0=C06D4949. t1=41B9BFC1.
92
R[ 0]: x= 52C54DDE  11F0626D  7CAC9D4A  4D1B4AAA.
93
R[-1]: x= 00000000  00000000  00000000  00000000.
94
 
95
PT=00000000000000000000000000000000
96
 
97
==========
98
 
99
KEYSIZE=192
100
 
101
KEY=0123456789ABCDEFFEDCBA98765432100011223344556677
102
 
103
;
104
;makeKey:   Input key            -->  S-box key     [Encrypt]
105
;             EFCDAB89 67452301  -->  B89FF6F2
106
;             10325476 98BADCFE  -->  B255BC4B
107
;             77665544 33221100  -->  45661061
108
;           Subkeys
109
;             38394A24 C36D1175   Input whiten
110
;             E802528F 219BFEB4
111
;             B9141AB4 BD3E70CD  Output whiten
112
;             AF609383 FD36908A
113
;             03EFB931 1D2EE7EC  Round subkeys
114
;             A7489D55 6E44B6E8
115
;             714AD667 653AD51F
116
;             B6315B66 B27C05AF
117
;             A06C8140 9853D419
118
;             4016E346 8D1C0DD4
119
;             F05480BE B6AF816F
120
;             2D7DC789 45B7BD3A
121
;             57F8A163 2BEFDA69
122
;             26AE7271 C2900D79
123
;             ED323794 3D3FFD80
124
;             5DE68E49 9C3D2478
125
;             DF326FE3 5911F70D
126
;             C229F13B B1364772
127
;             4235364D 0CEC363A
128
;             57C8DD1F 6A1AD61E
129
;
130
PT=00000000000000000000000000000000
131
 
132
Encrypt()
133
 
134
R[-1]: x= 00000000  00000000  00000000  00000000.
135
R[ 0]: x= 38394A24  C36D1175  E802528F  219BFEB4.
136
R[ 1]: x= 38394A24  C36D1175  9C263D67  5E68BE8F.    t0=988C8223. t1=33D1ECEC.
137
R[ 2]: x= C8F5099F  0C4B8F53  9C263D67  5E68BE8F.    t0=E8C880BC. t1=19C23B0A.
138
R[ 3]: x= C8F5099F  0C4B8F53  69948F5E  E67C030F.    t0=C615F1F6. t1=17AE5B7E.
139
R[ 4]: x= 07633866  59421079  69948F5E  E67C030F.    t0=90AB32AA. t1=7F56EB43.
140
R[ 5]: x= 07633866  59421079  C015BE79  149B9CEC.    t0=52971E00. t1=F6BC546D.
141
R[ 6]: x= A042B99D  709EF54B  C015BE79  149B9CEC.    t0=DAA00849. t1=2D2F5FCE.
142
R[ 7]: x= A042B99D  709EF54B  0CD39FA6  B250BEDA.    t0=EE03FB5B. t1=FB5A051C.
143
R[ 8]: x= F7B097FA  9E5C4FF7  0CD39FA6  B250BEDA.    t0=09A1B597. t1=18041948.
144
R[ 9]: x= F7B097FA  9E5C4FF7  77FC8B29  CC2B3F88.    t0=99C9694E. t1=F1687F43.
145
R[10]: x= A279C718  421A8D38  77FC8B29  CC2B3F88.    t0=5D174956. t1=2F7D5E04.
146
R[11]: x= A279C718  421A8D38  5B1A0904  12FEBF99.    t0=5BC40012. t1=78D2617B.
147
R[12]: x= E4409C22  702548A2  5B1A0904  12FEBF99.    t0=C251B3CE. t1=4AC0BD46.
148
R[13]: x= E4409C22  702548A2  5DDAA2A1  EFB2F051.    t0=91BC2070. t1=6FC0BBF3.
149
R[14]: x= 8561A604  825D2480  5DDAA2A1  EFB2F051.    t0=A7D24F8E. t1=84878F62.
150
R[15]: x= 8561A604  825D2480  5CC6CB7B  62A2CE64.    t0=93690387. t1=0EB8FA83.
151
R[16]: x= 17738CD3  B5142D18  5CC6CB7B  62A2CE64.    t0=5FE8370B. t1=F3D5AB78.
152
R[17]: x= E5D2D1CF  DF9CBEA9  B8131F50  4822BD92.
153
 
154
CT=CFD1D2E5A9BE9CDF501F13B892BD2248
155
 
156
Decrypt()
157
 
158
CT=CFD1D2E5A9BE9CDF501F13B892BD2248
159
 
160
 
161
R[17]: x= E5D2D1CF  DF9CBEA9  B8131F50  4822BD92.
162
R[16]: x= 17738CD3  B5142D18  5CC6CB7B  62A2CE64.    t0=5FE8370B. t1=F3D5AB78.
163
R[15]: x= 8561A604  825D2480  5CC6CB7B  62A2CE64.    t0=93690387. t1=0EB8FA83.
164
R[14]: x= 8561A604  825D2480  5DDAA2A1  EFB2F051.    t0=A7D24F8E. t1=84878F62.
165
R[13]: x= E4409C22  702548A2  5DDAA2A1  EFB2F051.    t0=91BC2070. t1=6FC0BBF3.
166
R[12]: x= E4409C22  702548A2  5B1A0904  12FEBF99.    t0=C251B3CE. t1=4AC0BD46.
167
R[11]: x= A279C718  421A8D38  5B1A0904  12FEBF99.    t0=5BC40012. t1=78D2617B.
168
R[10]: x= A279C718  421A8D38  77FC8B29  CC2B3F88.    t0=5D174956. t1=2F7D5E04.
169
R[ 9]: x= F7B097FA  9E5C4FF7  77FC8B29  CC2B3F88.    t0=99C9694E. t1=F1687F43.
170
R[ 8]: x= F7B097FA  9E5C4FF7  0CD39FA6  B250BEDA.    t0=09A1B597. t1=18041948.
171
R[ 7]: x= A042B99D  709EF54B  0CD39FA6  B250BEDA.    t0=EE03FB5B. t1=FB5A051C.
172
R[ 6]: x= A042B99D  709EF54B  C015BE79  149B9CEC.    t0=DAA00849. t1=2D2F5FCE.
173
R[ 5]: x= 07633866  59421079  C015BE79  149B9CEC.    t0=52971E00. t1=F6BC546D.
174
R[ 4]: x= 07633866  59421079  69948F5E  E67C030F.    t0=90AB32AA. t1=7F56EB43.
175
R[ 3]: x= C8F5099F  0C4B8F53  69948F5E  E67C030F.    t0=C615F1F6. t1=17AE5B7E.
176
R[ 2]: x= C8F5099F  0C4B8F53  9C263D67  5E68BE8F.    t0=E8C880BC. t1=19C23B0A.
177
R[ 1]: x= 38394A24  C36D1175  9C263D67  5E68BE8F.    t0=988C8223. t1=33D1ECEC.
178
R[ 0]: x= 38394A24  C36D1175  E802528F  219BFEB4.
179
R[-1]: x= 00000000  00000000  00000000  00000000.
180
 
181
PT=00000000000000000000000000000000
182
 
183
==========
184
 
185
KEYSIZE=256
186
 
187
KEY=0123456789ABCDEFFEDCBA987654321000112233445566778899AABBCCDDEEFF
188
 
189
;
190
;makeKey:   Input key            -->  S-box key     [Encrypt]
191
;             EFCDAB89 67452301  -->  B89FF6F2
192
;             10325476 98BADCFE  -->  B255BC4B
193
;             77665544 33221100  -->  45661061
194
;             FFEEDDCC BBAA9988  -->  8E4447F7
195
;           Subkeys
196
;             5EC769BF 44D13C60   Input whiten
197
;             76CD39B1 16750474
198
;             349C294B EC21F6D6  Output whiten
199
;             4FBD10B4 578DA0ED
200
;             C3479695 9B6958FB  Round subkeys
201
;             6A7FBC4E 0BF1830B
202
;             61B5E0FB D78D9730
203
;             7C6CF0C4 2F9109C8
204
;             E69EA8D1 ED99BDFF
205
;             35DC0BBD A03E5018
206
;             FB18EA0B 38BD43D3
207
;             76191781 37A9A0D3
208
;             72427BEA 911CC0B8
209
;             F1689449 71009CA9
210
;             B6363E89 494D9855
211
;             590BBC63 F95A28B5
212
;             FB72B4E1 2A43505C
213
;             BFD34176 5C133D12
214
;             3A9247F7 9A3331DD
215
;             EE7515E6 F0D54DCD
216
;
217
PT=00000000000000000000000000000000
218
 
219
Encrypt()
220
 
221
R[-1]: x= 00000000  00000000  00000000  00000000.
222
R[ 0]: x= 5EC769BF  44D13C60  76CD39B1  16750474.
223
R[ 1]: x= 5EC769BF  44D13C60  D38B6C9F  A23B7169.    t0=29C0736C. t1=E4D3D68D.
224
R[ 2]: x= 99424DFF  FBC14BFC  D38B6C9F  A23B7169.    t0=9D16BBB3. t1=64AD7A3F.
225
R[ 3]: x= 99424DFF  FBC14BFC  698BE047  6A997290.    t0=E66B9D19. t1=B87B2DFD.
226
R[ 4]: x= 2C125DD7  5A526278  698BE047  6A997290.    t0=0BB41F61. t1=3945E62C.
227
R[ 5]: x= 2C125DD7  5A526278  E35CD910  7CB57D06.    t0=D5397903. t1=F35A3092.
228
R[ 6]: x= D5178F25  00D35CC5  E35CD910  7CB57D06.    t0=8C8927A1. t1=C3D8103E.
229
R[ 7]: x= D5178F25  00D35CC5  D8447F91  65C2BD96.    t0=4D8B7489. t1=0B2FC79F.
230
R[ 8]: x= FF92E109  DF621C97  D8447F91  65C2BD96.    t0=C1176720. t1=F301CE95.
231
R[ 9]: x= FF92E109  DF621C97  28BFEFF5  D45666FB.    t0=9F3BEC03. t1=77BD388E.
232
R[10]: x= BB79AD2E  AA410F41  28BFEFF5  D45666FB.    t0=8C6DB451. t1=0B8B72BA.
233
R[11]: x= BB79AD2E  AA410F41  6576A3ED  BFF8215E.    t0=8A317EF8. t1=A1EAEAAE.
234
R[12]: x= 4A6BBAFF  439F4766  6576A3ED  BFF8215E.    t0=8F8307AA. t1=472014C3.
235
R[13]: x= 4A6BBAFF  439F4766  F7186836  04CA5304.    t0=CEB0BBE1. t1=C12302BE.
236
R[14]: x= CBD3C29D  BC31FEBE  F7186836  04CA5304.    t0=5CF5C93C. t1=C1033512.
237
R[15]: x= CBD3C29D  BC31FEBE  D4E77B7C  5415D5D3.    t0=853A6BB2. t1=9F09EB26.
238
R[16]: x= 85411C2B  7777DC05  D4E77B7C  5415D5D3.    t0=877AF61D. t1=4B61EEC7.
239
R[17]: x= E07B5237  B8342305  CAFC0C9F  20FA7CE8.
240
 
241
CT=37527BE0052334B89F0CFCCAE87CFA20
242
 
243
Decrypt()
244
 
245
CT=37527BE0052334B89F0CFCCAE87CFA20
246
 
247
 
248
R[17]: x= E07B5237  B8342305  CAFC0C9F  20FA7CE8.
249
R[16]: x= 85411C2B  7777DC05  D4E77B7C  5415D5D3.    t0=877AF61D. t1=4B61EEC7.
250
R[15]: x= CBD3C29D  BC31FEBE  D4E77B7C  5415D5D3.    t0=853A6BB2. t1=9F09EB26.
251
R[14]: x= CBD3C29D  BC31FEBE  F7186836  04CA5304.    t0=5CF5C93C. t1=C1033512.
252
R[13]: x= 4A6BBAFF  439F4766  F7186836  04CA5304.    t0=CEB0BBE1. t1=C12302BE.
253
R[12]: x= 4A6BBAFF  439F4766  6576A3ED  BFF8215E.    t0=8F8307AA. t1=472014C3.
254
R[11]: x= BB79AD2E  AA410F41  6576A3ED  BFF8215E.    t0=8A317EF8. t1=A1EAEAAE.
255
R[10]: x= BB79AD2E  AA410F41  28BFEFF5  D45666FB.    t0=8C6DB451. t1=0B8B72BA.
256
R[ 9]: x= FF92E109  DF621C97  28BFEFF5  D45666FB.    t0=9F3BEC03. t1=77BD388E.
257
R[ 8]: x= FF92E109  DF621C97  D8447F91  65C2BD96.    t0=C1176720. t1=F301CE95.
258
R[ 7]: x= D5178F25  00D35CC5  D8447F91  65C2BD96.    t0=4D8B7489. t1=0B2FC79F.
259
R[ 6]: x= D5178F25  00D35CC5  E35CD910  7CB57D06.    t0=8C8927A1. t1=C3D8103E.
260
R[ 5]: x= 2C125DD7  5A526278  E35CD910  7CB57D06.    t0=D5397903. t1=F35A3092.
261
R[ 4]: x= 2C125DD7  5A526278  698BE047  6A997290.    t0=0BB41F61. t1=3945E62C.
262
R[ 3]: x= 99424DFF  FBC14BFC  698BE047  6A997290.    t0=E66B9D19. t1=B87B2DFD.
263
R[ 2]: x= 99424DFF  FBC14BFC  D38B6C9F  A23B7169.    t0=9D16BBB3. t1=64AD7A3F.
264
R[ 1]: x= 5EC769BF  44D13C60  D38B6C9F  A23B7169.    t0=29C0736C. t1=E4D3D68D.
265
R[ 0]: x= 5EC769BF  44D13C60  76CD39B1  16750474.
266
R[-1]: x= 00000000  00000000  00000000  00000000.
267
 
268
PT=00000000000000000000000000000000
269
 
270
==========
271
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.