From 965fa9c0804dadb6f99dedbff9255a2ce6ddb640 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 28 May 2021 14:46:17 +1000 Subject: prov: add zero strenght arguments to BN and RAND RNG calls Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/15513) --- providers/implementations/ciphers/cipher_tdes_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'providers/implementations/ciphers/cipher_tdes_common.c') diff --git a/providers/implementations/ciphers/cipher_tdes_common.c b/providers/implementations/ciphers/cipher_tdes_common.c index 88acc16049..346aec05a1 100644 --- a/providers/implementations/ciphers/cipher_tdes_common.c +++ b/providers/implementations/ciphers/cipher_tdes_common.c @@ -120,7 +120,7 @@ static int tdes_generatekey(PROV_CIPHER_CTX *ctx, void *ptr) DES_cblock *deskey = ptr; size_t kl = ctx->keylen; - if (kl == 0 || RAND_priv_bytes_ex(ctx->libctx, ptr, kl) <= 0) + if (kl == 0 || RAND_priv_bytes_ex(ctx->libctx, ptr, kl, 0) <= 0) return 0; DES_set_odd_parity(deskey); if (kl >= 16) -- cgit v1.2.1