projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prov: add zero strenght arguments to BN and RAND RNG calls
[openssl.git]
/
providers
/
implementations
/
ciphers
/
cipher_des.c
diff --git
a/providers/implementations/ciphers/cipher_des.c
b/providers/implementations/ciphers/cipher_des.c
index 4563ea2edb0418a72efe86cbe8a048eb9be3546f..d03d65b668d3800726d9ace13443d31eaa124d64 100644
(file)
--- a/
providers/implementations/ciphers/cipher_des.c
+++ b/
providers/implementations/ciphers/cipher_des.c
@@
-122,7
+122,7
@@
static int des_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);
return 1;