[CMS] Test decryption of a ciphertext encrypted from 1.1.1
authorNicola Tuveri <nic.tuv@gmail.com>
Sat, 25 Jan 2020 16:19:56 +0000 (18:19 +0200)
committerNicola Tuveri <nic.tuv@gmail.com>
Tue, 18 Feb 2020 17:11:10 +0000 (19:11 +0200)
commitcf6404b14198b96a882affe917bb337e2626136c
treeda6d39f33212e7acfcdbbd5eec4d437d82d9605a
parentcd701de96a147260c2290d85af8a0656120a8ff8
[CMS] Test decryption of a ciphertext encrypted from 1.1.1

Current CMS en/decryption tests only validate that our current decyption
and encryption algorithms are compatible, but they say nothing about
correctness of the output for the given set of parameters.

As a partial fix in absence of proper KAT tests, we decrypt ciphertexts
generated with OpenSSL 1.1.1.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10631)
test/recipes/80-test_cms.t
test/recipes/80-test_cms_data/ciphertext_from_1_1_1.cms [new file with mode: 0644]