Skip to content

Commit

Permalink
Skip evp_test cases where we need the legacy prov and its not available
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from #13595)
  • Loading branch information
mattcaswell committed Dec 11, 2020
1 parent a67c701 commit 3a43b30
Show file tree
Hide file tree
Showing 12 changed files with 306 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/recipes/30-test_evp_data/evpciph_bf.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,50 +9,58 @@

Title = Self generated BF test vectors

Availablein = legacy
Cipher = BF-ECB
Key = 000102030405060708090a0b0c0d0e0f
Plaintext = 0f0e0c0d0b0a09080706050403020100
Ciphertext = 079590e0010626685653b9b6c2a406e0

#Bigger key
Availablein = legacy
Cipher = BF-ECB
Key = 000102030405060708090a0b0c0d0e0f00000000
Plaintext = 0f0e0c0d0b0a09080706050403020100
Ciphertext = 7a0fe3734ad4785b49e59296b7861789

Availablein = legacy
Cipher = BF-CBC
Key = 000102030405060708090a0b0c0d0e0f
IV = 0101010101010101
Plaintext = 0f0e0c0d0b0a09080706050403020100
Ciphertext = 39c65006742b62a49f7a40ff69749c0a

#Bigger key
Availablein = legacy
Cipher = BF-CBC
Key = 000102030405060708090a0b0c0d0e0f00000000
IV = 0101010101010101
Plaintext = 0f0e0c0d0b0a09080706050403020100
Ciphertext = 3a5cefdb91e56e7aab45e7ea562bd465

Availablein = legacy
Cipher = BF-OFB
Key = 0001020304050607
IV = 0101010101010101
Plaintext = 0f0e0c0d0b0a09080706050403020100
Ciphertext = 27be8331cdc52dc61724029d302b9358

#Bigger key
Availablein = legacy
Cipher = BF-OFB
Key = 000102030405060700000000
IV = 0101010101010101
Plaintext = 0f0e0c0d0b0a09080706050403020100
Ciphertext = f108f229cc1cbe228aa3b2407979289a

Availablein = legacy
Cipher = BF-CFB
Key = 0001020304050607
IV = 0101010101010101
Plaintext = 0f0e0c0d0b0a09080706050403020100
Ciphertext = 27be8331cdc52dc675a93625f90f5db4

#Bigger key
Availablein = legacy
Cipher = BF-CFB
Key = 000102030405060700000000
IV = 0101010101010101
Expand Down
63 changes: 63 additions & 0 deletions test/recipes/30-test_evp_data/evpciph_cast5.txt

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions test/recipes/30-test_evp_data/evpciph_des.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,65 @@

Title = DES ECB Tests (from destest)

Availablein = legacy
Cipher = DES-ECB
Key = 0000000000000000
Plaintext = 0000000000000000
Ciphertext = 8CA64DE9C1B123A7

Availablein = legacy
Cipher = DES-ECB
Key = FFFFFFFFFFFFFFFF
Plaintext = FFFFFFFFFFFFFFFF
Ciphertext = 7359B2163E4EDC58

Availablein = legacy
Cipher = DES-ECB
Key = 3000000000000000
Plaintext = 1000000000000001
Ciphertext = 958E6E627A05557B

Availablein = legacy
Cipher = DES-ECB
Key = 1111111111111111
Plaintext = 1111111111111111
Ciphertext = F40379AB9E0EC533

Availablein = legacy
Cipher = DES-ECB
Key = 0123456789ABCDEF
Plaintext = 1111111111111111
Ciphertext = 17668DFC7292532D

Availablein = legacy
Cipher = DES-ECB
Key = 1111111111111111
Plaintext = 0123456789ABCDEF
Ciphertext = 8A5AE1F81AB8F2DD

Availablein = legacy
Cipher = DES-ECB
Key = FEDCBA9876543210
Plaintext = 0123456789ABCDEF
Ciphertext = ED39D950FA74BCC4

Title = DES Tests (from FIPS PUB 81)

Availablein = legacy
Cipher = DES-CBC
Key = 0123456789abcdef
IV = 1234567890abcdef
Plaintext = 4e6f772069732074
Ciphertext = e5c7cdde872bf27c

Availablein = legacy
Cipher = DES-CFB8
Key = 0123456789abcdef
IV = 1234567890abcdef
Plaintext = 4e6f7720697320746865
Ciphertext = f31fda07011462ee187f

Availablein = legacy
Cipher = DES-CFB
Key = 0123456789abcdef
IV = 1234567890abcdef
Expand All @@ -66,19 +76,22 @@ Ciphertext = f3096249c7f46e51a69e839b1a92f78403467133898ea622

Title = DES Tests (various sources)

Availablein = legacy
Cipher = DES-EDE3-CFB1
Key = 000102030405060708090A0B0C0D0E0F1011121314151617
IV = 0001020304050607
Plaintext = "Hello World"
Ciphertext = 3CF55D656E9C0664513358

Availablein = legacy
Cipher = DES-EDE3-CFB1
Key = 000102030405060708090A0B0C0D0E0F1011121314151617
IV = 0001020304050607
Operation = DECRYPT
Plaintext = "Hello World"
Ciphertext = 3CF55D656E9C0664513358

Availablein = legacy
Cipher = DESX-CBC
Key = 0123456789abcdeff1e0d3c2b5a49786fedcba9876543210
IV = fedcba9876543210
Expand Down

0 comments on commit 3a43b30

Please sign in to comment.