diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-07-17 18:20:29 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-10-01 14:01:18 +0100 |
commit | d037e0d30c4ff40dbe91a2ac5d72f0885c6a0eb9 (patch) | |
tree | 2862f7d3926ae92ceda60de57adeec060289c022 /test/cms-test.pl | |
parent | 51cb950904ea4261cd9e90f0a5099e339ea43241 (diff) |
New CMS tests.
Add some ECDH CMS tests.
(cherry picked from commit 5cdc25a7545e44523b1f15418146bbda8eb03015)
Diffstat (limited to 'test/cms-test.pl')
-rw-r--r-- | test/cms-test.pl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/cms-test.pl b/test/cms-test.pl index 3ccece3f67..fa4394cff9 100644 --- a/test/cms-test.pl +++ b/test/cms-test.pl @@ -384,6 +384,31 @@ my @smime_cms_param_tests = ( . " -recip $smdir/smrsa1.pem -keyopt rsa_padding_mode:oaep" . " -keyopt rsa_oaep_md:sha256", "-decrypt -recip $smdir/smrsa1.pem -in test.cms -out smtst.txt" + ], + + [ +"enveloped content test streaming S/MIME format, ECDH", + "-encrypt -in smcont.txt" + . " -stream -out test.cms" + . " -recip $smdir/smec1.pem", + "-decrypt -recip $smdir/smec1.pem -in test.cms -out smtst.txt" + ], + + [ +"enveloped content test streaming S/MIME format, ECDH, AES128, SHA256 KDF", + "-encrypt -in smcont.txt" + . " -stream -out test.cms" + . " -recip $smdir/smec1.pem -aes128 -keyopt ecdh_kdf_md:sha256", + "-decrypt -recip $smdir/smec1.pem -in test.cms -out smtst.txt" + ], + + [ +"enveloped content test streaming S/MIME format, ECDH, K-283, cofactor DH", + "-encrypt -in smcont.txt" + . " -stream -out test.cms" + . " -recip $smdir/smec2.pem -aes128" + . " -keyopt ecdh_kdf_md:sha256 -keyopt ecdh_cofactor_mode:1", + "-decrypt -recip $smdir/smec2.pem -in test.cms -out smtst.txt" ] ); |