From 90c4ea11168e40751810b5d56e83de147872a6ed Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 6 Jan 2025 14:29:33 +0000 Subject: Remove get_order_bits() and get_degree() methods The degree made some sense when EC2M was a thing in libcrypto. Fortunately that's not the case anymore. The order handler never made sense. ok jsing --- src/lib/libcrypto/ec/ecp_methods.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/lib/libcrypto/ec/ecp_methods.c') diff --git a/src/lib/libcrypto/ec/ecp_methods.c b/src/lib/libcrypto/ec/ecp_methods.c index 042db054a8..d68022f5e6 100644 --- a/src/lib/libcrypto/ec/ecp_methods.c +++ b/src/lib/libcrypto/ec/ecp_methods.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecp_methods.c,v 1.23 2025/01/06 14:22:55 tb Exp $ */ +/* $OpenBSD: ecp_methods.c,v 1.24 2025/01/06 14:29:33 tb Exp $ */ /* Includes code written by Lenka Fibikova * for the OpenSSL project. * Includes code written by Bodo Moeller for the OpenSSL project. @@ -166,12 +166,6 @@ ec_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, return 1; } -static int -ec_group_get_degree(const EC_GROUP *group) -{ - return BN_num_bits(group->p); -} - static int ec_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx) { @@ -1520,8 +1514,6 @@ static const EC_METHOD ec_GFp_simple_method = { .field_type = NID_X9_62_prime_field, .group_set_curve = ec_group_set_curve, .group_get_curve = ec_group_get_curve, - .group_get_degree = ec_group_get_degree, - .group_order_bits = ec_group_simple_order_bits, .group_check_discriminant = ec_group_check_discriminant, .point_set_affine_coordinates = ec_point_set_affine_coordinates, .point_get_affine_coordinates = ec_point_get_affine_coordinates, @@ -1551,8 +1543,6 @@ static const EC_METHOD ec_GFp_mont_method = { .field_type = NID_X9_62_prime_field, .group_set_curve = ec_mont_group_set_curve, .group_get_curve = ec_group_get_curve, - .group_get_degree = ec_group_get_degree, - .group_order_bits = ec_group_simple_order_bits, .group_check_discriminant = ec_group_check_discriminant, .point_set_affine_coordinates = ec_point_set_affine_coordinates, .point_get_affine_coordinates = ec_point_get_affine_coordinates, -- cgit v1.2.3-55-g6feb