projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
429cf46
)
Comment
author
Bodo Möller
<bodo@openssl.org>
Thu, 8 Mar 2001 16:53:30 +0000
(16:53 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Thu, 8 Mar 2001 16:53:30 +0000
(16:53 +0000)
crypto/bn/bn_sqrt.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_sqrt.c
b/crypto/bn/bn_sqrt.c
index 6e70e5c54140fd3d4060a05c196ebfb39ca5f60f..e2a1105dc838b2f29b3867f06f653d08a90f368f 100644
(file)
--- a/
crypto/bn/bn_sqrt.c
+++ b/
crypto/bn/bn_sqrt.c
@@
-65,6
+65,8
@@
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
* using the Tonelli/Shanks algorithm (cf. Henri Cohen, "A Course
* in Algebraic Computational Number Theory", algorithm 1.5.1).
* 'p' must be prime!
+ * If 'a' is not a square, this is not necessarily detected by
+ * the algorithms; a bogus result must be expected in this case.
*/
{
BIGNUM *ret = in;