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.c10
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}
139LCRYPTO_ALIAS(EC_GROUP_clear_free);
139 140
140int 141int
141EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src) 142EC_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}
546LCRYPTO_ALIAS(EC_GROUP_set_curve_GFp);
545 547
546int 548int
547EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, 549EC_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}
554LCRYPTO_ALIAS(EC_GROUP_get_curve_GFp);
552 555
553int 556int
554EC_GROUP_get_degree(const EC_GROUP *group) 557EC_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}
733LCRYPTO_ALIAS(EC_POINT_clear_free);
730 734
731int 735int
732EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) 736EC_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}
869LCRYPTO_ALIAS(EC_POINT_set_Jprojective_coordinates_GFp);
865 870
866int 871int
867EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, 872EC_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}
877LCRYPTO_ALIAS(EC_POINT_get_Jprojective_coordinates_GFp);
872 878
873int 879int
874EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, 880EC_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}
923LCRYPTO_ALIAS(EC_POINT_set_affine_coordinates_GFp);
917 924
918int 925int
919EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, 926EC_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}
961LCRYPTO_ALIAS(EC_POINT_get_affine_coordinates_GFp);
954 962
955int 963int
956EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, 964EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,