diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 77 |
1 files changed, 41 insertions, 36 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 6b18b82a72..a6259ed581 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.115 2025/01/25 10:37:50 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.116 2025/01/25 13:13:57 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 | */ |
| @@ -222,20 +222,6 @@ EC_GROUP_dup(const EC_GROUP *in_group) | |||
| 222 | } | 222 | } |
| 223 | LCRYPTO_ALIAS(EC_GROUP_dup); | 223 | LCRYPTO_ALIAS(EC_GROUP_dup); |
| 224 | 224 | ||
| 225 | const EC_METHOD * | ||
| 226 | EC_GROUP_method_of(const EC_GROUP *group) | ||
| 227 | { | ||
| 228 | return group->meth; | ||
| 229 | } | ||
| 230 | LCRYPTO_ALIAS(EC_GROUP_method_of); | ||
| 231 | |||
| 232 | int | ||
| 233 | EC_METHOD_get_field_type(const EC_METHOD *meth) | ||
| 234 | { | ||
| 235 | return meth->field_type; | ||
| 236 | } | ||
| 237 | LCRYPTO_ALIAS(EC_METHOD_get_field_type); | ||
| 238 | |||
| 239 | /* | 225 | /* |
| 240 | * If there is a user-provided cofactor, sanity check and use it. Otherwise | 226 | * If there is a user-provided cofactor, sanity check and use it. Otherwise |
| 241 | * try computing the cofactor from generator order n and field cardinality p. | 227 | * try computing the cofactor from generator order n and field cardinality p. |
| @@ -903,13 +889,6 @@ EC_POINT_dup(const EC_POINT *in_point, const EC_GROUP *group) | |||
| 903 | } | 889 | } |
| 904 | LCRYPTO_ALIAS(EC_POINT_dup); | 890 | LCRYPTO_ALIAS(EC_POINT_dup); |
| 905 | 891 | ||
| 906 | const EC_METHOD * | ||
| 907 | EC_POINT_method_of(const EC_POINT *point) | ||
| 908 | { | ||
| 909 | return point->meth; | ||
| 910 | } | ||
| 911 | LCRYPTO_ALIAS(EC_POINT_method_of); | ||
| 912 | |||
| 913 | int | 892 | int |
| 914 | EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point) | 893 | EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point) |
| 915 | { | 894 | { |
| @@ -1386,20 +1365,6 @@ EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, | |||
| 1386 | } | 1365 | } |
| 1387 | LCRYPTO_ALIAS(EC_POINT_mul); | 1366 | LCRYPTO_ALIAS(EC_POINT_mul); |
| 1388 | 1367 | ||
| 1389 | int | ||
| 1390 | EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx_in) | ||
| 1391 | { | ||
| 1392 | return 1; | ||
| 1393 | } | ||
| 1394 | LCRYPTO_ALIAS(EC_GROUP_precompute_mult); | ||
| 1395 | |||
| 1396 | int | ||
| 1397 | EC_GROUP_have_precompute_mult(const EC_GROUP *group) | ||
| 1398 | { | ||
| 1399 | return 0; | ||
| 1400 | } | ||
| 1401 | LCRYPTO_ALIAS(EC_GROUP_have_precompute_mult); | ||
| 1402 | |||
| 1403 | /* | 1368 | /* |
| 1404 | * XXX - remove everything below in the next bump | 1369 | * XXX - remove everything below in the next bump |
| 1405 | */ | 1370 | */ |
| @@ -1440,3 +1405,43 @@ EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, | |||
| 1440 | return 0; | 1405 | return 0; |
| 1441 | } | 1406 | } |
| 1442 | LCRYPTO_ALIAS(EC_POINTs_mul); | 1407 | LCRYPTO_ALIAS(EC_POINTs_mul); |
| 1408 | |||
| 1409 | const EC_METHOD * | ||
| 1410 | EC_GROUP_method_of(const EC_GROUP *group) | ||
| 1411 | { | ||
| 1412 | ECerror(ERR_R_DISABLED); | ||
| 1413 | return NULL; | ||
| 1414 | } | ||
| 1415 | LCRYPTO_ALIAS(EC_GROUP_method_of); | ||
| 1416 | |||
| 1417 | int | ||
| 1418 | EC_METHOD_get_field_type(const EC_METHOD *meth) | ||
| 1419 | { | ||
| 1420 | ECerror(ERR_R_DISABLED); | ||
| 1421 | return NID_undef; | ||
| 1422 | } | ||
| 1423 | LCRYPTO_ALIAS(EC_METHOD_get_field_type); | ||
| 1424 | |||
| 1425 | const EC_METHOD * | ||
| 1426 | EC_POINT_method_of(const EC_POINT *point) | ||
| 1427 | { | ||
| 1428 | ECerror(ERR_R_DISABLED); | ||
| 1429 | return NULL; | ||
| 1430 | } | ||
| 1431 | LCRYPTO_ALIAS(EC_POINT_method_of); | ||
| 1432 | |||
| 1433 | int | ||
| 1434 | EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx_in) | ||
| 1435 | { | ||
| 1436 | ECerror(ERR_R_DISABLED); | ||
| 1437 | return 0; | ||
| 1438 | } | ||
| 1439 | LCRYPTO_ALIAS(EC_GROUP_precompute_mult); | ||
| 1440 | |||
| 1441 | int | ||
| 1442 | EC_GROUP_have_precompute_mult(const EC_GROUP *group) | ||
| 1443 | { | ||
| 1444 | ECerror(ERR_R_DISABLED); | ||
| 1445 | return 0; | ||
| 1446 | } | ||
| 1447 | LCRYPTO_ALIAS(EC_GROUP_have_precompute_mult); | ||
