From 5d09b003c080d81ff6adfb6c54be5c018a2ba294 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 8 Aug 2017 15:25:14 +0100 Subject: [PATCH] Add test for ECDH CMS key only Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4115) --- test/recipes/80-test_cms.t | 9 +++++++++ 1 file changed, 9 insertions(+) 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", -- 2.39.2