Fix no-des failure in test_cms
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 18 Dec 2023 20:38:22 +0000 (21:38 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 19 Dec 2023 12:19:19 +0000 (13:19 +0100)
The newly introduced test case do not work
when configured with no-des, fix that by
choosing -aes128 as cipher.

Fixes ffed597882ba ("cms: avoid intermittent test failure")

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23086)

(cherry picked from commit 5b4f4474b2562c4422193e1719461a0ef5cbc3e5)

test/recipes/80-test_cms.t

index 0062fb9dcb46282e378442d0c33533738f4d5bf2..18b292afb790af0766ca88e96a7860fd661fc214 100644 (file)
@@ -1099,7 +1099,7 @@ subtest "encrypt to three recipients with RSA-OAEP, key only decrypt" => sub {
 
     ok(run(app(['openssl', 'cms',
                @defaultprov,
-               '-encrypt',
+               '-encrypt', '-aes128',
                '-in', $pt,
                '-out', $ct,
                '-stream',
@@ -1113,7 +1113,7 @@ subtest "encrypt to three recipients with RSA-OAEP, key only decrypt" => sub {
        "encrypt to three recipients with RSA-OAEP (avoid openssl/project issue#380)");
     ok(run(app(['openssl', 'cms',
                @defaultprov,
-               '-decrypt',
+               '-decrypt', '-aes128',
                '-in', $ct,
                '-out', $ptpt,
                '-inkey', catfile($smdir, "smrsa3-key.pem"),