author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 02 Oct 2009 13:15:59 +0300 | |
changeset 10 | afc583cfa176 |
parent 8 | 35751d3474b7 |
child 85 | 1efb81185f1c |
permissions | -rw-r--r-- |
8
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
+M RC2 CBC tests |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2 |
+M BSafe tests - TVR2CBN0 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
+C Key............. Plaintext....... Ciphertext...... IV.............. |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
01 0000000000000000 0000000000000000 EBB773F993278EFF 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
+M BSafe tests - TFCIV801 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
+M These appear not to be correct vectors...? |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
+M They are from partial encrypt tests |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
+M Actually, the problem is the number of effective bits, these are marked as |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
+M 32 effective bits in the BSafe test vector file and give the correct |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
+M answers if they are initialised with 32 effective bits. |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
+C 01 1234567890123456 0001020304050607 ADA134F25BA7E028 7766554433221100 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
+C 01 1234567890123456 00010203040506070809101112131415 ADA134F25BA7E0281CBE461F05491F1C 7766554433221100 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
+C 01 1234567890123456 000102030405060708091011121314151617181920212223 ADA134F25BA7E0281CBE461F05491F1CC08E67D3AEA1F190 7766554433221100 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
+C 02 1234567890123456 0001020304050607 D08502E791F56B76 0011223344556677 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
+C 02 1234567890123456 00010203040506070809101112131415 D08502E791F56B76535055800911B4D6 0011223344556677 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
+C 02 1234567890123456 000102030405060708091011121314151617181920212223 D08502E791F56B76535055800911B4D6724ECD8EE3E3443B 0011223344556677 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
+M BSafe tests - TFRC2C00 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
01 0123456789ABCDEF 1110010110010100 83919A5CBDDA91E8 0001101001101011 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
02 0123456789ABCDEF 0001101001101011 83919A5CBDDA91E8 1110010110010100 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
03 0123456789ABCDEF 88BCA90E90875A7F B0E5CDDD09CB4581 456789ABCDEF0123 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
04 0123456789ABCDEF 0F79C384627BAFB2 B20420ABB639D2BE B0E5CDDD09CB4581 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
05 0123456789ABCDEF 16F80A6F85920584 0BB613FC9B702A66 B20420ABB639D2BE |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
06 0123456789ABCDEF 88BCA90E90875A7F0F79C384627BAFB216F80A6F85920584 B0E5CDDD09CB4581B20420ABB639D2BE0BB613FC9B702A66 456789ABCDEF0123 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
+M BSafe tests - TFRC2C01 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
+M This vector also appears broken, it is from partial encrypt tests |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
26 |
+C 01 0123456789ABCDEF 1011121314151617181920212223242526272829303132333435363738394041 D41F760B7391926552423C5B3204DFEECBDC9D7E6B8366FA397CDF48A2E359DC 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
27 |
02 0123456789ABCDEF 1122334455667788 560788C117EC3BF0 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
28 |
03 0123456789ABCDEF 1122334455667788AA11223344556677 560788C117EC3BF028D552DB234B64C5 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
29 |
04 0123456789ABCDEF 1122334455667788AA1122334455667788AA112233445566 560788C117EC3BF028D552DB234B64C58E0C5D57AF03D760 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
+M BSafe tests - TVRC2C00 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
31 |
01 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 278B27E42E2F0D49 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
02 3000000000000000 1000000000000001 30649EDF9BE7D2C2 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
33 |
03 1111111111111111 1111111111111111 08BA6FFA24CD2448 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
34 |
04 0123456789ABCDEF 1111111111111111 83919A5CBDDA91E8 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
35 |
05 1111111111111111 0123456789ABCDEF 715D05DCBAD0A52D 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
36 |
06 FEDCBA9876543210 0123456789ABCDEF AFF61F28ADB8F992 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
37 |
07 7CA110454A1A6E57 01A1D6D039776742 E6C72BD91A8317DA 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
08 0131D9619DC1376E 5CD54CA83DEF57DA 5DEC877636C097F4 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
39 |
09 07A1133E4A0B2686 0248D43806F67172 F6A678D160B219E1 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
40 |
10 3849674C2602319E 51454B582DDF440A F10947AADA21CC24 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
41 |
11 04B915BA43FEB5B6 42FD443059577FA2 2F999B72BFE16FA7 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
42 |
12 0113B970FD34F2CE 059B5E0851CF143A 35783A7937FC0786 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
43 |
13 0170F175468FB5E6 0756D8E0774761D2 4BE2541E1F1E9AE9 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
44 |
14 43297FAD38E373FE 762514B829BF486A 0D827AB91CBE6B81 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
45 |
15 07A7137045DA2A16 3BDD119049372802 0E4D330B57B01F64 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
46 |
16 04689104C2FD3B2F 26955F6835AF609A 0F89859336A2BB56 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
47 |
17 37D06BB516CB7546 164D5E404F275232 CC22A66F79417445 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
48 |
18 1F08260D1AC2465E 6B056E18759F5CCA 9A9FA77A5CE073A0 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
49 |
19 584023641ABA6176 004BD6EF09176062 D896266223671934 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
50 |
20 025816164629B007 480D39006EE762F2 4DF89CF7EE3D5B40 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
51 |
21 49793EBC79B3258F 437540C8698F3CFA 141F405CA84C25C4 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
52 |
22 4FB05E1515AB73A7 072D43A077075292 3F0558B19B018711 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
53 |
23 49E95D6D4CA229BF 02FE55778117F12A 585FE24017619CCF 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
54 |
24 018310DC409B26D6 1D9D5C5018F728C2 7963042382F61893 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
55 |
25 1C587F1C13924FEF 305532286D6F295A B3073BCAE8912B3B 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
26 0101010101010101 0123456789ABCDEF 927B508FF3609651 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
57 |
27 1F1F1F1F0E0E0E0E 0123456789ABCDEF D8E4684DCE864C3B 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
58 |
28 E0FEE0FEF1FEF1FE 0123456789ABCDEF AF317F8DB5F2B33C 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
59 |
29 0000000000000000 FFFFFFFFFFFFFFFF 0770C3EB6DC04678 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
60 |
30 FFFFFFFFFFFFFFFF 0000000000000000 A3A112654F81C5CD 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
61 |
31 0123456789ABCDEF 0000000000000000 A9F36E0F75C4D4E7 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
62 |
32 FEDCBA9876543210 FFFFFFFFFFFFFFFF 285155EE09767F79 0000000000000000 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
63 |
+M BSafe tests - TVRC2P00 |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
64 |
01 0123456789ABCDEF 6789ABCDEF012345 8AB9812A157EFA87 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
65 |
02 0123456789ABCDEF 6789ABCDEF0123450808080808080808 8AB9812A157EFA8791CF42833556FB07 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
66 |
03 0123456789ABCDEF 010203040506070809101112131415160808080808080808 2DEF62E545A755DEABB588A36AF7E2A11F65064B843373D0 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
67 |
04 0123456789ABCDEF 01020304050607080910111213141501 2DEF62E545A755DE377B2C5382276EC1 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
68 |
05 0123456789ABCDEF 01020304050607080910111213140202 2DEF62E545A755DE558B258C5E98416A 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
69 |
06 0123456789ABCDEF 01020304050607080910111213030303 2DEF62E545A755DE61202489EE7BA71D 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
70 |
07 0123456789ABCDEF 01020304050607080910111204040404 2DEF62E545A755DEE88E29056AE9DA70 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
71 |
08 0123456789ABCDEF 01020304050607080910110505050505 2DEF62E545A755DE3C07D96F3A786265 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
72 |
09 0123456789ABCDEF 01020304050607080910060606060606 2DEF62E545A755DEB44C5090B8835C81 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
73 |
10 0123456789ABCDEF 01020304050607080907070707070707 2DEF62E545A755DECC05EF7692F2C516 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
74 |
11 0123456789ABCDEF 01020304050607080808080808080808 2DEF62E545A755DEC6D72BD46DB0B596 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
75 |
12 0123456789ABCDEF 0102030405060701 BC833CE2076E664D 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
76 |
13 0123456789ABCDEF 0102030405060202 3A6906738CCCC62F 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
77 |
14 0123456789ABCDEF 0102030405030303 8C7CDFD20A4A6E28 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
78 |
15 0123456789ABCDEF 0102030404040404 7BC7D4549A008837 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
79 |
16 0123456789ABCDEF 0102030505050505 EB777B0CDB21B583 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
80 |
17 0123456789ABCDEF 0102060606060606 AD39A96DCDFA9702 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
81 |
18 0123456789ABCDEF 0107070707070707 7C57FF01CCB66C58 00000000EFAB23EF |
35751d3474b7
Revision: 200935
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
82 |
19 0123456789ABCDEF 0808080808080808 2F9C162C976D4D2E 00000000EFAB23EF |