Steven Valdez | bb1ceac | 2016-10-07 10:34:51 -0400 | [diff] [blame] | 1 | # Test vectors from FIPS-197, Appendix C. |
| 2 | |
| 3 | Mode = Raw |
| 4 | Key = 000102030405060708090a0b0c0d0e0f |
| 5 | Plaintext = 00112233445566778899aabbccddeeff |
| 6 | Ciphertext = 69c4e0d86a7b0430d8cdb78070b4c55a |
| 7 | |
| 8 | Mode = Raw |
| 9 | Key = 000102030405060708090a0b0c0d0e0f1011121314151617 |
| 10 | Plaintext = 00112233445566778899aabbccddeeff |
| 11 | Ciphertext = dda97ca4864cdfe06eaf70a0ec0d7191 |
| 12 | |
| 13 | Mode = Raw |
| 14 | Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f |
| 15 | Plaintext = 00112233445566778899aabbccddeeff |
| 16 | Ciphertext = 8ea2b7ca516745bfeafc49904b496089 |
| 17 | |
| 18 | |
| 19 | # Test vectors from |
| 20 | # http://csrc.nist.gov/groups/ST/toolkit/documents/kms/key-wrap.pdf |
| 21 | |
| 22 | Mode = KeyWrap |
| 23 | Key = 000102030405060708090a0b0c0d0e0f |
| 24 | Plaintext = 00112233445566778899aabbccddeeff |
| 25 | Ciphertext = 1fa68b0a8112b447aef34bd8fb5a7b829d3e862371d2cfe5 |
| 26 | |
| 27 | Mode = KeyWrap |
| 28 | Key = 000102030405060708090a0b0c0d0e0f1011121314151617 |
| 29 | Plaintext = 00112233445566778899aabbccddeeff |
| 30 | Ciphertext = 96778b25ae6ca435f92b5b97c050aed2468ab8a17ad84e5d |
| 31 | |
| 32 | Mode = KeyWrap |
| 33 | Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f |
| 34 | Plaintext = 00112233445566778899aabbccddeeff |
| 35 | Ciphertext = 64e8c3f9ce0f5ba263e9777905818a2a93c8191e7d6e8ae7 |
| 36 | |
| 37 | Mode = KeyWrap |
| 38 | Key = 000102030405060708090a0b0c0d0e0f1011121314151617 |
| 39 | Plaintext = 00112233445566778899aabbccddeeff0001020304050607 |
| 40 | Ciphertext = 031d33264e15d33268f24ec260743edce1c6c7ddee725a936ba814915c6762d2 |
| 41 | |
| 42 | Mode = KeyWrap |
| 43 | Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f |
| 44 | Plaintext = 00112233445566778899aabbccddeeff0001020304050607 |
| 45 | Ciphertext = a8f9bc1612c68b3ff6e6f4fbe30e71e4769c8b80a32cb8958cd5d17d6b254da1 |
| 46 | |
| 47 | Mode = KeyWrap |
| 48 | Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f |
| 49 | Plaintext = 00112233445566778899aabbccddeeff000102030405060708090a0b0c0d0e0f |
| 50 | Ciphertext = 28c9f404c4b810f4cbccb35cfb87f8263f5786e2d80ed326cbc7f0e71a99f43bfb988b9b7a02dd21 |
Pete Bentley | 0c61efe | 2019-08-13 09:32:23 +0100 | [diff] [blame^] | 51 | |
| 52 | |
| 53 | # Test vectors from https://tools.ietf.org/html/rfc5649#section-6 |
| 54 | |
| 55 | Mode = KeyWrapWithPadding |
| 56 | Key = 5840df6e29b02af1ab493b705bf16ea1ae8338f4dcc176a8 |
| 57 | Plaintext = c37b7e6492584340bed12207808941155068f738 |
| 58 | Ciphertext = 138bdeaa9b8fa7fc61f97742e72248ee5ae6ae5360d1ae6a5f54f373fa543b6a |
| 59 | |
| 60 | Mode = KeyWrapWithPadding |
| 61 | Key = 5840df6e29b02af1ab493b705bf16ea1ae8338f4dcc176a8 |
| 62 | Plaintext = 466f7250617369 |
| 63 | Ciphertext = afbeb0f07dfbf5419200f2ccb50bb24f |