Add test for ECDH CMS key only
authorDr. Stephen Henson <steve@openssl.org>
Tue, 8 Aug 2017 14:25:14 +0000 (15:25 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 8 Aug 2017 17:55:56 +0000 (18:55 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4115)

test/recipes/80-test_cms.t

index 264c7d6073be116a4ee6fefcd01786ed19d55c64..b6264494f92af196536b122167bafcf1fec79c86 100644 (file)
@@ -349,6 +349,15 @@ my @smime_cms_param_tests = (
        "-in", "test.cms", "-out", "smtst.txt" ]
     ],
 
+    [ "enveloped content test streaming S/MIME format, DES, ECDH, 2 recipients, key only used",
+      [ "-encrypt", "-in", $smcont,
+       "-stream", "-out", "test.cms",
+       catfile($smdir, "smec1.pem"),
+       catfile($smdir, "smec2.pem") ],
+      [ "-decrypt", "-inkey", catfile($smdir, "smec2.pem"),
+       "-in", "test.cms", "-out", "smtst.txt" ]
+    ],
+
     [ "enveloped content test streaming S/MIME format, ECDH, DES, key identifier",
       [ "-encrypt", "-keyid", "-in", $smcont,
        "-stream", "-out", "test.cms",