diff options
author | jsing <> | 2025-01-06 12:35:14 +0000 |
---|---|---|
committer | jsing <> | 2025-01-06 12:35:14 +0000 |
commit | 040f047180525bbee39de311cf3ae17a898c86dc (patch) | |
tree | 56bceda3598e917f19ee015bb6e277b5c45d2f85 /src/lib/libcrypto/ec/ecp_methods.c | |
parent | 52f13317baa428db8efa6305c98bcca1c8d6b93e (diff) | |
download | openbsd-040f047180525bbee39de311cf3ae17a898c86dc.tar.gz openbsd-040f047180525bbee39de311cf3ae17a898c86dc.tar.bz2 openbsd-040f047180525bbee39de311cf3ae17a898c86dc.zip |
Remove indirection for coordinate blinding.
This is usually method specific, so remove the indirection and call the
appropriate blinding function directly.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_methods.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_methods.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ecp_methods.c b/src/lib/libcrypto/ec/ecp_methods.c index 2297b07175..9ff27cf104 100644 --- a/src/lib/libcrypto/ec/ecp_methods.c +++ b/src/lib/libcrypto/ec/ecp_methods.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_methods.c,v 1.20 2025/01/06 11:59:02 tb Exp $ */ | 1 | /* $OpenBSD: ecp_methods.c,v 1.21 2025/01/06 12:35:14 jsing Exp $ */ |
2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> | 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> |
3 | * for the OpenSSL project. | 3 | * for the OpenSSL project. |
4 | * Includes code written by Bodo Moeller for the OpenSSL project. | 4 | * Includes code written by Bodo Moeller for the OpenSSL project. |
@@ -1327,7 +1327,7 @@ ec_mul_ct(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, | |||
1327 | * Apply coordinate blinding for EC_POINT if the underlying EC_METHOD | 1327 | * Apply coordinate blinding for EC_POINT if the underlying EC_METHOD |
1328 | * implements it. | 1328 | * implements it. |
1329 | */ | 1329 | */ |
1330 | if (!ec_point_blind_coordinates(group, s, ctx)) | 1330 | if (!ec_blind_coordinates(group, s, ctx)) |
1331 | goto err; | 1331 | goto err; |
1332 | 1332 | ||
1333 | /* top bit is a 1, in a fixed pos */ | 1333 | /* top bit is a 1, in a fixed pos */ |
@@ -1577,7 +1577,6 @@ static const EC_METHOD ec_GFp_simple_method = { | |||
1577 | .mul_double_nonct = ec_mul_double_nonct, | 1577 | .mul_double_nonct = ec_mul_double_nonct, |
1578 | .field_mul = ec_field_mul, | 1578 | .field_mul = ec_field_mul, |
1579 | .field_sqr = ec_field_sqr, | 1579 | .field_sqr = ec_field_sqr, |
1580 | .blind_coordinates = ec_blind_coordinates, | ||
1581 | }; | 1580 | }; |
1582 | 1581 | ||
1583 | const EC_METHOD * | 1582 | const EC_METHOD * |
@@ -1612,7 +1611,6 @@ static const EC_METHOD ec_GFp_mont_method = { | |||
1612 | .field_sqr = ec_mont_field_sqr, | 1611 | .field_sqr = ec_mont_field_sqr, |
1613 | .field_encode = ec_mont_field_encode, | 1612 | .field_encode = ec_mont_field_encode, |
1614 | .field_decode = ec_mont_field_decode, | 1613 | .field_decode = ec_mont_field_decode, |
1615 | .blind_coordinates = ec_blind_coordinates, | ||
1616 | }; | 1614 | }; |
1617 | 1615 | ||
1618 | const EC_METHOD * | 1616 | const EC_METHOD * |