summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2015-04-27 15:41:52 +0200
committerEmilia Kasper <emilia@openssl.org>2015-04-27 16:49:25 +0200
commit4446044a793a9103a4bc70c0214005e6a4463767 (patch)
tree03d6fe321a190360de0ce72921d0aa641c51f234 /crypto
parente22d2199e2a5cc9b243f45c2b633d1e31fadecd7 (diff)
NISTZ256: set Z_is_one to boolean 0/1 as is customary.
Cosmetic, no real effect. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ec/ecp_nistz256.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ecp_nistz256.c b/crypto/ec/ecp_nistz256.c
index fd4898d227..7574f26658 100644
--- a/crypto/ec/ecp_nistz256.c
+++ b/crypto/ec/ecp_nistz256.c
@@ -1346,7 +1346,7 @@ static int ecp_nistz256_points_mul(const EC_GROUP *group,
!bn_set_words(r->Z, p.p.Z, P256_LIMBS)) {
goto err;
}
- r->Z_is_one = is_one(p.p.Z);
+ r->Z_is_one = is_one(p.p.Z) & 1;
ret = 1;