CMS RSA-OAEP and RSA-PSS support.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 19 Jun 2013 17:21:37 +0000 (18:21 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 1 Oct 2013 13:01:18 +0000 (14:01 +0100)
commitaf7d6b936b4020cf433a0bb20f911f9e03576e50
tree4a3cec13ba84e03763679d9c430f69ce7d186f0e
parenta64b8786b58a9f786b400a0492cfceb71866b869
CMS RSA-OAEP and RSA-PSS support.

Extend RSA ASN1 method to support CMS PSS signatures for both sign
and verify.

For signing the EVP_PKEY_CTX parameters are read and the appropriate
CMS structures set up.

For verification the CMS structures are analysed and the corresponding
parameters in the EVP_PKEY_CTX set.

Also add RSA-OAEP support.

For encrypt the EVP_PKEY_CTX parameters are used.

For decrypt the CMS structure is uses to set the appropriate EVP_PKEY_CTX
parameters.
(cherry picked from commit 0574cadf857b19485465b9d71b7dec9549857a4d)

Also sync error codes with OpenSSL 1.0.1 and add new ones.
crypto/rsa/rsa.h
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_asn1.c
crypto/rsa/rsa_err.c
crypto/rsa/rsa_pmeth.c