summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_lib.c
diff options
context:
space:
mode:
authortb <>2025-03-09 15:33:35 +0000
committertb <>2025-03-09 15:33:35 +0000
commit53a919ddf8f4c663b3beca57c18dc025e1f71fa0 (patch)
tree5ea07c323509da65b5e08fe62e83b6238f547a51 /src/lib/libcrypto/ec/ec_lib.c
parentb04c2a1d799fe2ea8751349ab1dc4a8b551ce48d (diff)
downloadopenbsd-53a919ddf8f4c663b3beca57c18dc025e1f71fa0.tar.gz
openbsd-53a919ddf8f4c663b3beca57c18dc025e1f71fa0.tar.bz2
openbsd-53a919ddf8f4c663b3beca57c18dc025e1f71fa0.zip
Unexport EC_METHOD and all API using it
This is an implementation detail and there is no reason to leak it from the library. This removes EC_GFp_{mont,simple}_method(), EC_GROUP_{method_of,new}(), EC_METHOD_get_field_type(), EC_POINT_method_of() from the public API. EC_GROUP_copy() is now quite useless, so it will go as well. ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c
index a6259ed581..874c3f1d45 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.116 2025/01/25 13:13:57 tb Exp $ */ 1/* $OpenBSD: ec_lib.c,v 1.117 2025/03/09 15:33:35 tb 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 */
@@ -117,7 +117,6 @@ EC_GROUP_new(const EC_METHOD *meth)
117 117
118 return NULL; 118 return NULL;
119} 119}
120LCRYPTO_ALIAS(EC_GROUP_new);
121 120
122void 121void
123EC_GROUP_free(EC_GROUP *group) 122EC_GROUP_free(EC_GROUP *group)
@@ -1406,30 +1405,6 @@ EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
1406} 1405}
1407LCRYPTO_ALIAS(EC_POINTs_mul); 1406LCRYPTO_ALIAS(EC_POINTs_mul);
1408 1407
1409const EC_METHOD *
1410EC_GROUP_method_of(const EC_GROUP *group)
1411{
1412 ECerror(ERR_R_DISABLED);
1413 return NULL;
1414}
1415LCRYPTO_ALIAS(EC_GROUP_method_of);
1416
1417int
1418EC_METHOD_get_field_type(const EC_METHOD *meth)
1419{
1420 ECerror(ERR_R_DISABLED);
1421 return NID_undef;
1422}
1423LCRYPTO_ALIAS(EC_METHOD_get_field_type);
1424
1425const EC_METHOD *
1426EC_POINT_method_of(const EC_POINT *point)
1427{
1428 ECerror(ERR_R_DISABLED);
1429 return NULL;
1430}
1431LCRYPTO_ALIAS(EC_POINT_method_of);
1432
1433int 1408int
1434EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx_in) 1409EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx_in)
1435{ 1410{