summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
410877b)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2177)
if (rctx == NULL)
return 0;
rctx->nbits = 1024;
if (rctx == NULL)
return 0;
rctx->nbits = 1024;
- rctx->pad_mode = RSA_PKCS1_PADDING;
+ if (ctx->pmeth->pkey_id == EVP_PKEY_RSA_PSS)
+ rctx->pad_mode = RSA_PKCS1_PSS_PADDING;
+ else
+ rctx->pad_mode = RSA_PKCS1_PADDING;
rctx->saltlen = -2;
ctx->data = rctx;
ctx->keygen_info = rctx->gentmp;
rctx->saltlen = -2;
ctx->data = rctx;
ctx->keygen_info = rctx->gentmp;