diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-03-20 22:53:16 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-03-20 23:22:17 +0000 |
commit | 77e127ea6e4801a0bb584717f966fa17adabc45f (patch) | |
tree | 52257f7b3f5829e1e809ed272b1259a076dedc5e /crypto | |
parent | 5724bd49a2f11e1e9663ac82f4b5e63e18da65e6 (diff) | |
download | openssl-77e127ea6e4801a0bb584717f966fa17adabc45f.tar.gz |
Add AES unwrap test with invalid key.
This tests the unwrap algorithm with an invalid key. The result should
be rejected without returning any plaintext.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/evptests.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/evp/evptests.txt b/crypto/evp/evptests.txt index 8bf90d0630..26d371c559 100644 --- a/crypto/evp/evptests.txt +++ b/crypto/evp/evptests.txt @@ -2002,6 +2002,15 @@ Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F Plaintext = 00112233445566778899AABBCCDDEEFF000102030405060708090A0B0C0D0E0F Ciphertext = 28C9F404C4B810F4CBCCB35CFB87F8263F5786E2D80ED326CBC7F0E71A99F43BFB988B9B7A02DD21 +# Same as previous example but with invalid unwrap key: should be rejected +# without returning any plaintext +Cipher = id-aes256-wrap +Operation = DECRYPT +Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E00 +Plaintext = 00112233445566778899AABBCCDDEEFF000102030405060708090A0B0C0D0E0F +Ciphertext = 28C9F404C4B810F4CBCCB35CFB87F8263F5786E2D80ED326CBC7F0E71A99F43BFB988B9B7A02DD21 +Result = CIPHERUPDATE_ERROR + # AES wrap tests from RFC5649 Cipher = id-aes192-wrap-pad Key = 5840df6e29b02af1ab493b705bf16ea1ae8338f4dcc176a8 |