summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2016-11-20 23:32:24 +0100
committerAndy Polyakov <appro@openssl.org>2016-11-25 17:23:41 +0100
commit04bec2a3a2f83e03c8eb2b7472ace8ec94396d7f (patch)
tree4900a9f3da14f4ecd8f02c91bf4d07ff02a5795a /test
parente15c45fb22eca69d0faffb91d4c501e11837d376 (diff)
test/evptests.txt: add regression test for false carry in ctr128.c.
GH issue #1916 affects only big-endian platforms. TLS is not affected, because TLS fragment is never big enough. Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit b47f116b1e02d20b1f8a7488be5a04f7cf5bc712)
Diffstat (limited to 'test')
-rw-r--r--test/evptests.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/evptests.txt b/test/evptests.txt
index f358ddb708..36697f1acb 100644
--- a/test/evptests.txt
+++ b/test/evptests.txt
@@ -842,6 +842,14 @@ Plaintext = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021
Ciphertext = EB6C52821D0BBBF7CE7594462ACA4FAAB407DF866569FD07F48CC0B583D6071F1EC0E6B8
+# Self-generated vector to trigger false carry on big-endian platforms
+Cipher = aes-128-ctr
+Key = 7E24067817FAE0D743D6CE1F32539163
+IV = 00000000000000007FFFFFFFFFFFFFFF
+Operation = ENCRYPT
+Plaintext = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F
+Ciphertext = A2D459477E6432BD74184B1B5370D2243CDC202BC43583B2A55D288CDBBD1E03
+
# DES ECB tests (from destest)
Cipher = DES-ECB