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.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c
index cb9c19a777..6b18b82a72 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.114 2025/01/25 10:36:50 tb Exp $ */ 1/* $OpenBSD: ec_lib.c,v 1.115 2025/01/25 10:37:50 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 */
@@ -236,15 +236,6 @@ EC_METHOD_get_field_type(const EC_METHOD *meth)
236} 236}
237LCRYPTO_ALIAS(EC_METHOD_get_field_type); 237LCRYPTO_ALIAS(EC_METHOD_get_field_type);
238 238
239int
240ec_group_get_field_type(const EC_GROUP *group)
241{
242 if (group == NULL || group->meth == NULL)
243 return NID_undef;
244
245 return group->meth->field_type;
246}
247
248/* 239/*
249 * If there is a user-provided cofactor, sanity check and use it. Otherwise 240 * If there is a user-provided cofactor, sanity check and use it. Otherwise
250 * try computing the cofactor from generator order n and field cardinality p. 241 * try computing the cofactor from generator order n and field cardinality p.