From 040f047180525bbee39de311cf3ae17a898c86dc Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 6 Jan 2025 12:35:14 +0000 Subject: Remove indirection for coordinate blinding. This is usually method specific, so remove the indirection and call the appropriate blinding function directly. ok tb@ --- src/lib/libcrypto/ec/ec_lib.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'src/lib/libcrypto/ec/ec_lib.c') diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 170bdedc57..b1aad34017 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_lib.c,v 1.96 2025/01/06 11:59:02 tb Exp $ */ +/* $OpenBSD: ec_lib.c,v 1.97 2025/01/06 12:35:14 jsing Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -766,24 +766,6 @@ EC_GROUP_cmp(const EC_GROUP *group1, const EC_GROUP *group2, BN_CTX *ctx_in) } LCRYPTO_ALIAS(EC_GROUP_cmp); -/* - * Coordinate blinding for EC_POINT. - * - * The underlying EC_METHOD can optionally implement this function: - * underlying implementations should return 0 on errors, or 1 on success. - * - * This wrapper returns 1 in case the underlying EC_METHOD does not support - * coordinate blinding. - */ -int -ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx) -{ - if (group->meth->blind_coordinates == NULL) - return 1; - - return group->meth->blind_coordinates(group, p, ctx); -} - EC_POINT * EC_POINT_new(const EC_GROUP *group) { -- cgit v1.2.3-55-g6feb