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 /crypto/rsa/rsa_local.h | |
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 'crypto/rsa/rsa_local.h')
-rw-r--r-- | crypto/rsa/rsa_local.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/rsa/rsa_local.h b/crypto/rsa/rsa_local.h index 06a7daddbd..423492b909 100644 --- a/crypto/rsa/rsa_local.h +++ b/crypto/rsa/rsa_local.h @@ -169,4 +169,19 @@ int rsa_fips186_4_gen_prob_primes(RSA *rsa, BIGNUM *p1, BIGNUM *p2, const BIGNUM *Xq2, int nbits, const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb); +int rsa_padding_add_SSLv23_with_libctx(OPENSSL_CTX *libctx, unsigned char *to, + int tlen, const unsigned char *from, + int flen); +int rsa_padding_add_PKCS1_type_2_with_libctx(OPENSSL_CTX *libctx, + unsigned char *to, int tlen, + const unsigned char *from, + int flen); +int rsa_padding_add_PKCS1_OAEP_mgf1_with_libctx(OPENSSL_CTX *libctx, + unsigned char *to, int tlen, + const unsigned char *from, + int flen, + const unsigned char *param, + int plen, const EVP_MD *md, + const EVP_MD *mgf1md); + #endif /* OSSL_CRYPTO_RSA_LOCAL_H */ |