From 4d393410f35ff1884b2331242ac9c4fa7ad02ce0 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 21 Jan 2002 16:09:45 +0000 Subject: [PATCH] Add more of the NIST test vectors for AES. For some reason, they give incorrect results with the OpenSSL implementation. I wonder why... --- crypto/evp/evptests.txt | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/crypto/evp/evptests.txt b/crypto/evp/evptests.txt index 583b7d1a1d..9d5894ae8b 100644 --- a/crypto/evp/evptests.txt +++ b/crypto/evp/evptests.txt @@ -15,27 +15,51 @@ MD5:::31323334353637383930313233343536373839303132333435363738393031323334353637 # AES 128 ECB tests (from NIST test vectors, encrypt) -#AES-128-ECB:00000000000000000000000000000000::00000000000000000000000000000000:C34C052CC0DA8D73451AFE5F03BE297F +AES-128-ECB:00000000000000000000000000000000::00000000000000000000000000000000:C34C052CC0DA8D73451AFE5F03BE297F + +# AES 192 ECB tests (from NIST test vectors, encrypt) + +AES-192-ECB:000000000000000000000000000000000000000000000000::00000000000000000000000000000000:F3F6752AE8D7831138F041560631B114 + +# AES 256 ECB tests (from NIST test vectors, encrypt) + +AES-256-ECB:0000000000000000000000000000000000000000000000000000000000000000::00000000000000000000000000000000:8B79EECC93A0EE5DFF30B4EA21636DA4 # AES 128 ECB tests (from NIST test vectors, decrypt) -#AES-128-ECB:00000000000000000000000000000000::44416AC2D1F53C583303917E6BE9EBE0:00000000000000000000000000000000 +AES-128-ECB:00000000000000000000000000000000::44416AC2D1F53C583303917E6BE9EBE0:00000000000000000000000000000000 # AES 192 ECB tests (from NIST test vectors, decrypt) -#AES-192-ECB:000000000000000000000000000000000000000000000000::48E31E9E256718F29229319C19F15BA4:00000000000000000000000000000000 +AES-192-ECB:000000000000000000000000000000000000000000000000::48E31E9E256718F29229319C19F15BA4:00000000000000000000000000000000 # AES 256 ECB tests (from NIST test vectors, decrypt) -#AES-256-ECB:0000000000000000000000000000000000000000000000000000000000000000::058CCFFDBBCB382D1F6F56585D8A4ADE:00000000000000000000000000000000 +AES-256-ECB:0000000000000000000000000000000000000000000000000000000000000000::058CCFFDBBCB382D1F6F56585D8A4ADE:00000000000000000000000000000000 # AES 128 CBC tests (from NIST test vectors, encrypt) -#AES-128-CBC:00000000000000000000000000000000:00000000000000000000000000000000:00000000000000000000000000000000:8A05FC5E095AF4848A08D328D3688E3D +AES-128-CBC:00000000000000000000000000000000:00000000000000000000000000000000:00000000000000000000000000000000:8A05FC5E095AF4848A08D328D3688E3D + +# AES 192 CBC tests (from NIST test vectors, encrypt) + +AES-192-CBC:000000000000000000000000000000000000000000000000:00000000000000000000000000000000:00000000000000000000000000000000:7BD966D53AD8C1BB85D2ADFAE87BB104 + +# AES 256 CBC tests (from NIST test vectors, encrypt) + +AES-256-CBC:0000000000000000000000000000000000000000000000000000000000000000:00000000000000000000000000000000:00000000000000000000000000000000:FE3C53653E2F45B56FCD88B2CC898FF0 # AES 128 CBC tests (from NIST test vectors, decrypt) -#AES-128-CBC:00000000000000000000000000000000:00000000000000000000000000000000:FACA37E0B0C85373DF706E73F7C9AF86:00000000000000000000000000000000 +AES-128-CBC:00000000000000000000000000000000:00000000000000000000000000000000:FACA37E0B0C85373DF706E73F7C9AF86:00000000000000000000000000000000 + +# AES 192 CBC tests (from NIST test vectors, decrypt) + +AES-192-CBC:000000000000000000000000000000000000000000000000:00000000000000000000000000000000:5DF678DD17BA4E75B61768C6ADEF7C7B:00000000000000000000000000000000 + +# AES 256 CBC tests (from NIST test vectors, decrypt) + +AES-256-CBC:0000000000000000000000000000000000000000000000000000000000000000:00000000000000000000000000000000:4804E1818FE6297519A3E88C57310413:00000000000000000000000000000000 # DES ECB tests (from destest) -- 2.25.1