summaryrefslogtreecommitdiff
path: root/providers/implementations/kem
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-05-28 14:46:17 +1000
committerPauli <pauli@openssl.org>2021-05-29 17:17:12 +1000
commit965fa9c0804dadb6f99dedbff9255a2ce6ddb640 (patch)
tree794905b3e098208e30870722a231fcc63e0c5676 /providers/implementations/kem
parent0f8815aace625f869a42cfc5c254c08d5a668077 (diff)
downloadopenssl-new-965fa9c0804dadb6f99dedbff9255a2ce6ddb640.tar.gz
prov: add zero strenght arguments to BN and RAND RNG calls
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15513)
Diffstat (limited to 'providers/implementations/kem')
-rw-r--r--providers/implementations/kem/rsa_kem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/kem/rsa_kem.c b/providers/implementations/kem/rsa_kem.c
index 1ccc57a8da..313ab133b3 100644
--- a/providers/implementations/kem/rsa_kem.c
+++ b/providers/implementations/kem/rsa_kem.c
@@ -229,7 +229,7 @@ static int rsasve_gen_rand_bytes(RSA *rsa_pub,
ret = (z != NULL
&& (BN_copy(nminus3, RSA_get0_n(rsa_pub)) != NULL)
&& BN_sub_word(nminus3, 3)
- && BN_priv_rand_range_ex(z, nminus3, bnctx)
+ && BN_priv_rand_range_ex(z, nminus3, 0, bnctx)
&& BN_add_word(z, 2)
&& (BN_bn2binpad(z, out, outlen) == outlen));
BN_CTX_end(bnctx);