configure.ac: Replace with a new version.
[u/mdw/catacomb] / tests / skipjack
1 # $Id: skipjack,v 1.3 2000/08/04 23:24:01 mdw Exp $
2 #
3 # Test vectors for Skipjack
4
5 # --- From the Skipjack definition ---
6
7 skipjack {
8
9 # --- The official Skipjack test vector ---
10 #
11 # It's a bit piss-poor that they only provide one test-vector here.
12
13 00998877665544332211 33221100ddccbbaa 2587cae27a12d300;
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;
48
49 # --- And some more, posted to Usenet ---
50 #
51 # Message-id <8m7slq$1i1$1@hecate.umd.edu>
52
53 f8da02647722f7103adf 1ddf39abf5cd711e c92d22324c6b31ae;
54 82760ac137948821eee4 dd6c6cce8f83e69e e32877c1d9527fff;
55 843c1687d3cdca5fc5c3 beaacf177fa41a11 4745783f75b8861a;
56 ae870cd7ff33a995f7e5 c4c09f216c1bc60a 5c101636b8a57a72;
57 5ccbd913ea8b73bd6391 d3f814b000245856 b4fc0f8e54728f91;
58 f65e74cd599c68a40cc7 356ec7d93832329c 93b750608f5701f8;
59 aa106e46d7087c4e93dc 209ecf1c537ad56c d823d45510099e61;
60 a93f9789a20c3cc34fea 892eea9d64e17d66 0959e231b275d95f;
61 88b163cbd61616888899 991390fd760fc91b e7700209886767ae;
62 fb6cd1ff70487561df10 daebc947ddca9c9e e7cc49a56bd6a322;
63 5edc1ac0c4e7ef5f002c 6419ddefe2cd8f2e e48a05cf26e242fd;
64 8e3090c19aa32f94496a 322998ecbd068112 62c0e537b14df2c1;
65 b96e3fd46fa4263f9092 3aae2aee20da93cc 54d1e58a6b624d71;
66 9e6635baee28c5bce2bc 14311112ca11f727 5d0f235a9d221ce0;
67 04127ce16dc1b1726a66 300e4313e7ad6796 8e5b03522e68cbeb;
68 f0b89d75e979ccc9b172 09cd1c1accbe7797 572c9b4025a9134b;
69 f9bfc78798cbf1bcd4b5 31b30ca354af3cd8 8c959c904789fbda;
70 f43a51b4273bde27d2b0 08c59b0db99ec267 b7d7f5fa342988fb;
71 cd51f0a75aa73c48edd2 9784b1e3e7e60e60 763aa8ee109397b3;
72 b3319a3f6622aa726bb3 f65216373d4b43c7 0325600337b8ad3c;
73 493254c9596e993f5f9c cba4c1215d5d36ce 68e1c551c59108c0;
74 76150c2c3ced1c7ca021 82294851288e75cb 7eb6325d82a2096c;
75 7140d6c5486305872df6 c3a7b7e4a52e407b 2483f385a42ee3c6;
76 3c2c3901f0ee9a3b2b0e 1bfde32ab559e13a d6fa9db8685fd88a;
77 606a8b4bdfaae8a0ba51 d205f7486c782838 0330489170b85293;
78 7847a47a0fe79ab770ce d96ff1f7c7fc60e0 1f9b3301c9b2708c;
79 73b9ab0c36c99e91a891 241d4bde19a75f8f 2b86c57ffe168895;
80 a37f2ad5a85e170741f5 7be1b8d58321c619 5af7ceb3eed9dca1;
81 f7b0c2a8170e3c4e48b3 c9214ea01ec14948 1b587736e116c04b;
82 a1fc67e44eacacf4a902 e2a3091feb581588 f3ecf0f1789a3923;
83 f14430affc5fe82a9ae9 3cb466d301b60854 e8d114c20ffa1c79;
84 fd26df50486a4cd96d9b b0684f8a5e63d935 222903994d64fe3a;
85 a6d46d46ca287e1a332a ba1f37e88edec55f 91f2baad6fa0de55;
86 83c3f1cb8d06efc6196b e9fed8501b7a6579 83f9f08f89a854ee;
87 0edfa44c7d4a4ef0725e eb5ca8b3fa1fcdbb 2b1b6670a6be0324;
88 b8edcf167d99a711ccee b8b525c6382af277 211a695da473766f;
89 4f639e0d5a5d2ad7e9a4 9162e781ff683853 eb2976370d22ef22;
90 37e006256a4ae6d320c4 c9f23a20a39ded11 dba4c0ef0ea098c0;
91 e41d0bd25f931ba1d85c 5a6f12f32f7eefdf 923daee8000709f9;
92 fdf65bbc5fe600f3cd68 cad5414c1c64f194 d5771e78b6f1fe1e;
93 1c269af2ff166acb27ef 063a58a20b45378f 634f7a3861af97a1;
94 1179f64acb6122ccf649 08fbf42b4313347b 3a803a4bd0e8c3e6;
95 078c87265eb8da323e90 6d4ed0e9930532d1 f4fa372e7e1441a1;
96 2fff35f8eb774c843bb0 40b699812345661d 63a9197f7b75f53f;
97 09f77346a4393ce99856 22ed54626a51e505 e91a050a7481b3dd;
98 5b878e0b22a705acf8fb 0c489b66e2da531b 6e9370a91b994878;
99 9d72c1ab2092c1b10877 c64b10f8b191bc2c 5bdecded96d656c9;
100 72865f289725e1b55502 91fdf7236f85bdd6 1a5680e51736026f;
101 06e3c0e541f4aae6fe93 40009f8a465a9feb 0e7aace421bc79d8;
102 2ea09f1cc89e064f09bc 543208b05bfa3858 a95d87fad12c3593;
103 }