summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c20
1 files changed, 1 insertions, 19 deletions
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 @@
1/* $OpenBSD: ec_lib.c,v 1.96 2025/01/06 11:59:02 tb Exp $ */ 1/* $OpenBSD: ec_lib.c,v 1.97 2025/01/06 12:35:14 jsing Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -766,24 +766,6 @@ EC_GROUP_cmp(const EC_GROUP *group1, const EC_GROUP *group2, BN_CTX *ctx_in)
766} 766}
767LCRYPTO_ALIAS(EC_GROUP_cmp); 767LCRYPTO_ALIAS(EC_GROUP_cmp);
768 768
769/*
770 * Coordinate blinding for EC_POINT.
771 *
772 * The underlying EC_METHOD can optionally implement this function:
773 * underlying implementations should return 0 on errors, or 1 on success.
774 *
775 * This wrapper returns 1 in case the underlying EC_METHOD does not support
776 * coordinate blinding.
777 */
778int
779ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx)
780{
781 if (group->meth->blind_coordinates == NULL)
782 return 1;
783
784 return group->meth->blind_coordinates(group, p, ctx);
785}
786
787EC_POINT * 769EC_POINT *
788EC_POINT_new(const EC_GROUP *group) 770EC_POINT_new(const EC_GROUP *group)
789{ 771{