summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-08-08 15:25:14 +0100
committerDr. Stephen Henson <steve@openssl.org>2017-08-08 20:49:08 +0100
commita904692f4b0bb610c2d36ad2c24ba0eb4ed5e88c (patch)
treef416663d127a53cc076153f143955fd1498893de /test
parent1a7d768dc33ad6073f60934fa5b64fa01d9a0a71 (diff)
Add test for ECDH CMS key only
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4115) (cherry picked from commit 5d09b003c080d81ff6adfb6c54be5c018a2ba294)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/80-test_cms.t9
1 files changed, 9 insertions, 0 deletions
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",