Use method key type instead of EVP_PKEY_RSA
authorDr. Stephen Henson <steve@openssl.org>
Sun, 20 Nov 2016 04:17:30 +0000 (04:17 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 8 Jan 2017 01:42:46 +0000 (01:42 +0000)
commitfaa02fe25677a7a97160b301e4e7cf5ade039340
tree20dec455bfda39379b23a9158e1117aa43e46e74
parent4e8ba7479df8c5fb23f59742f434ae0e78d1a42f
Use method key type instead of EVP_PKEY_RSA

Make RSA method more flexible by using the key type from the
method instead of hard coding EVP_PKEY_RSA: by doing this the
same code supports both RSA and RSA-PSS.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2177)
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_pmeth.c