Use RAND_bytes_ex in crypto/rsa
authorMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2020 14:41:45 +0000 (14:41 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 19 Mar 2020 18:49:12 +0000 (18:49 +0000)
commit0f2deef59d13e852a4bde0e853e9b49bab51a108
treea5c9ddb9320ccbe0c2d950f1732722d4f9261fd6
parentcb57f42528ea93c908aeff2d2f2a90c478528add
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)
crypto/rsa/rsa_local.h
crypto/rsa/rsa_oaep.c
crypto/rsa/rsa_ossl.c
crypto/rsa/rsa_pk1.c
crypto/rsa/rsa_pss.c
crypto/rsa/rsa_ssl.c
include/crypto/rsa.h
providers/implementations/asymciphers/rsa_enc.c