diff options
author | Emilia Kasper <emilia@openssl.org> | 2015-04-27 15:41:52 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2015-04-27 16:50:05 +0200 |
commit | df6c736fbd0c1779df3464c8dfdaae723d65e8e5 (patch) | |
tree | 692a582d664dcd3f861838942ff872e03445bff5 /crypto/ec | |
parent | c30a1b3b33dad17db8a221bc1a2bc80b4f5f56a2 (diff) |
NISTZ256: set Z_is_one to boolean 0/1 as is customary.
Cosmetic, no real effect.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 4446044a793a9103a4bc70c0214005e6a4463767)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ecp_nistz256.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ecp_nistz256.c b/crypto/ec/ecp_nistz256.c index 35c56c7777..a9516577ed 100644 --- a/crypto/ec/ecp_nistz256.c +++ b/crypto/ec/ecp_nistz256.c @@ -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; |