277e2a64 |
1 | # $Id: skipjack,v 1.2 2000/08/01 00:29:15 mdw Exp $ |
6a0a5bdc |
2 | # |
3 | # Test vectors for Skipjack |
4 | |
5 | # --- From the Skipjack definition --- |
6 | |
7 | skipjack { |
277e2a64 |
8 | |
9 | # --- The official Skipjack test vector --- |
10 | # |
11 | # It's a bit piss-poor that they only provide one test-vector here. |
12 | |
6a0a5bdc |
13 | 00998877665544332211 33221100ddccbbaa 2587cae27a12d300; |
277e2a64 |
14 | |
15 | # --- From KEA test vectors --- |
16 | # |
17 | # The Skipjack algorithm is used by the KEA to derive the final key. |
18 | # Unfortunately, the test vectors given in the Skipjack/KEA spec don't |
19 | # match my (or anyone else's!) implementation. These are the values |
20 | # which seem to be generally agreed. |
21 | |
22 | e7496e99e4628b7f9ffb 99ccfe2b90fd550b 60a73d387b517fca; |
23 | e7496e99e4628b7f9ffb 60a73d387b517fca 24c90cb05d668b27; |
24 | e5caf4dcc70e55f1dd90 b71cb0d009af2765 64f4877ae68a8a62; |
25 | e5caf4dcc70e55f1dd90 64f4877ae68a8a62 fee778a838a601cd; |
26 | |
27 | # --- These are the results expected from the KEA spec --- |
28 | # |
29 | # A `?' indicates that I don't know what that digit's meant to be. I've |
30 | # derived the top 16 bits of the intermediate results from the spec. |
31 | |
32 | # e7496e99e4628b7f9ffb 99ccfe2b90fd550b 2f30????????????; |
33 | # e7496e99e4628b7f9ffb 2f30???????????? 740839dee833add4; |
34 | # e5caf4dcc70e55f1dd90 b71cb0d009af2765 8e27????????????; |
35 | # e5caf4dcc70e55f1dd90 8e27???????????? 97fd1c6bd86bc439; |
36 | |
37 | # --- Some more test vectors --- |
38 | # |
39 | # These are dreamed up by me. The above tests don't actually exhaustively |
40 | # test the F-table. There are 16 entries unaccounted for. The keys and |
41 | # plaintexts were generated using fibrand with seed 0. |
42 | |
43 | cde4bef260d7bcda1635 47d348b7551195e7 f17b3070144aebea; |
44 | 7022907dd1dff7dac5c9 941d26d0c6eb14ad a055d02c5e0eae8d; |
45 | 568f86edd1dc9268eeee 533285a6ed810c9b b4c22f4fb74c35dc; |
46 | 689daaa9060d2d4b6003 062365b0a54364c7 08698d8786f80d16; |
47 | 6c160f11896c4794846e cfa14a7130c9f137 d6db848b7cecdd39; |
6a0a5bdc |
48 | } |