summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_sqrt.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-03-08 16:53:30 +0000
committerBodo Möller <bodo@openssl.org>2001-03-08 16:53:30 +0000
commitff612904d277b6e4f8118913e1278a1afc75e073 (patch)
tree9d7b21f27c0150bb4962dacccf5ec81c1bcec007 /crypto/bn/bn_sqrt.c
parent429cf462d06a164e803f46f1840d060a26812ba2 (diff)
Comment
Diffstat (limited to 'crypto/bn/bn_sqrt.c')
-rw-r--r--crypto/bn/bn_sqrt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn_sqrt.c b/crypto/bn/bn_sqrt.c
index 6e70e5c541..e2a1105dc8 100644
--- 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;