diff options
author | Matt Caswell <matt@openssl.org> | 2020-03-12 14:41:45 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-03-19 18:49:12 +0000 |
commit | 0f2deef59d13e852a4bde0e853e9b49bab51a108 (patch) | |
tree | a5c9ddb9320ccbe0c2d950f1732722d4f9261fd6 /providers/implementations/asymciphers | |
parent | cb57f42528ea93c908aeff2d2f2a90c478528add (diff) |
Use RAND_bytes_ex in crypto/rsa
At various points in crypto/rsa we need to get random numbers. We should
ensure that we use the correct libctx when doing so.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11355)
Diffstat (limited to 'providers/implementations/asymciphers')
-rw-r--r-- | providers/implementations/asymciphers/rsa_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/providers/implementations/asymciphers/rsa_enc.c b/providers/implementations/asymciphers/rsa_enc.c index 5f071a56ca..5f05d1810b 100644 --- a/providers/implementations/asymciphers/rsa_enc.c +++ b/providers/implementations/asymciphers/rsa_enc.c @@ -225,7 +225,8 @@ static int rsa_decrypt(void *vprsactx, unsigned char *out, size_t *outlen, ERR_raise(ERR_LIB_PROV, PROV_R_BAD_TLS_CLIENT_VERSION); return 0; } - ret = rsa_padding_check_PKCS1_type_2_TLS(out, outsize, + ret = rsa_padding_check_PKCS1_type_2_TLS(prsactx->libctx, out, + outsize, tbuf, len, prsactx->client_version, prsactx->alt_version); |