From: Dr. Stephen Henson Date: Tue, 8 Aug 2017 14:25:14 +0000 (+0100) Subject: Add test for ECDH CMS key only X-Git-Tag: OpenSSL_1_1_1-pre1~879 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=5d09b003c080d81ff6adfb6c54be5c018a2ba294 Add test for ECDH CMS key only Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4115) --- diff --git a/test/recipes/80-test_cms.t b/test/recipes/80-test_cms.t index 264c7d6073..b6264494f9 100644 --- a/test/recipes/80-test_cms.t +++ b/test/recipes/80-test_cms.t @@ -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",