| 1 | # Test vectors for double and triple DES |
| 2 | |
| 3 | des3 { |
| 4 | # --- Some simple single-DES things --- |
| 5 | |
| 6 | 00451338957377 4e6f772069732074 3fa40e8a984d4815; |
| 7 | b6c74cbf60c1fd 328da675ff5abd2c cd3e9f9b670671d1; |
| 8 | |
| 9 | 0123456789abcdef 4e6f772069732074 3fa40e8a984d4815; |
| 10 | 0123456789abcdef 68652074696d6520 6a271787ab8883f9; |
| 11 | 0123456789abcdef 666f7220616c6c20 893d51ec4b563b53; |
| 12 | 0123456789abcdef 0123456789abcde7 c95744256a5ed31d; |
| 13 | |
| 14 | 0045133895737700451338957377 4e6f772069732074 3fa40e8a984d4815; |
| 15 | b6c74cbf60c1fdb6c74cbf60c1fd 328da675ff5abd2c cd3e9f9b670671d1; |
| 16 | |
| 17 | 0123456789abcdef0123456789abcdef 4e6f772069732074 3fa40e8a984d4815; |
| 18 | 0123456789abcdef0123456789abcdef 68652074696d6520 6a271787ab8883f9; |
| 19 | 0123456789abcdef0123456789abcdef 666f7220616c6c20 893d51ec4b563b53; |
| 20 | 0123456789abcdef0123456789abcdef 0123456789abcde7 c95744256a5ed31d; |
| 21 | |
| 22 | 004513389573770045133895737700451338957377 |
| 23 | 4e6f772069732074 3fa40e8a984d4815; |
| 24 | b6c74cbf60c1fdb6c74cbf60c1fdb6c74cbf60c1fd |
| 25 | 328da675ff5abd2c cd3e9f9b670671d1; |
| 26 | |
| 27 | 0123456789abcdef0123456789abcdef0123456789abcdef |
| 28 | 4e6f772069732074 3fa40e8a984d4815; |
| 29 | 0123456789abcdef0123456789abcdef0123456789abcdef |
| 30 | 68652074696d6520 6a271787ab8883f9; |
| 31 | 0123456789abcdef0123456789abcdef0123456789abcdef |
| 32 | 666f7220616c6c20 893d51ec4b563b53; |
| 33 | 0123456789abcdef0123456789abcdef0123456789abcdef |
| 34 | 0123456789abcde7 c95744256a5ed31d; |
| 35 | |
| 36 | # --- Genuine longer keys --- |
| 37 | |
| 38 | 0123456789abcdeffedcba9876543210 0123456789abcde7 7f1d0a77826b8aff; |
| 39 | 0123456789abcdeffedcba987654321089abcdef01234567 |
| 40 | 0123456789abcde7 de0b7c06ae5e0ed5; |
| 41 | } |
| 42 | |
| 43 | des3-cmac { |
| 44 | ## Examples from NIST. |
| 45 | |
| 46 | 0123456789abcdef23456789abcdef01 |
| 47 | "" |
| 48 | 79ce52a7f786a960; |
| 49 | 0123456789abcdef23456789abcdef01 |
| 50 | 6bc1bee22e409f96e93d7e117393172a |
| 51 | cc18a0b79af2413b; |
| 52 | 0123456789abcdef23456789abcdef01 |
| 53 | 6bc1bee22e409f96e93d7e117393172aae2d8a57 |
| 54 | c06d377ecd101969; |
| 55 | 0123456789abcdef23456789abcdef01 |
| 56 | 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51 |
| 57 | 9cd33580f9b64dfb; |
| 58 | |
| 59 | 0123456789abcdef23456789abcdef01456789abcdef0123 |
| 60 | "" |
| 61 | 7db0d37df936c550; |
| 62 | 0123456789abcdef23456789abcdef01456789abcdef0123 |
| 63 | 6bc1bee22e409f96e93d7e117393172a |
| 64 | 30239cf1f52e6609; |
| 65 | 0123456789abcdef23456789abcdef01456789abcdef0123 |
| 66 | 6bc1bee22e409f96e93d7e117393172aae2d8a57 |
| 67 | 6c9f3ee4923f6be2; |
| 68 | 0123456789abcdef23456789abcdef01456789abcdef0123 |
| 69 | 6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51 |
| 70 | 99429bd0bf7904e5; |
| 71 | |
| 72 | ## Locally generated tests. |
| 73 | 60d7bcda163547d348b7551195e7 |
| 74 | "" |
| 75 | 97b9dfb874462432; |
| 76 | 7022907dd1dff7dac5c9941d26d0 |
| 77 | c6 |
| 78 | f403026117612b0e; |
| 79 | eb14ad568f86edd1dc9268eeee53 |
| 80 | 3285a6ed810c9b689daaa9060d2d4b6003062365b0a54364 |
| 81 | 4e0fbacfa297003b; |
| 82 | c76c160f11896c4794846ecfa14a |
| 83 | 7130c9f137120634c9519848a877ff77bf7919 |
| 84 | 19d5f833e07e2015; |
| 85 | 2a5b50ade5d9cd73 |
| 86 | "" |
| 87 | ed38c0855386e014; |
| 88 | 9a3d1f337f29549e |
| 89 | 6b |
| 90 | c86e5386ee0e7b04; |
| 91 | 0d27a4ba23408540 |
| 92 | 6a6136512061f7080cc07df0591d8fa21f2dd88374d8cde8 |
| 93 | d5306ab188df59b5; |
| 94 | e160ad10997a2163 |
| 95 | 5c6d62c9269029df3e6057acc87638f5080467 |
| 96 | b6fc8dee2287152c; |
| 97 | 33d9ff61cdbda3b3e9878731ebfedd47 |
| 98 | "" |
| 99 | 349cd58ebc44cb39; |
| 100 | 05e505da1435dceaa7b1cc49ae1d50c3 |
| 101 | 82 |
| 102 | a8322086e22dbed8; |
| 103 | 01a894476b3f102b752eb9529533966f |
| 104 | 27043eb621b7f65b000961040ef2f9b2fc5fa450727a9b54 |
| 105 | 35c70f6e2cbab396; |
| 106 | 2cde52ebfda19d0ccc520f215eb57bb3 |
| 107 | a4f3ebbbb18ac6c95a97a48030370c33d090c5 |
| 108 | 639e5e64b410da07; |
| 109 | 4215abd6b3ad54efc9a38378c5b93bf4f2aad2605f |
| 110 | "" |
| 111 | 41240c9c71435050; |
| 112 | aee2b03fb648e27fff63102758fe2b69ac26afa334 |
| 113 | 98 |
| 114 | ab4c2c83747e8c5b; |
| 115 | 29b94586306fed54154f8f28523c03d4de16001578 |
| 116 | 46b710ee72807a2219bfb474fd71d891f24bb65d1563259f |
| 117 | eff715a559241957; |
| 118 | 9eb53b571ea629c54d57dd2d42f70800df9fcbaca4 |
| 119 | 8b77dba189196d1ebba10b0467cb9fc2712a19 |
| 120 | 2753a7135b48898f; |
| 121 | } |