projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BN_pseudo_rand is really BN_rand
[openssl.git]
/
crypto
/
bn
/
bn_sqrt.c
diff --git
a/crypto/bn/bn_sqrt.c
b/crypto/bn/bn_sqrt.c
index 84376c78e5ba80f77f2ae3fccd71efe2916630ff..86fc3a04807f2c33a5d5ecdada809f4275487918 100644
(file)
--- a/
crypto/bn/bn_sqrt.c
+++ b/
crypto/bn/bn_sqrt.c
@@
-179,7
+179,7
@@
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
if (!BN_set_word(y, i))
goto end;
} else {
- if (!BN_
pseudo_
rand(y, BN_num_bits(p), 0, 0))
+ if (!BN_rand(y, BN_num_bits(p), 0, 0))
goto end;
if (BN_ucmp(y, p) >= 0) {
if (!(p->neg ? BN_add : BN_sub) (y, y, p))