提交 4d393410 编写于 作者: R Richard Levitte

Add more of the NIST test vectors for AES.

For some reason, they give incorrect results with the OpenSSL
implementation.  I wonder why...
上级 bd697503
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册