rand: remove unimplemented librandom stub code
[openssl.git] / test / recipes / 80-test_cms.t
index 3af1a0ce55ef8f5335acfaad1660105b22364103..07014945a7d82683fedb6438f3afbff610bb521a 100644 (file)
@@ -394,6 +394,13 @@ my @smime_cms_tests = (
         "-out", "{output}.txt" ],
       \&final_compare
     ],
+
+    [ "encrypted content test streaming PEM format -noout, 128 bit AES key",
+      [ "{cmd1}", @prov, "-EncryptedData_encrypt", "-in", $smcont, "-outform", "PEM",
+       "-aes128", "-secretkey", "000102030405060708090A0B0C0D0E0F",
+       "-stream", "-noout" ],
+      [ "{cmd2}", @prov, "-help" ]
+    ],
 );
 
 my @smime_cms_cades_tests = (
@@ -1193,7 +1200,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',
@@ -1207,7 +1214,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"),