mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
Allow RSA signature operations with RSA_NO_PADDING
When no md is set, the raw operations should be allowed. Fixes #16056 Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/16068)
This commit is contained in:
parent
ca638147c8
commit
07d189cee4
@ -126,8 +126,11 @@ static int rsa_check_padding(const PROV_RSA_CTX *prsactx,
|
||||
{
|
||||
switch(prsactx->pad_mode) {
|
||||
case RSA_NO_PADDING:
|
||||
ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_PADDING_MODE);
|
||||
return 0;
|
||||
if (mdname != NULL || mdnid != NID_undef) {
|
||||
ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_PADDING_MODE);
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case RSA_X931_PADDING:
|
||||
if (RSA_X931_hash_id(mdnid) == -1) {
|
||||
ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_X931_DIGEST);
|
||||
|
Loading…
Reference in New Issue
Block a user