97227dc52d
This finally removes the last Android hack. Both Chromium and Android end up needing this thing (Chromium needs it for WebCrypto but currently uses the EVP_AEAD version and Android needs it by way of wpa_supplicant). On the Android side, the alternative is we finish upstream's NEED_INTERNAL_AES_WRAP patch, but then it just uses its own key-wrap implementation. This seems a little silly, considering we have a version of key-wrap under a different API anyway. It also doesn't make much sense to leave the EVP_AEAD API around if we don't want people to use it and Chromium's the only consumer. Remove it and I'll switch Chromium to the new---er, old--- APIs next roll. Change-Id: I23a89cda25bddb6ac1033e4cd408165f393d1e6c Reviewed-on: https://boringssl-review.googlesource.com/11410 Commit-Queue: David Benjamin <davidben@google.com> Reviewed-by: Adam Langley <agl@google.com>
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
# Test vectors from FIPS-197, Appendix C.
|
|
|
|
Mode = Raw
|
|
Key = 000102030405060708090a0b0c0d0e0f
|
|
Plaintext = 00112233445566778899aabbccddeeff
|
|
Ciphertext = 69c4e0d86a7b0430d8cdb78070b4c55a
|
|
|
|
Mode = Raw
|
|
Key = 000102030405060708090a0b0c0d0e0f1011121314151617
|
|
Plaintext = 00112233445566778899aabbccddeeff
|
|
Ciphertext = dda97ca4864cdfe06eaf70a0ec0d7191
|
|
|
|
Mode = Raw
|
|
Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
|
|
Plaintext = 00112233445566778899aabbccddeeff
|
|
Ciphertext = 8ea2b7ca516745bfeafc49904b496089
|
|
|
|
|
|
# Test vectors from
|
|
# http://csrc.nist.gov/groups/ST/toolkit/documents/kms/key-wrap.pdf
|
|
|
|
Mode = KeyWrap
|
|
Key = 000102030405060708090a0b0c0d0e0f
|
|
Plaintext = 00112233445566778899aabbccddeeff
|
|
Ciphertext = 1fa68b0a8112b447aef34bd8fb5a7b829d3e862371d2cfe5
|
|
|
|
Mode = KeyWrap
|
|
Key = 000102030405060708090a0b0c0d0e0f1011121314151617
|
|
Plaintext = 00112233445566778899aabbccddeeff
|
|
Ciphertext = 96778b25ae6ca435f92b5b97c050aed2468ab8a17ad84e5d
|
|
|
|
Mode = KeyWrap
|
|
Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
|
|
Plaintext = 00112233445566778899aabbccddeeff
|
|
Ciphertext = 64e8c3f9ce0f5ba263e9777905818a2a93c8191e7d6e8ae7
|
|
|
|
Mode = KeyWrap
|
|
Key = 000102030405060708090a0b0c0d0e0f1011121314151617
|
|
Plaintext = 00112233445566778899aabbccddeeff0001020304050607
|
|
Ciphertext = 031d33264e15d33268f24ec260743edce1c6c7ddee725a936ba814915c6762d2
|
|
|
|
Mode = KeyWrap
|
|
Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
|
|
Plaintext = 00112233445566778899aabbccddeeff0001020304050607
|
|
Ciphertext = a8f9bc1612c68b3ff6e6f4fbe30e71e4769c8b80a32cb8958cd5d17d6b254da1
|
|
|
|
Mode = KeyWrap
|
|
Key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
|
|
Plaintext = 00112233445566778899aabbccddeeff000102030405060708090a0b0c0d0e0f
|
|
Ciphertext = 28c9f404c4b810f4cbccb35cfb87f8263f5786e2d80ed326cbc7f0e71a99f43bfb988b9b7a02dd21
|