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