[openssl-commits] [openssl] master update

Emilia Kasper emilia at openssl.org
Mon Apr 27 14:50:49 UTC 2015


The branch master has been updated
       via  4446044a793a9103a4bc70c0214005e6a4463767 (commit)
      from  e22d2199e2a5cc9b243f45c2b633d1e31fadecd7 (commit)


- Log -----------------------------------------------------------------
commit 4446044a793a9103a4bc70c0214005e6a4463767
Author: Emilia Kasper <emilia at openssl.org>
Date:   Mon Apr 27 15:41:52 2015 +0200

    NISTZ256: set Z_is_one to boolean 0/1 as is customary.
    
    Cosmetic, no real effect.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/ec/ecp_nistz256.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/ec/ecp_nistz256.c b/crypto/ec/ecp_nistz256.c
index fd4898d..7574f26 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;
 


More information about the openssl-commits mailing list