Use FIPS-197 vectors for AES. The NIST vectors were constructed by
authorRichard Levitte <levitte@openssl.org>
Mon, 21 Jan 2002 17:55:38 +0000 (17:55 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 21 Jan 2002 17:55:38 +0000 (17:55 +0000)
reencrypting or redecrypting the ciphertext 10000 times, which of
course gives higly different results.

crypto/evp/evptests.txt

index 9d5894a..fc89380 100644 (file)
@@ -13,53 +13,29 @@ MD5:::6162636465666768696a6b6c6d6e6f707172737475767778797a:c3fcd3d76192e4007dfb4
 MD5:::4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a30313233343536373839:d174ab98d277d9f5a5611c2c9f419d9f
 MD5:::3132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930:57edf4a22be3c955ac49da2e2107b67a
 
-# AES 128 ECB tests (from NIST test vectors, encrypt)
+# AES 128 ECB tests (from FIPS-197 test vectors, encrypt)
 
-AES-128-ECB:00000000000000000000000000000000::00000000000000000000000000000000:C34C052CC0DA8D73451AFE5F03BE297F
+AES-128-ECB:000102030405060708090A0B0C0D0E0F::00112233445566778899AABBCCDDEEFF:69C4E0D86A7B0430D8CDB78070B4C55A
 
-# AES 192 ECB tests (from NIST test vectors, encrypt)
+# AES 192 ECB tests (from FIPS-197 test vectors, encrypt)
 
-AES-192-ECB:000000000000000000000000000000000000000000000000::00000000000000000000000000000000:F3F6752AE8D7831138F041560631B114
+AES-192-ECB:000102030405060708090A0B0C0D0E0F1011121314151617::00112233445566778899AABBCCDDEEFF:DDA97CA4864CDFE06EAF70A0EC0D7191
 
-# AES 256 ECB tests (from NIST test vectors, encrypt)
+# AES 256 ECB tests (from FIPS-197 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 192 ECB tests (from NIST test vectors, decrypt)
-
-AES-192-ECB:000000000000000000000000000000000000000000000000::48E31E9E256718F29229319C19F15BA4:00000000000000000000000000000000
-
-# AES 256 ECB tests (from NIST test vectors, decrypt)
-
-AES-256-ECB:0000000000000000000000000000000000000000000000000000000000000000::058CCFFDBBCB382D1F6F56585D8A4ADE:00000000000000000000000000000000
+AES-256-ECB:000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F::00112233445566778899AABBCCDDEEFF:8EA2B7CA516745BFEAFC49904B496089
 
 # 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-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 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
+#AES-256-CBC:0000000000000000000000000000000000000000000000000000000000000000:00000000000000000000000000000000:00000000000000000000000000000000:FE3C53653E2F45B56FCD88B2CC898FF0
 
 # DES ECB tests (from destest)