diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 00a4a703f8..dff4124580 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.65 2023/07/25 06:57:26 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.66 2024/04/10 15:01:31 beck 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 | */ |
| @@ -136,6 +136,7 @@ EC_GROUP_clear_free(EC_GROUP *group) | |||
| 136 | { | 136 | { |
| 137 | EC_GROUP_free(group); | 137 | EC_GROUP_free(group); |
| 138 | } | 138 | } |
| 139 | LCRYPTO_ALIAS(EC_GROUP_clear_free); | ||
| 139 | 140 | ||
| 140 | int | 141 | int |
| 141 | EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src) | 142 | EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src) |
| @@ -542,6 +543,7 @@ EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, | |||
| 542 | { | 543 | { |
| 543 | return EC_GROUP_set_curve(group, p, a, b, ctx); | 544 | return EC_GROUP_set_curve(group, p, a, b, ctx); |
| 544 | } | 545 | } |
| 546 | LCRYPTO_ALIAS(EC_GROUP_set_curve_GFp); | ||
| 545 | 547 | ||
| 546 | int | 548 | int |
| 547 | EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, | 549 | EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, |
| @@ -549,6 +551,7 @@ EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, | |||
| 549 | { | 551 | { |
| 550 | return EC_GROUP_get_curve(group, p, a, b, ctx); | 552 | return EC_GROUP_get_curve(group, p, a, b, ctx); |
| 551 | } | 553 | } |
| 554 | LCRYPTO_ALIAS(EC_GROUP_get_curve_GFp); | ||
| 552 | 555 | ||
| 553 | int | 556 | int |
| 554 | EC_GROUP_get_degree(const EC_GROUP *group) | 557 | EC_GROUP_get_degree(const EC_GROUP *group) |
| @@ -727,6 +730,7 @@ EC_POINT_clear_free(EC_POINT *point) | |||
| 727 | { | 730 | { |
| 728 | EC_POINT_free(point); | 731 | EC_POINT_free(point); |
| 729 | } | 732 | } |
| 733 | LCRYPTO_ALIAS(EC_POINT_clear_free); | ||
| 730 | 734 | ||
| 731 | int | 735 | int |
| 732 | EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) | 736 | EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) |
| @@ -862,6 +866,7 @@ EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *point, | |||
| 862 | { | 866 | { |
| 863 | return EC_POINT_set_Jprojective_coordinates(group, point, x, y, z, ctx); | 867 | return EC_POINT_set_Jprojective_coordinates(group, point, x, y, z, ctx); |
| 864 | } | 868 | } |
| 869 | LCRYPTO_ALIAS(EC_POINT_set_Jprojective_coordinates_GFp); | ||
| 865 | 870 | ||
| 866 | int | 871 | int |
| 867 | EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, | 872 | EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, |
| @@ -869,6 +874,7 @@ EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, | |||
| 869 | { | 874 | { |
| 870 | return EC_POINT_get_Jprojective_coordinates(group, point, x, y, z, ctx); | 875 | return EC_POINT_get_Jprojective_coordinates(group, point, x, y, z, ctx); |
| 871 | } | 876 | } |
| 877 | LCRYPTO_ALIAS(EC_POINT_get_Jprojective_coordinates_GFp); | ||
| 872 | 878 | ||
| 873 | int | 879 | int |
| 874 | EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, | 880 | EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, |
| @@ -914,6 +920,7 @@ EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *point, | |||
| 914 | { | 920 | { |
| 915 | return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); | 921 | return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); |
| 916 | } | 922 | } |
| 923 | LCRYPTO_ALIAS(EC_POINT_set_affine_coordinates_GFp); | ||
| 917 | 924 | ||
| 918 | int | 925 | int |
| 919 | EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, | 926 | EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, |
| @@ -951,6 +958,7 @@ EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *point | |||
| 951 | { | 958 | { |
| 952 | return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); | 959 | return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); |
| 953 | } | 960 | } |
| 961 | LCRYPTO_ALIAS(EC_POINT_get_affine_coordinates_GFp); | ||
| 954 | 962 | ||
| 955 | int | 963 | int |
| 956 | EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, | 964 | EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, |
