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