PROV: Refactor the RSA SIGNATURE implementation for better param control
authorRichard Levitte <levitte@openssl.org>
Thu, 7 May 2020 06:51:09 +0000 (08:51 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 14 May 2020 10:16:35 +0000 (12:16 +0200)
commit0ec36bf117b2c79f5663effd638410f1676c38dd
tree3b2a6151bb400415174776602def4afea5bfe3ca
parent36a2a551d7dd5628a3533f7f23b1f3827f9535f7
PROV: Refactor the RSA SIGNATURE implementation for better param control

We want to catch errors in passed parameters early, which requires
kowledge of the ongoing operation.  Fortunately, that's possible by
re-using the EVP_PKEY_OP macros in specific init functions.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11710)
providers/implementations/signature/rsa.c