aboutsummaryrefslogtreecommitdiffstats
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 18:55:56 +0100
commit5d09b003c080d81ff6adfb6c54be5c018a2ba294 (patch)
tree3282e443e342cfa4f77bae540963217adbf05c29 /test
parent3f1d1704f215dc11e1fefbb6ecdcb2a08c3a65db (diff)
downloadopenssl-5d09b003c080d81ff6adfb6c54be5c018a2ba294.tar.gz
Add test for ECDH CMS key only
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4115)
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",