NISTZ256: set Z_is_one to boolean 0/1 as is customary.
authorEmilia Kasper <emilia@openssl.org>
Mon, 27 Apr 2015 13:41:52 +0000 (15:41 +0200)
committerEmilia Kasper <emilia@openssl.org>
Mon, 27 Apr 2015 14:50:05 +0000 (16:50 +0200)
Cosmetic, no real effect.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 4446044a793a9103a4bc70c0214005e6a4463767)

crypto/ec/ecp_nistz256.c

index 35c56c7777d157d9ca014f2c6b64555e132c548d..a9516577ed8b94494e5bd730f0ae06f06c451b20 100644 (file)
@@ -1327,7 +1327,7 @@ static int ecp_nistz256_points_mul(const EC_GROUP *group,
         !ecp_nistz256_set_words(&r->Z, p.p.Z)) {
         goto err;
     }
-    r->Z_is_one = is_one(p.p.Z);
+    r->Z_is_one = is_one(p.p.Z) & 1;
 
     ret = 1;