Commit ad4b3d0a authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Set PSS padding mode for PSS keys.

parent 410877ba
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -49,6 +49,9 @@ static int pkey_rsa_init(EVP_PKEY_CTX *ctx)
    if (rctx == NULL)
        return 0;
    rctx->nbits = 1024;
    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;