diff options
author | Pauli <pauli@openssl.org> | 2022-09-22 10:53:11 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2022-11-02 08:42:46 +1100 |
commit | 5db2b4a292b4576185287a9e01e4ba4098b4aa66 (patch) | |
tree | a5713a7929a78070555fa75c117469b308624abb /test | |
parent | 7c8187d43d043c6a66559ed341ff1e01b8711093 (diff) |
Skip DES based tests in FIPS mode
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/19510)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/80-test_cms.t | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/recipes/80-test_cms.t b/test/recipes/80-test_cms.t index e10e086005..6761162d68 100644 --- a/test/recipes/80-test_cms.t +++ b/test/recipes/80-test_cms.t @@ -370,28 +370,31 @@ my @smime_cms_tests = ( \&final_compare ], - [ "encrypted content test streaming PEM format, triple DES key", + [ "encrypted content test streaming PEM format, 128 bit AES key", [ "{cmd1}", @prov, "-EncryptedData_encrypt", "-in", $smcont, "-outform", "PEM", - "-des3", "-secretkey", "000102030405060708090A0B0C0D0E0F1011121314151617", + "-aes128", "-secretkey", "000102030405060708090A0B0C0D0E0F", "-stream", "-out", "{output}.cms" ], [ "{cmd2}", @prov, "-EncryptedData_decrypt", "-in", "{output}.cms", "-inform", "PEM", - "-secretkey", "000102030405060708090A0B0C0D0E0F1011121314151617", + "-secretkey", "000102030405060708090A0B0C0D0E0F", "-out", "{output}.txt" ], \&final_compare ], +); - [ "encrypted content test streaming PEM format, 128 bit AES key", +# FIPS 140-3: DES is unavailable +push @smime_cms_tests, ( + [ "encrypted content test streaming PEM format, triple DES key", [ "{cmd1}", @prov, "-EncryptedData_encrypt", "-in", $smcont, "-outform", "PEM", - "-aes128", "-secretkey", "000102030405060708090A0B0C0D0E0F", + "-des3", "-secretkey", "000102030405060708090A0B0C0D0E0F1011121314151617", "-stream", "-out", "{output}.cms" ], [ "{cmd2}", @prov, "-EncryptedData_decrypt", "-in", "{output}.cms", "-inform", "PEM", - "-secretkey", "000102030405060708090A0B0C0D0E0F", + "-secretkey", "000102030405060708090A0B0C0D0E0F1011121314151617", "-out", "{output}.txt" ], \&final_compare ], -); +) if $no_fips; my @smime_cms_cades_tests = ( |