summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ecp_methods.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_methods.c')
-rw-r--r--src/lib/libcrypto/ec/ecp_methods.c12
1 files changed, 1 insertions, 11 deletions
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 @@
1/* $OpenBSD: ecp_methods.c,v 1.23 2025/01/06 14:22:55 tb Exp $ */ 1/* $OpenBSD: ecp_methods.c,v 1.24 2025/01/06 14:29:33 tb 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.
@@ -167,12 +167,6 @@ ec_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
167} 167}
168 168
169static int 169static int
170ec_group_get_degree(const EC_GROUP *group)
171{
172 return BN_num_bits(group->p);
173}
174
175static int
176ec_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx) 170ec_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx)
177{ 171{
178 BIGNUM *p, *a, *b, *discriminant; 172 BIGNUM *p, *a, *b, *discriminant;
@@ -1520,8 +1514,6 @@ static const EC_METHOD ec_GFp_simple_method = {
1520 .field_type = NID_X9_62_prime_field, 1514 .field_type = NID_X9_62_prime_field,
1521 .group_set_curve = ec_group_set_curve, 1515 .group_set_curve = ec_group_set_curve,
1522 .group_get_curve = ec_group_get_curve, 1516 .group_get_curve = ec_group_get_curve,
1523 .group_get_degree = ec_group_get_degree,
1524 .group_order_bits = ec_group_simple_order_bits,
1525 .group_check_discriminant = ec_group_check_discriminant, 1517 .group_check_discriminant = ec_group_check_discriminant,
1526 .point_set_affine_coordinates = ec_point_set_affine_coordinates, 1518 .point_set_affine_coordinates = ec_point_set_affine_coordinates,
1527 .point_get_affine_coordinates = ec_point_get_affine_coordinates, 1519 .point_get_affine_coordinates = ec_point_get_affine_coordinates,
@@ -1551,8 +1543,6 @@ static const EC_METHOD ec_GFp_mont_method = {
1551 .field_type = NID_X9_62_prime_field, 1543 .field_type = NID_X9_62_prime_field,
1552 .group_set_curve = ec_mont_group_set_curve, 1544 .group_set_curve = ec_mont_group_set_curve,
1553 .group_get_curve = ec_group_get_curve, 1545 .group_get_curve = ec_group_get_curve,
1554 .group_get_degree = ec_group_get_degree,
1555 .group_order_bits = ec_group_simple_order_bits,
1556 .group_check_discriminant = ec_group_check_discriminant, 1546 .group_check_discriminant = ec_group_check_discriminant,
1557 .point_set_affine_coordinates = ec_point_set_affine_coordinates, 1547 .point_set_affine_coordinates = ec_point_set_affine_coordinates,
1558 .point_get_affine_coordinates = ec_point_get_affine_coordinates, 1548 .point_get_affine_coordinates = ec_point_get_affine_coordinates,