aboutsummaryrefslogtreecommitdiff
path: root/crypto/bn/bn_sqrt.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-12-06 21:33:58 +0000
committerBodo Möller <bodo@openssl.org>2000-12-06 21:33:58 +0000
commitaa66eba7c8c7496db92b80da19688d6f96a40b96 (patch)
treed375b6d9e1a2cc26496cd0222b67b01257416c82 /crypto/bn/bn_sqrt.c
parentf27b45d237a28a900e781f718804abe677091b08 (diff)
downloadopenssl-aa66eba7c8c7496db92b80da19688d6f96a40b96.zip
openssl-aa66eba7c8c7496db92b80da19688d6f96a40b96.tar.gz
openssl-aa66eba7c8c7496db92b80da19688d6f96a40b96.tar.bz2
BN_mod_sqrt documentation/comment
Diffstat (limited to 'crypto/bn/bn_sqrt.c')
-rw-r--r--crypto/bn/bn_sqrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_sqrt.c b/crypto/bn/bn_sqrt.c
index a54d9d2..6d50b5d 100644
--- a/crypto/bn/bn_sqrt.c
+++ b/crypto/bn/bn_sqrt.c
@@ -201,7 +201,7 @@ BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
/* t := (2*a)*b^2 - 1*/
if (!BN_mod_mul(t, t, y, p, ctx)) goto end;
- if (!BN_sub_word(t, 1)) goto end; /* cannot become negative */
+ if (!BN_sub_word(t, 1)) goto end;
/* x = a*b*t */
if (!BN_mod_mul(x, a, b, p, ctx)) goto end;