projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add zero strenght arguments to BN and RAND RNG calls
[openssl.git]
/
crypto
/
sm2
/
sm2_crypt.c
diff --git
a/crypto/sm2/sm2_crypt.c
b/crypto/sm2/sm2_crypt.c
index 2b8b10e25dac708a0821bbe02a454a52f2010ea8..f2771dbe732d0d310fe650efb70cc2f5726a822b 100644
(file)
--- a/
crypto/sm2/sm2_crypt.c
+++ b/
crypto/sm2/sm2_crypt.c
@@
-187,7
+187,7
@@
int ossl_sm2_encrypt(const EC_KEY *key,
memset(ciphertext_buf, 0, *ciphertext_len);
- if (!BN_priv_rand_range_ex(k, order, ctx)) {
+ if (!BN_priv_rand_range_ex(k, order,
0,
ctx)) {
ERR_raise(ERR_LIB_SM2, ERR_R_INTERNAL_ERROR);
goto done;
}