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_sign.c
diff --git
a/crypto/sm2/sm2_sign.c
b/crypto/sm2/sm2_sign.c
index d9e16e1f9853429da0b90e4d807fef66e1b6c06e..907d6585ead1d0cddb67f80bef60bec1df398bd2 100644
(file)
--- a/
crypto/sm2/sm2_sign.c
+++ b/
crypto/sm2/sm2_sign.c
@@
-240,7
+240,7
@@
static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e)
}
for (;;) {
- 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;
}