summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r--src/lib/libcrypto/ec/ec_asn1.c25
-rw-r--r--src/lib/libcrypto/ec/ec_check.c3
-rw-r--r--src/lib/libcrypto/ec/ec_curve.c6
-rw-r--r--src/lib/libcrypto/ec/ec_cvt.c3
-rw-r--r--src/lib/libcrypto/ec/ec_err.c3
-rw-r--r--src/lib/libcrypto/ec/ec_key.c28
-rw-r--r--src/lib/libcrypto/ec/ec_kmeth.c20
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c56
-rw-r--r--src/lib/libcrypto/ec/ec_oct.c6
-rw-r--r--src/lib/libcrypto/ec/ec_print.c6
-rw-r--r--src/lib/libcrypto/ec/eck_prn.c8
-rw-r--r--src/lib/libcrypto/ec/ecp_mont.c3
-rw-r--r--src/lib/libcrypto/ec/ecp_smpl.c3
13 files changed, 157 insertions, 13 deletions
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c
index 6aedab9774..0435f0a75f 100644
--- a/src/lib/libcrypto/ec/ec_asn1.c
+++ b/src/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_asn1.c,v 1.46 2023/06/27 07:28:57 tb Exp $ */ 1/* $OpenBSD: ec_asn1.c,v 1.47 2023/07/07 13:54:45 beck Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -72,6 +72,7 @@ EC_GROUP_get_basis_type(const EC_GROUP *group)
72{ 72{
73 return 0; 73 return 0;
74} 74}
75LCRYPTO_ALIAS(EC_GROUP_get_basis_type);
75 76
76/* some structures needed for the asn1 encoding */ 77/* some structures needed for the asn1 encoding */
77typedef struct x9_62_pentanomial_st { 78typedef struct x9_62_pentanomial_st {
@@ -184,12 +185,14 @@ X9_62_PENTANOMIAL_new(void)
184{ 185{
185 return (X9_62_PENTANOMIAL*)ASN1_item_new(&X9_62_PENTANOMIAL_it); 186 return (X9_62_PENTANOMIAL*)ASN1_item_new(&X9_62_PENTANOMIAL_it);
186} 187}
188LCRYPTO_ALIAS(X9_62_PENTANOMIAL_new);
187 189
188void 190void
189X9_62_PENTANOMIAL_free(X9_62_PENTANOMIAL *a) 191X9_62_PENTANOMIAL_free(X9_62_PENTANOMIAL *a)
190{ 192{
191 ASN1_item_free((ASN1_VALUE *)a, &X9_62_PENTANOMIAL_it); 193 ASN1_item_free((ASN1_VALUE *)a, &X9_62_PENTANOMIAL_it);
192} 194}
195LCRYPTO_ALIAS(X9_62_PENTANOMIAL_free);
193 196
194static const ASN1_TEMPLATE char_two_def_tt = { 197static const ASN1_TEMPLATE char_two_def_tt = {
195 .flags = 0, 198 .flags = 0,
@@ -284,12 +287,14 @@ X9_62_CHARACTERISTIC_TWO_new(void)
284{ 287{
285 return (X9_62_CHARACTERISTIC_TWO*)ASN1_item_new(&X9_62_CHARACTERISTIC_TWO_it); 288 return (X9_62_CHARACTERISTIC_TWO*)ASN1_item_new(&X9_62_CHARACTERISTIC_TWO_it);
286} 289}
290LCRYPTO_ALIAS(X9_62_CHARACTERISTIC_TWO_new);
287 291
288void 292void
289X9_62_CHARACTERISTIC_TWO_free(X9_62_CHARACTERISTIC_TWO *a) 293X9_62_CHARACTERISTIC_TWO_free(X9_62_CHARACTERISTIC_TWO *a)
290{ 294{
291 ASN1_item_free((ASN1_VALUE *)a, &X9_62_CHARACTERISTIC_TWO_it); 295 ASN1_item_free((ASN1_VALUE *)a, &X9_62_CHARACTERISTIC_TWO_it);
292} 296}
297LCRYPTO_ALIAS(X9_62_CHARACTERISTIC_TWO_free);
293 298
294static const ASN1_TEMPLATE fieldID_def_tt = { 299static const ASN1_TEMPLATE fieldID_def_tt = {
295 .flags = 0, 300 .flags = 0,
@@ -455,12 +460,14 @@ ECPARAMETERS_new(void)
455{ 460{
456 return (ECPARAMETERS*)ASN1_item_new(&ECPARAMETERS_it); 461 return (ECPARAMETERS*)ASN1_item_new(&ECPARAMETERS_it);
457} 462}
463LCRYPTO_ALIAS(ECPARAMETERS_new);
458 464
459void 465void
460ECPARAMETERS_free(ECPARAMETERS *a) 466ECPARAMETERS_free(ECPARAMETERS *a)
461{ 467{
462 ASN1_item_free((ASN1_VALUE *)a, &ECPARAMETERS_it); 468 ASN1_item_free((ASN1_VALUE *)a, &ECPARAMETERS_it);
463} 469}
470LCRYPTO_ALIAS(ECPARAMETERS_free);
464 471
465static const ASN1_TEMPLATE ECPKPARAMETERS_ch_tt[] = { 472static const ASN1_TEMPLATE ECPKPARAMETERS_ch_tt[] = {
466 { 473 {
@@ -507,24 +514,28 @@ d2i_ECPKPARAMETERS(ECPKPARAMETERS **a, const unsigned char **in, long len)
507 return (ECPKPARAMETERS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, 514 return (ECPKPARAMETERS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
508 &ECPKPARAMETERS_it); 515 &ECPKPARAMETERS_it);
509} 516}
517LCRYPTO_ALIAS(d2i_ECPKPARAMETERS);
510 518
511int 519int
512i2d_ECPKPARAMETERS(const ECPKPARAMETERS *a, unsigned char **out) 520i2d_ECPKPARAMETERS(const ECPKPARAMETERS *a, unsigned char **out)
513{ 521{
514 return ASN1_item_i2d((ASN1_VALUE *)a, out, &ECPKPARAMETERS_it); 522 return ASN1_item_i2d((ASN1_VALUE *)a, out, &ECPKPARAMETERS_it);
515} 523}
524LCRYPTO_ALIAS(i2d_ECPKPARAMETERS);
516 525
517ECPKPARAMETERS * 526ECPKPARAMETERS *
518ECPKPARAMETERS_new(void) 527ECPKPARAMETERS_new(void)
519{ 528{
520 return (ECPKPARAMETERS *)ASN1_item_new(&ECPKPARAMETERS_it); 529 return (ECPKPARAMETERS *)ASN1_item_new(&ECPKPARAMETERS_it);
521} 530}
531LCRYPTO_ALIAS(ECPKPARAMETERS_new);
522 532
523void 533void
524ECPKPARAMETERS_free(ECPKPARAMETERS *a) 534ECPKPARAMETERS_free(ECPKPARAMETERS *a)
525{ 535{
526 ASN1_item_free((ASN1_VALUE *)a, &ECPKPARAMETERS_it); 536 ASN1_item_free((ASN1_VALUE *)a, &ECPKPARAMETERS_it);
527} 537}
538LCRYPTO_ALIAS(ECPKPARAMETERS_free);
528 539
529static const ASN1_TEMPLATE EC_PRIVATEKEY_seq_tt[] = { 540static const ASN1_TEMPLATE EC_PRIVATEKEY_seq_tt[] = {
530 { 541 {
@@ -578,24 +589,28 @@ d2i_EC_PRIVATEKEY(EC_PRIVATEKEY **a, const unsigned char **in, long len)
578 return (EC_PRIVATEKEY *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, 589 return (EC_PRIVATEKEY *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
579 &EC_PRIVATEKEY_it); 590 &EC_PRIVATEKEY_it);
580} 591}
592LCRYPTO_ALIAS(d2i_EC_PRIVATEKEY);
581 593
582int 594int
583i2d_EC_PRIVATEKEY(const EC_PRIVATEKEY *a, unsigned char **out) 595i2d_EC_PRIVATEKEY(const EC_PRIVATEKEY *a, unsigned char **out)
584{ 596{
585 return ASN1_item_i2d((ASN1_VALUE *)a, out, &EC_PRIVATEKEY_it); 597 return ASN1_item_i2d((ASN1_VALUE *)a, out, &EC_PRIVATEKEY_it);
586} 598}
599LCRYPTO_ALIAS(i2d_EC_PRIVATEKEY);
587 600
588EC_PRIVATEKEY * 601EC_PRIVATEKEY *
589EC_PRIVATEKEY_new(void) 602EC_PRIVATEKEY_new(void)
590{ 603{
591 return (EC_PRIVATEKEY *)ASN1_item_new(&EC_PRIVATEKEY_it); 604 return (EC_PRIVATEKEY *)ASN1_item_new(&EC_PRIVATEKEY_it);
592} 605}
606LCRYPTO_ALIAS(EC_PRIVATEKEY_new);
593 607
594void 608void
595EC_PRIVATEKEY_free(EC_PRIVATEKEY *a) 609EC_PRIVATEKEY_free(EC_PRIVATEKEY *a)
596{ 610{
597 ASN1_item_free((ASN1_VALUE *)a, &EC_PRIVATEKEY_it); 611 ASN1_item_free((ASN1_VALUE *)a, &EC_PRIVATEKEY_it);
598} 612}
613LCRYPTO_ALIAS(EC_PRIVATEKEY_free);
599 614
600/* some declarations of internal function */ 615/* some declarations of internal function */
601 616
@@ -1101,6 +1116,7 @@ d2i_ECPKParameters(EC_GROUP **a, const unsigned char **in, long len)
1101 ECPKPARAMETERS_free(params); 1116 ECPKPARAMETERS_free(params);
1102 return (group); 1117 return (group);
1103} 1118}
1119LCRYPTO_ALIAS(d2i_ECPKParameters);
1104 1120
1105int 1121int
1106i2d_ECPKParameters(const EC_GROUP *a, unsigned char **out) 1122i2d_ECPKParameters(const EC_GROUP *a, unsigned char **out)
@@ -1119,6 +1135,7 @@ i2d_ECPKParameters(const EC_GROUP *a, unsigned char **out)
1119 ECPKPARAMETERS_free(tmp); 1135 ECPKPARAMETERS_free(tmp);
1120 return (ret); 1136 return (ret);
1121} 1137}
1138LCRYPTO_ALIAS(i2d_ECPKParameters);
1122 1139
1123/* some EC_KEY functions */ 1140/* some EC_KEY functions */
1124 1141
@@ -1213,6 +1230,7 @@ d2i_ECPrivateKey(EC_KEY **a, const unsigned char **in, long len)
1213 1230
1214 return (NULL); 1231 return (NULL);
1215} 1232}
1233LCRYPTO_ALIAS(d2i_ECPrivateKey);
1216 1234
1217int 1235int
1218i2d_ECPrivateKey(EC_KEY *a, unsigned char **out) 1236i2d_ECPrivateKey(EC_KEY *a, unsigned char **out)
@@ -1297,6 +1315,7 @@ i2d_ECPrivateKey(EC_KEY *a, unsigned char **out)
1297 EC_PRIVATEKEY_free(priv_key); 1315 EC_PRIVATEKEY_free(priv_key);
1298 return (ok ? ret : 0); 1316 return (ok ? ret : 0);
1299} 1317}
1318LCRYPTO_ALIAS(i2d_ECPrivateKey);
1300 1319
1301int 1320int
1302i2d_ECParameters(EC_KEY *a, unsigned char **out) 1321i2d_ECParameters(EC_KEY *a, unsigned char **out)
@@ -1307,6 +1326,7 @@ i2d_ECParameters(EC_KEY *a, unsigned char **out)
1307 } 1326 }
1308 return i2d_ECPKParameters(a->group, out); 1327 return i2d_ECPKParameters(a->group, out);
1309} 1328}
1329LCRYPTO_ALIAS(i2d_ECParameters);
1310 1330
1311EC_KEY * 1331EC_KEY *
1312d2i_ECParameters(EC_KEY **a, const unsigned char **in, long len) 1332d2i_ECParameters(EC_KEY **a, const unsigned char **in, long len)
@@ -1336,6 +1356,7 @@ d2i_ECParameters(EC_KEY **a, const unsigned char **in, long len)
1336 *a = ret; 1356 *a = ret;
1337 return ret; 1357 return ret;
1338} 1358}
1359LCRYPTO_ALIAS(d2i_ECParameters);
1339 1360
1340EC_KEY * 1361EC_KEY *
1341o2i_ECPublicKey(EC_KEY **a, const unsigned char **in, long len) 1362o2i_ECPublicKey(EC_KEY **a, const unsigned char **in, long len)
@@ -1362,6 +1383,7 @@ o2i_ECPublicKey(EC_KEY **a, const unsigned char **in, long len)
1362 *in += len; 1383 *in += len;
1363 return ret; 1384 return ret;
1364} 1385}
1386LCRYPTO_ALIAS(o2i_ECPublicKey);
1365 1387
1366int 1388int
1367i2o_ECPublicKey(const EC_KEY *a, unsigned char **out) 1389i2o_ECPublicKey(const EC_KEY *a, unsigned char **out)
@@ -1400,3 +1422,4 @@ i2o_ECPublicKey(const EC_KEY *a, unsigned char **out)
1400 *out += buf_len; 1422 *out += buf_len;
1401 return buf_len; 1423 return buf_len;
1402} 1424}
1425LCRYPTO_ALIAS(i2o_ECPublicKey);
diff --git a/src/lib/libcrypto/ec/ec_check.c b/src/lib/libcrypto/ec/ec_check.c
index 4a38dec539..0f98ef613c 100644
--- a/src/lib/libcrypto/ec/ec_check.c
+++ b/src/lib/libcrypto/ec/ec_check.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_check.c,v 1.14 2023/07/03 09:29:55 tb Exp $ */ 1/* $OpenBSD: ec_check.c,v 1.15 2023/07/07 13:54:45 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -109,3 +109,4 @@ EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx_in)
109 109
110 return ret; 110 return ret;
111} 111}
112LCRYPTO_ALIAS(EC_GROUP_check);
diff --git a/src/lib/libcrypto/ec/ec_curve.c b/src/lib/libcrypto/ec/ec_curve.c
index a8a1e4d522..9d19628b3e 100644
--- a/src/lib/libcrypto/ec/ec_curve.c
+++ b/src/lib/libcrypto/ec/ec_curve.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_curve.c,v 1.41 2023/05/02 13:01:57 tb Exp $ */ 1/* $OpenBSD: ec_curve.c,v 1.42 2023/07/07 13:54:45 beck Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -3122,6 +3122,7 @@ EC_GROUP_new_by_curve_name(int nid)
3122 ECerror(EC_R_UNKNOWN_GROUP); 3122 ECerror(EC_R_UNKNOWN_GROUP);
3123 return NULL; 3123 return NULL;
3124} 3124}
3125LCRYPTO_ALIAS(EC_GROUP_new_by_curve_name);
3125 3126
3126size_t 3127size_t
3127EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems) 3128EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems)
@@ -3140,6 +3141,7 @@ EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems)
3140 3141
3141 return CURVE_LIST_LENGTH; 3142 return CURVE_LIST_LENGTH;
3142} 3143}
3144LCRYPTO_ALIAS(EC_get_builtin_curves);
3143 3145
3144static const struct { 3146static const struct {
3145 const char *name; 3147 const char *name;
@@ -3174,6 +3176,7 @@ EC_curve_nid2nist(int nid)
3174 3176
3175 return NULL; 3177 return NULL;
3176} 3178}
3179LCRYPTO_ALIAS(EC_curve_nid2nist);
3177 3180
3178int 3181int
3179EC_curve_nist2nid(const char *name) 3182EC_curve_nist2nid(const char *name)
@@ -3187,3 +3190,4 @@ EC_curve_nist2nid(const char *name)
3187 3190
3188 return NID_undef; 3191 return NID_undef;
3189} 3192}
3193LCRYPTO_ALIAS(EC_curve_nist2nid);
diff --git a/src/lib/libcrypto/ec/ec_cvt.c b/src/lib/libcrypto/ec/ec_cvt.c
index 90e7400739..5b196dd671 100644
--- a/src/lib/libcrypto/ec/ec_cvt.c
+++ b/src/lib/libcrypto/ec/ec_cvt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_cvt.c,v 1.11 2023/04/25 19:53:30 tb Exp $ */ 1/* $OpenBSD: ec_cvt.c,v 1.12 2023/07/07 13:54:45 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 */
@@ -100,3 +100,4 @@ EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, const BIGNUM *b,
100{ 100{
101 return ec_group_new_curve(EC_GFp_mont_method(), p, a, b, ctx); 101 return ec_group_new_curve(EC_GFp_mont_method(), p, a, b, ctx);
102} 102}
103LCRYPTO_ALIAS(EC_GROUP_new_curve_GFp);
diff --git a/src/lib/libcrypto/ec/ec_err.c b/src/lib/libcrypto/ec/ec_err.c
index d10b8e6f7d..d797b937c2 100644
--- a/src/lib/libcrypto/ec/ec_err.c
+++ b/src/lib/libcrypto/ec/ec_err.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_err.c,v 1.16 2023/07/05 17:10:10 tb Exp $ */ 1/* $OpenBSD: ec_err.c,v 1.17 2023/07/07 13:54:45 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -147,3 +147,4 @@ ERR_load_EC_strings(void)
147 } 147 }
148#endif 148#endif
149} 149}
150LCRYPTO_ALIAS(ERR_load_EC_strings);
diff --git a/src/lib/libcrypto/ec/ec_key.c b/src/lib/libcrypto/ec/ec_key.c
index a15d06b019..e5ff189803 100644
--- a/src/lib/libcrypto/ec/ec_key.c
+++ b/src/lib/libcrypto/ec/ec_key.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_key.c,v 1.35 2023/07/05 08:39:40 tb Exp $ */ 1/* $OpenBSD: ec_key.c,v 1.36 2023/07/07 13:54:45 beck Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -78,6 +78,7 @@ EC_KEY_new(void)
78{ 78{
79 return EC_KEY_new_method(NULL); 79 return EC_KEY_new_method(NULL);
80} 80}
81LCRYPTO_ALIAS(EC_KEY_new);
81 82
82EC_KEY * 83EC_KEY *
83EC_KEY_new_by_curve_name(int nid) 84EC_KEY_new_by_curve_name(int nid)
@@ -97,6 +98,7 @@ EC_KEY_new_by_curve_name(int nid)
97 } 98 }
98 return ret; 99 return ret;
99} 100}
101LCRYPTO_ALIAS(EC_KEY_new_by_curve_name);
100 102
101void 103void
102EC_KEY_free(EC_KEY *r) 104EC_KEY_free(EC_KEY *r)
@@ -124,6 +126,7 @@ EC_KEY_free(EC_KEY *r)
124 126
125 freezero(r, sizeof(EC_KEY)); 127 freezero(r, sizeof(EC_KEY));
126} 128}
129LCRYPTO_ALIAS(EC_KEY_free);
127 130
128EC_KEY * 131EC_KEY *
129EC_KEY_copy(EC_KEY *dest, const EC_KEY *src) 132EC_KEY_copy(EC_KEY *dest, const EC_KEY *src)
@@ -197,6 +200,7 @@ EC_KEY_copy(EC_KEY *dest, const EC_KEY *src)
197 200
198 return dest; 201 return dest;
199} 202}
203LCRYPTO_ALIAS(EC_KEY_copy);
200 204
201EC_KEY * 205EC_KEY *
202EC_KEY_dup(const EC_KEY *ec_key) 206EC_KEY_dup(const EC_KEY *ec_key)
@@ -211,6 +215,7 @@ EC_KEY_dup(const EC_KEY *ec_key)
211 } 215 }
212 return ret; 216 return ret;
213} 217}
218LCRYPTO_ALIAS(EC_KEY_dup);
214 219
215int 220int
216EC_KEY_up_ref(EC_KEY *r) 221EC_KEY_up_ref(EC_KEY *r)
@@ -218,18 +223,21 @@ EC_KEY_up_ref(EC_KEY *r)
218 int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_EC); 223 int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_EC);
219 return ((i > 1) ? 1 : 0); 224 return ((i > 1) ? 1 : 0);
220} 225}
226LCRYPTO_ALIAS(EC_KEY_up_ref);
221 227
222int 228int
223EC_KEY_set_ex_data(EC_KEY *r, int idx, void *arg) 229EC_KEY_set_ex_data(EC_KEY *r, int idx, void *arg)
224{ 230{
225 return CRYPTO_set_ex_data(&r->ex_data, idx, arg); 231 return CRYPTO_set_ex_data(&r->ex_data, idx, arg);
226} 232}
233LCRYPTO_ALIAS(EC_KEY_set_ex_data);
227 234
228void * 235void *
229EC_KEY_get_ex_data(const EC_KEY *r, int idx) 236EC_KEY_get_ex_data(const EC_KEY *r, int idx)
230{ 237{
231 return CRYPTO_get_ex_data(&r->ex_data, idx); 238 return CRYPTO_get_ex_data(&r->ex_data, idx);
232} 239}
240LCRYPTO_ALIAS(EC_KEY_get_ex_data);
233 241
234int 242int
235EC_KEY_generate_key(EC_KEY *eckey) 243EC_KEY_generate_key(EC_KEY *eckey)
@@ -239,6 +247,7 @@ EC_KEY_generate_key(EC_KEY *eckey)
239 ECerror(EC_R_NOT_IMPLEMENTED); 247 ECerror(EC_R_NOT_IMPLEMENTED);
240 return 0; 248 return 0;
241} 249}
250LCRYPTO_ALIAS(EC_KEY_generate_key);
242 251
243int 252int
244ec_key_gen(EC_KEY *eckey) 253ec_key_gen(EC_KEY *eckey)
@@ -355,6 +364,7 @@ EC_KEY_check_key(const EC_KEY *eckey)
355 364
356 return ret; 365 return ret;
357} 366}
367LCRYPTO_ALIAS(EC_KEY_check_key);
358 368
359int 369int
360EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x, BIGNUM *y) 370EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x, BIGNUM *y)
@@ -409,12 +419,14 @@ EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x, BIGNUM *y)
409 419
410 return ret; 420 return ret;
411} 421}
422LCRYPTO_ALIAS(EC_KEY_set_public_key_affine_coordinates);
412 423
413const EC_GROUP * 424const EC_GROUP *
414EC_KEY_get0_group(const EC_KEY *key) 425EC_KEY_get0_group(const EC_KEY *key)
415{ 426{
416 return key->group; 427 return key->group;
417} 428}
429LCRYPTO_ALIAS(EC_KEY_get0_group);
418 430
419int 431int
420EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group) 432EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group)
@@ -426,12 +438,14 @@ EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group)
426 key->group = EC_GROUP_dup(group); 438 key->group = EC_GROUP_dup(group);
427 return (key->group == NULL) ? 0 : 1; 439 return (key->group == NULL) ? 0 : 1;
428} 440}
441LCRYPTO_ALIAS(EC_KEY_set_group);
429 442
430const BIGNUM * 443const BIGNUM *
431EC_KEY_get0_private_key(const EC_KEY *key) 444EC_KEY_get0_private_key(const EC_KEY *key)
432{ 445{
433 return key->priv_key; 446 return key->priv_key;
434} 447}
448LCRYPTO_ALIAS(EC_KEY_get0_private_key);
435 449
436int 450int
437EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *priv_key) 451EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *priv_key)
@@ -446,12 +460,14 @@ EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *priv_key)
446 460
447 return 1; 461 return 1;
448} 462}
463LCRYPTO_ALIAS(EC_KEY_set_private_key);
449 464
450const EC_POINT * 465const EC_POINT *
451EC_KEY_get0_public_key(const EC_KEY *key) 466EC_KEY_get0_public_key(const EC_KEY *key)
452{ 467{
453 return key->pub_key; 468 return key->pub_key;
454} 469}
470LCRYPTO_ALIAS(EC_KEY_get0_public_key);
455 471
456int 472int
457EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) 473EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key)
@@ -466,24 +482,28 @@ EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key)
466 482
467 return 1; 483 return 1;
468} 484}
485LCRYPTO_ALIAS(EC_KEY_set_public_key);
469 486
470unsigned int 487unsigned int
471EC_KEY_get_enc_flags(const EC_KEY *key) 488EC_KEY_get_enc_flags(const EC_KEY *key)
472{ 489{
473 return key->enc_flag; 490 return key->enc_flag;
474} 491}
492LCRYPTO_ALIAS(EC_KEY_get_enc_flags);
475 493
476void 494void
477EC_KEY_set_enc_flags(EC_KEY *key, unsigned int flags) 495EC_KEY_set_enc_flags(EC_KEY *key, unsigned int flags)
478{ 496{
479 key->enc_flag = flags; 497 key->enc_flag = flags;
480} 498}
499LCRYPTO_ALIAS(EC_KEY_set_enc_flags);
481 500
482point_conversion_form_t 501point_conversion_form_t
483EC_KEY_get_conv_form(const EC_KEY *key) 502EC_KEY_get_conv_form(const EC_KEY *key)
484{ 503{
485 return key->conv_form; 504 return key->conv_form;
486} 505}
506LCRYPTO_ALIAS(EC_KEY_get_conv_form);
487 507
488void 508void
489EC_KEY_set_conv_form(EC_KEY *key, point_conversion_form_t cform) 509EC_KEY_set_conv_form(EC_KEY *key, point_conversion_form_t cform)
@@ -492,6 +512,7 @@ EC_KEY_set_conv_form(EC_KEY *key, point_conversion_form_t cform)
492 if (key->group != NULL) 512 if (key->group != NULL)
493 EC_GROUP_set_point_conversion_form(key->group, cform); 513 EC_GROUP_set_point_conversion_form(key->group, cform);
494} 514}
515LCRYPTO_ALIAS(EC_KEY_set_conv_form);
495 516
496void 517void
497EC_KEY_set_asn1_flag(EC_KEY *key, int flag) 518EC_KEY_set_asn1_flag(EC_KEY *key, int flag)
@@ -499,6 +520,7 @@ EC_KEY_set_asn1_flag(EC_KEY *key, int flag)
499 if (key->group != NULL) 520 if (key->group != NULL)
500 EC_GROUP_set_asn1_flag(key->group, flag); 521 EC_GROUP_set_asn1_flag(key->group, flag);
501} 522}
523LCRYPTO_ALIAS(EC_KEY_set_asn1_flag);
502 524
503int 525int
504EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx) 526EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx)
@@ -507,21 +529,25 @@ EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx)
507 return 0; 529 return 0;
508 return EC_GROUP_precompute_mult(key->group, ctx); 530 return EC_GROUP_precompute_mult(key->group, ctx);
509} 531}
532LCRYPTO_ALIAS(EC_KEY_precompute_mult);
510 533
511int 534int
512EC_KEY_get_flags(const EC_KEY *key) 535EC_KEY_get_flags(const EC_KEY *key)
513{ 536{
514 return key->flags; 537 return key->flags;
515} 538}
539LCRYPTO_ALIAS(EC_KEY_get_flags);
516 540
517void 541void
518EC_KEY_set_flags(EC_KEY *key, int flags) 542EC_KEY_set_flags(EC_KEY *key, int flags)
519{ 543{
520 key->flags |= flags; 544 key->flags |= flags;
521} 545}
546LCRYPTO_ALIAS(EC_KEY_set_flags);
522 547
523void 548void
524EC_KEY_clear_flags(EC_KEY *key, int flags) 549EC_KEY_clear_flags(EC_KEY *key, int flags)
525{ 550{
526 key->flags &= ~flags; 551 key->flags &= ~flags;
527} 552}
553LCRYPTO_ALIAS(EC_KEY_clear_flags);
diff --git a/src/lib/libcrypto/ec/ec_kmeth.c b/src/lib/libcrypto/ec/ec_kmeth.c
index ec45e679d9..3e997f8a5e 100644
--- a/src/lib/libcrypto/ec/ec_kmeth.c
+++ b/src/lib/libcrypto/ec/ec_kmeth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_kmeth.c,v 1.10 2023/07/05 11:37:46 tb Exp $ */ 1/* $OpenBSD: ec_kmeth.c,v 1.11 2023/07/07 13:54:45 beck Exp $ */
2/* 2/*
3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
4 * project. 4 * project.
@@ -92,12 +92,14 @@ EC_KEY_OpenSSL(void)
92{ 92{
93 return &openssl_ec_key_method; 93 return &openssl_ec_key_method;
94} 94}
95LCRYPTO_ALIAS(EC_KEY_OpenSSL);
95 96
96const EC_KEY_METHOD * 97const EC_KEY_METHOD *
97EC_KEY_get_default_method(void) 98EC_KEY_get_default_method(void)
98{ 99{
99 return default_ec_key_meth; 100 return default_ec_key_meth;
100} 101}
102LCRYPTO_ALIAS(EC_KEY_get_default_method);
101 103
102void 104void
103EC_KEY_set_default_method(const EC_KEY_METHOD *meth) 105EC_KEY_set_default_method(const EC_KEY_METHOD *meth)
@@ -107,12 +109,14 @@ EC_KEY_set_default_method(const EC_KEY_METHOD *meth)
107 else 109 else
108 default_ec_key_meth = meth; 110 default_ec_key_meth = meth;
109} 111}
112LCRYPTO_ALIAS(EC_KEY_set_default_method);
110 113
111const EC_KEY_METHOD * 114const EC_KEY_METHOD *
112EC_KEY_get_method(const EC_KEY *key) 115EC_KEY_get_method(const EC_KEY *key)
113{ 116{
114 return key->meth; 117 return key->meth;
115} 118}
119LCRYPTO_ALIAS(EC_KEY_get_method);
116 120
117int 121int
118EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth) 122EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth)
@@ -132,6 +136,7 @@ EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth)
132 return meth->init(key); 136 return meth->init(key);
133 return 1; 137 return 1;
134} 138}
139LCRYPTO_ALIAS(EC_KEY_set_method);
135 140
136EC_KEY * 141EC_KEY *
137EC_KEY_new_method(ENGINE *engine) 142EC_KEY_new_method(ENGINE *engine)
@@ -180,6 +185,7 @@ EC_KEY_new_method(ENGINE *engine)
180 EC_KEY_free(ret); 185 EC_KEY_free(ret);
181 return NULL; 186 return NULL;
182} 187}
188LCRYPTO_ALIAS(EC_KEY_new_method);
183 189
184EC_KEY_METHOD * 190EC_KEY_METHOD *
185EC_KEY_METHOD_new(const EC_KEY_METHOD *meth) 191EC_KEY_METHOD_new(const EC_KEY_METHOD *meth)
@@ -193,6 +199,7 @@ EC_KEY_METHOD_new(const EC_KEY_METHOD *meth)
193 ret->flags |= EC_KEY_METHOD_DYNAMIC; 199 ret->flags |= EC_KEY_METHOD_DYNAMIC;
194 return ret; 200 return ret;
195} 201}
202LCRYPTO_ALIAS(EC_KEY_METHOD_new);
196 203
197void 204void
198EC_KEY_METHOD_free(EC_KEY_METHOD *meth) 205EC_KEY_METHOD_free(EC_KEY_METHOD *meth)
@@ -202,6 +209,7 @@ EC_KEY_METHOD_free(EC_KEY_METHOD *meth)
202 if (meth->flags & EC_KEY_METHOD_DYNAMIC) 209 if (meth->flags & EC_KEY_METHOD_DYNAMIC)
203 free(meth); 210 free(meth);
204} 211}
212LCRYPTO_ALIAS(EC_KEY_METHOD_free);
205 213
206void 214void
207EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth, 215EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth,
@@ -219,12 +227,14 @@ EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth,
219 meth->set_private = set_private; 227 meth->set_private = set_private;
220 meth->set_public = set_public; 228 meth->set_public = set_public;
221} 229}
230LCRYPTO_ALIAS(EC_KEY_METHOD_set_init);
222 231
223void 232void
224EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth, int (*keygen)(EC_KEY *key)) 233EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth, int (*keygen)(EC_KEY *key))
225{ 234{
226 meth->keygen = keygen; 235 meth->keygen = keygen;
227} 236}
237LCRYPTO_ALIAS(EC_KEY_METHOD_set_keygen);
228 238
229void 239void
230EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth, 240EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth,
@@ -233,6 +243,7 @@ EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth,
233{ 243{
234 meth->compute_key = ckey; 244 meth->compute_key = ckey;
235} 245}
246LCRYPTO_ALIAS(EC_KEY_METHOD_set_compute_key);
236 247
237void 248void
238EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth, 249EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth,
@@ -249,6 +260,7 @@ EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth,
249 meth->sign_setup = sign_setup; 260 meth->sign_setup = sign_setup;
250 meth->sign_sig = sign_sig; 261 meth->sign_sig = sign_sig;
251} 262}
263LCRYPTO_ALIAS(EC_KEY_METHOD_set_sign);
252 264
253void 265void
254EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth, 266EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth,
@@ -260,6 +272,7 @@ EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth,
260 meth->verify = verify; 272 meth->verify = verify;
261 meth->verify_sig = verify_sig; 273 meth->verify_sig = verify_sig;
262} 274}
275LCRYPTO_ALIAS(EC_KEY_METHOD_set_verify);
263 276
264 277
265void 278void
@@ -284,6 +297,7 @@ EC_KEY_METHOD_get_init(const EC_KEY_METHOD *meth,
284 if (pset_public != NULL) 297 if (pset_public != NULL)
285 *pset_public = meth->set_public; 298 *pset_public = meth->set_public;
286} 299}
300LCRYPTO_ALIAS(EC_KEY_METHOD_get_init);
287 301
288void 302void
289EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth, 303EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth,
@@ -292,6 +306,7 @@ EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth,
292 if (pkeygen != NULL) 306 if (pkeygen != NULL)
293 *pkeygen = meth->keygen; 307 *pkeygen = meth->keygen;
294} 308}
309LCRYPTO_ALIAS(EC_KEY_METHOD_get_keygen);
295 310
296void 311void
297EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth, 312EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth,
@@ -301,6 +316,7 @@ EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth,
301 if (pck != NULL) 316 if (pck != NULL)
302 *pck = meth->compute_key; 317 *pck = meth->compute_key;
303} 318}
319LCRYPTO_ALIAS(EC_KEY_METHOD_get_compute_key);
304 320
305void 321void
306EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth, 322EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth,
@@ -320,6 +336,7 @@ EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth,
320 if (psign_sig != NULL) 336 if (psign_sig != NULL)
321 *psign_sig = meth->sign_sig; 337 *psign_sig = meth->sign_sig;
322} 338}
339LCRYPTO_ALIAS(EC_KEY_METHOD_get_sign);
323 340
324void 341void
325EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth, 342EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth,
@@ -333,3 +350,4 @@ EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth,
333 if (pverify_sig != NULL) 350 if (pverify_sig != NULL)
334 *pverify_sig = meth->verify_sig; 351 *pverify_sig = meth->verify_sig;
335} 352}
353LCRYPTO_ALIAS(EC_KEY_METHOD_get_verify);
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c
index 8cea0bb95b..3db1ca2f07 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.62 2023/07/03 07:26:40 tb Exp $ */ 1/* $OpenBSD: ec_lib.c,v 1.63 2023/07/07 13:54:45 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 */
@@ -110,6 +110,7 @@ EC_GROUP_new(const EC_METHOD *meth)
110 } 110 }
111 return ret; 111 return ret;
112} 112}
113LCRYPTO_ALIAS(EC_GROUP_new);
113 114
114 115
115void 116void
@@ -128,12 +129,14 @@ EC_GROUP_free(EC_GROUP *group)
128 freezero(group->seed, group->seed_len); 129 freezero(group->seed, group->seed_len);
129 freezero(group, sizeof *group); 130 freezero(group, sizeof *group);
130} 131}
132LCRYPTO_ALIAS(EC_GROUP_free);
131 133
132void 134void
133EC_GROUP_clear_free(EC_GROUP *group) 135EC_GROUP_clear_free(EC_GROUP *group)
134{ 136{
135 EC_GROUP_free(group); 137 EC_GROUP_free(group);
136} 138}
139LCRYPTO_ALIAS(EC_GROUP_clear_free);
137 140
138int 141int
139EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src) 142EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src)
@@ -188,6 +191,7 @@ EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src)
188 191
189 return dest->meth->group_copy(dest, src); 192 return dest->meth->group_copy(dest, src);
190} 193}
194LCRYPTO_ALIAS(EC_GROUP_copy);
191 195
192 196
193EC_GROUP * 197EC_GROUP *
@@ -202,6 +206,7 @@ EC_GROUP_dup(const EC_GROUP *a)
202 } 206 }
203 return t; 207 return t;
204} 208}
209LCRYPTO_ALIAS(EC_GROUP_dup);
205 210
206 211
207const EC_METHOD * 212const EC_METHOD *
@@ -209,6 +214,7 @@ EC_GROUP_method_of(const EC_GROUP *group)
209{ 214{
210 return group->meth; 215 return group->meth;
211} 216}
217LCRYPTO_ALIAS(EC_GROUP_method_of);
212 218
213 219
214int 220int
@@ -216,6 +222,7 @@ EC_METHOD_get_field_type(const EC_METHOD *meth)
216{ 222{
217 return meth->field_type; 223 return meth->field_type;
218} 224}
225LCRYPTO_ALIAS(EC_METHOD_get_field_type);
219 226
220/* 227/*
221 * If there is a user-provided cofactor, sanity check and use it. Otherwise 228 * If there is a user-provided cofactor, sanity check and use it. Otherwise
@@ -349,6 +356,7 @@ EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator,
349 356
350 return 1; 357 return 1;
351} 358}
359LCRYPTO_ALIAS(EC_GROUP_set_generator);
352 360
353 361
354const EC_POINT * 362const EC_POINT *
@@ -356,6 +364,7 @@ EC_GROUP_get0_generator(const EC_GROUP *group)
356{ 364{
357 return group->generator; 365 return group->generator;
358} 366}
367LCRYPTO_ALIAS(EC_GROUP_get0_generator);
359 368
360int 369int
361EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx) 370EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx)
@@ -365,6 +374,7 @@ EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx)
365 374
366 return !BN_is_zero(order); 375 return !BN_is_zero(order);
367} 376}
377LCRYPTO_ALIAS(EC_GROUP_get_order);
368 378
369const BIGNUM * 379const BIGNUM *
370EC_GROUP_get0_order(const EC_GROUP *group) 380EC_GROUP_get0_order(const EC_GROUP *group)
@@ -377,6 +387,7 @@ EC_GROUP_order_bits(const EC_GROUP *group)
377{ 387{
378 return group->meth->group_order_bits(group); 388 return group->meth->group_order_bits(group);
379} 389}
390LCRYPTO_ALIAS(EC_GROUP_order_bits);
380 391
381int 392int
382EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx) 393EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx)
@@ -386,6 +397,7 @@ EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx)
386 397
387 return !BN_is_zero(&group->cofactor); 398 return !BN_is_zero(&group->cofactor);
388} 399}
400LCRYPTO_ALIAS(EC_GROUP_get_cofactor);
389 401
390 402
391void 403void
@@ -393,6 +405,7 @@ EC_GROUP_set_curve_name(EC_GROUP *group, int nid)
393{ 405{
394 group->curve_name = nid; 406 group->curve_name = nid;
395} 407}
408LCRYPTO_ALIAS(EC_GROUP_set_curve_name);
396 409
397 410
398int 411int
@@ -400,6 +413,7 @@ EC_GROUP_get_curve_name(const EC_GROUP *group)
400{ 413{
401 return group->curve_name; 414 return group->curve_name;
402} 415}
416LCRYPTO_ALIAS(EC_GROUP_get_curve_name);
403 417
404 418
405void 419void
@@ -407,6 +421,7 @@ EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag)
407{ 421{
408 group->asn1_flag = flag; 422 group->asn1_flag = flag;
409} 423}
424LCRYPTO_ALIAS(EC_GROUP_set_asn1_flag);
410 425
411 426
412int 427int
@@ -414,6 +429,7 @@ EC_GROUP_get_asn1_flag(const EC_GROUP *group)
414{ 429{
415 return group->asn1_flag; 430 return group->asn1_flag;
416} 431}
432LCRYPTO_ALIAS(EC_GROUP_get_asn1_flag);
417 433
418 434
419void 435void
@@ -422,6 +438,7 @@ EC_GROUP_set_point_conversion_form(EC_GROUP *group,
422{ 438{
423 group->asn1_form = form; 439 group->asn1_form = form;
424} 440}
441LCRYPTO_ALIAS(EC_GROUP_set_point_conversion_form);
425 442
426 443
427point_conversion_form_t 444point_conversion_form_t
@@ -429,6 +446,7 @@ EC_GROUP_get_point_conversion_form(const EC_GROUP *group)
429{ 446{
430 return group->asn1_form; 447 return group->asn1_form;
431} 448}
449LCRYPTO_ALIAS(EC_GROUP_get_point_conversion_form);
432 450
433 451
434size_t 452size_t
@@ -449,6 +467,7 @@ EC_GROUP_set_seed(EC_GROUP *group, const unsigned char *p, size_t len)
449 467
450 return len; 468 return len;
451} 469}
470LCRYPTO_ALIAS(EC_GROUP_set_seed);
452 471
453 472
454unsigned char * 473unsigned char *
@@ -456,6 +475,7 @@ EC_GROUP_get0_seed(const EC_GROUP *group)
456{ 475{
457 return group->seed; 476 return group->seed;
458} 477}
478LCRYPTO_ALIAS(EC_GROUP_get0_seed);
459 479
460 480
461size_t 481size_t
@@ -463,6 +483,7 @@ EC_GROUP_get_seed_len(const EC_GROUP *group)
463{ 483{
464 return group->seed_len; 484 return group->seed_len;
465} 485}
486LCRYPTO_ALIAS(EC_GROUP_get_seed_len);
466 487
467int 488int
468EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, 489EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
@@ -488,6 +509,7 @@ EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
488 509
489 return ret; 510 return ret;
490} 511}
512LCRYPTO_ALIAS(EC_GROUP_set_curve);
491 513
492int 514int
493EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, 515EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
@@ -513,6 +535,7 @@ EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
513 535
514 return ret; 536 return ret;
515} 537}
538LCRYPTO_ALIAS(EC_GROUP_get_curve);
516 539
517int 540int
518EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, 541EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
@@ -520,6 +543,7 @@ EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
520{ 543{
521 return EC_GROUP_set_curve(group, p, a, b, ctx); 544 return EC_GROUP_set_curve(group, p, a, b, ctx);
522} 545}
546LCRYPTO_ALIAS(EC_GROUP_set_curve_GFp);
523 547
524int 548int
525EC_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,
@@ -527,6 +551,7 @@ EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
527{ 551{
528 return EC_GROUP_get_curve(group, p, a, b, ctx); 552 return EC_GROUP_get_curve(group, p, a, b, ctx);
529} 553}
554LCRYPTO_ALIAS(EC_GROUP_get_curve_GFp);
530 555
531int 556int
532EC_GROUP_get_degree(const EC_GROUP *group) 557EC_GROUP_get_degree(const EC_GROUP *group)
@@ -537,6 +562,7 @@ EC_GROUP_get_degree(const EC_GROUP *group)
537 } 562 }
538 return group->meth->group_get_degree(group); 563 return group->meth->group_get_degree(group);
539} 564}
565LCRYPTO_ALIAS(EC_GROUP_get_degree);
540 566
541 567
542int 568int
@@ -562,6 +588,7 @@ EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx_in)
562 588
563 return ret; 589 return ret;
564} 590}
591LCRYPTO_ALIAS(EC_GROUP_check_discriminant);
565 592
566 593
567int 594int
@@ -637,6 +664,7 @@ EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx)
637 BN_CTX_free(ctx); 664 BN_CTX_free(ctx);
638 return -1; 665 return -1;
639} 666}
667LCRYPTO_ALIAS(EC_GROUP_cmp);
640 668
641/* 669/*
642 * Coordinate blinding for EC_POINT. 670 * Coordinate blinding for EC_POINT.
@@ -682,6 +710,7 @@ EC_POINT_new(const EC_GROUP *group)
682 } 710 }
683 return ret; 711 return ret;
684} 712}
713LCRYPTO_ALIAS(EC_POINT_new);
685 714
686void 715void
687EC_POINT_free(EC_POINT *point) 716EC_POINT_free(EC_POINT *point)
@@ -694,12 +723,14 @@ EC_POINT_free(EC_POINT *point)
694 723
695 freezero(point, sizeof *point); 724 freezero(point, sizeof *point);
696} 725}
726LCRYPTO_ALIAS(EC_POINT_free);
697 727
698void 728void
699EC_POINT_clear_free(EC_POINT *point) 729EC_POINT_clear_free(EC_POINT *point)
700{ 730{
701 EC_POINT_free(point); 731 EC_POINT_free(point);
702} 732}
733LCRYPTO_ALIAS(EC_POINT_clear_free);
703 734
704int 735int
705EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) 736EC_POINT_copy(EC_POINT *dest, const EC_POINT *src)
@@ -716,6 +747,7 @@ EC_POINT_copy(EC_POINT *dest, const EC_POINT *src)
716 return 1; 747 return 1;
717 return dest->meth->point_copy(dest, src); 748 return dest->meth->point_copy(dest, src);
718} 749}
750LCRYPTO_ALIAS(EC_POINT_copy);
719 751
720EC_POINT * 752EC_POINT *
721EC_POINT_dup(const EC_POINT *a, const EC_GROUP *group) 753EC_POINT_dup(const EC_POINT *a, const EC_GROUP *group)
@@ -736,12 +768,14 @@ EC_POINT_dup(const EC_POINT *a, const EC_GROUP *group)
736 } else 768 } else
737 return t; 769 return t;
738} 770}
771LCRYPTO_ALIAS(EC_POINT_dup);
739 772
740const EC_METHOD * 773const EC_METHOD *
741EC_POINT_method_of(const EC_POINT *point) 774EC_POINT_method_of(const EC_POINT *point)
742{ 775{
743 return point->meth; 776 return point->meth;
744} 777}
778LCRYPTO_ALIAS(EC_POINT_method_of);
745 779
746int 780int
747EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point) 781EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point)
@@ -756,6 +790,7 @@ EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point)
756 } 790 }
757 return group->meth->point_set_to_infinity(group, point); 791 return group->meth->point_set_to_infinity(group, point);
758} 792}
793LCRYPTO_ALIAS(EC_POINT_set_to_infinity);
759 794
760int 795int
761EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *point, 796EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *point,
@@ -831,6 +866,7 @@ EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
831{ 866{
832 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);
833} 868}
869LCRYPTO_ALIAS(EC_POINT_set_Jprojective_coordinates_GFp);
834 870
835int 871int
836EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, 872EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,
@@ -838,6 +874,7 @@ EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,
838{ 874{
839 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);
840} 876}
877LCRYPTO_ALIAS(EC_POINT_get_Jprojective_coordinates_GFp);
841 878
842int 879int
843EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, 880EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point,
@@ -875,6 +912,7 @@ EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point,
875 912
876 return ret; 913 return ret;
877} 914}
915LCRYPTO_ALIAS(EC_POINT_set_affine_coordinates);
878 916
879int 917int
880EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *point, 918EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
@@ -882,6 +920,7 @@ EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
882{ 920{
883 return EC_POINT_set_affine_coordinates(group, point, x, y, ctx); 921 return EC_POINT_set_affine_coordinates(group, point, x, y, ctx);
884} 922}
923LCRYPTO_ALIAS(EC_POINT_set_affine_coordinates_GFp);
885 924
886int 925int
887EC_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,
@@ -911,6 +950,7 @@ EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point,
911 950
912 return ret; 951 return ret;
913} 952}
953LCRYPTO_ALIAS(EC_POINT_get_affine_coordinates);
914 954
915int 955int
916EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *point, 956EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *point,
@@ -918,6 +958,7 @@ EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *point
918{ 958{
919 return EC_POINT_get_affine_coordinates(group, point, x, y, ctx); 959 return EC_POINT_get_affine_coordinates(group, point, x, y, ctx);
920} 960}
961LCRYPTO_ALIAS(EC_POINT_get_affine_coordinates_GFp);
921 962
922int 963int
923EC_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,
@@ -948,6 +989,7 @@ EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
948 989
949 return ret; 990 return ret;
950} 991}
992LCRYPTO_ALIAS(EC_POINT_add);
951 993
952int 994int
953EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, 995EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
@@ -977,6 +1019,7 @@ EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
977 1019
978 return ret; 1020 return ret;
979} 1021}
1022LCRYPTO_ALIAS(EC_POINT_dbl);
980 1023
981int 1024int
982EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx_in) 1025EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx_in)
@@ -1005,6 +1048,7 @@ EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx_in)
1005 1048
1006 return ret; 1049 return ret;
1007} 1050}
1051LCRYPTO_ALIAS(EC_POINT_invert);
1008 1052
1009int 1053int
1010EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point) 1054EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point)
@@ -1019,6 +1063,7 @@ EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point)
1019 } 1063 }
1020 return group->meth->is_at_infinity(group, point); 1064 return group->meth->is_at_infinity(group, point);
1021} 1065}
1066LCRYPTO_ALIAS(EC_POINT_is_at_infinity);
1022 1067
1023int 1068int
1024EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, 1069EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,
@@ -1048,6 +1093,7 @@ EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,
1048 1093
1049 return ret; 1094 return ret;
1050} 1095}
1096LCRYPTO_ALIAS(EC_POINT_is_on_curve);
1051 1097
1052int 1098int
1053EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, 1099EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,
@@ -1077,6 +1123,7 @@ EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,
1077 1123
1078 return ret; 1124 return ret;
1079} 1125}
1126LCRYPTO_ALIAS(EC_POINT_cmp);
1080 1127
1081int 1128int
1082EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx_in) 1129EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx_in)
@@ -1105,6 +1152,7 @@ EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx_in)
1105 1152
1106 return ret; 1153 return ret;
1107} 1154}
1155LCRYPTO_ALIAS(EC_POINT_make_affine);
1108 1156
1109int 1157int
1110EC_POINTs_make_affine(const EC_GROUP *group, size_t num, EC_POINT *points[], 1158EC_POINTs_make_affine(const EC_GROUP *group, size_t num, EC_POINT *points[],
@@ -1137,6 +1185,7 @@ EC_POINTs_make_affine(const EC_GROUP *group, size_t num, EC_POINT *points[],
1137 1185
1138 return ret; 1186 return ret;
1139} 1187}
1188LCRYPTO_ALIAS(EC_POINTs_make_affine);
1140 1189
1141int 1190int
1142EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, 1191EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
@@ -1178,6 +1227,7 @@ EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
1178 1227
1179 return ret; 1228 return ret;
1180} 1229}
1230LCRYPTO_ALIAS(EC_POINTs_mul);
1181 1231
1182int 1232int
1183EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, 1233EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
@@ -1239,18 +1289,21 @@ EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
1239 1289
1240 return ret; 1290 return ret;
1241} 1291}
1292LCRYPTO_ALIAS(EC_POINT_mul);
1242 1293
1243int 1294int
1244EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx_in) 1295EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx_in)
1245{ 1296{
1246 return 1; 1297 return 1;
1247} 1298}
1299LCRYPTO_ALIAS(EC_GROUP_precompute_mult);
1248 1300
1249int 1301int
1250EC_GROUP_have_precompute_mult(const EC_GROUP *group) 1302EC_GROUP_have_precompute_mult(const EC_GROUP *group)
1251{ 1303{
1252 return 0; 1304 return 0;
1253} 1305}
1306LCRYPTO_ALIAS(EC_GROUP_have_precompute_mult);
1254 1307
1255int 1308int
1256ec_group_simple_order_bits(const EC_GROUP *group) 1309ec_group_simple_order_bits(const EC_GROUP *group)
@@ -1283,3 +1336,4 @@ ECParameters_dup(EC_KEY *key)
1283 1336
1284 return dup; 1337 return dup;
1285} 1338}
1339LCRYPTO_ALIAS(ECParameters_dup);
diff --git a/src/lib/libcrypto/ec/ec_oct.c b/src/lib/libcrypto/ec/ec_oct.c
index f9de2f13a1..b9bc62a4e3 100644
--- a/src/lib/libcrypto/ec/ec_oct.c
+++ b/src/lib/libcrypto/ec/ec_oct.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_oct.c,v 1.14 2023/05/04 06:45:51 tb Exp $ */ 1/* $OpenBSD: ec_oct.c,v 1.15 2023/07/07 13:54:45 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 */
@@ -99,6 +99,7 @@ EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point,
99 99
100 return ret; 100 return ret;
101} 101}
102LCRYPTO_ALIAS(EC_POINT_set_compressed_coordinates);
102 103
103int 104int
104EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *point, 105EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
@@ -106,6 +107,7 @@ EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
106{ 107{
107 return EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx); 108 return EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx);
108} 109}
110LCRYPTO_ALIAS(EC_POINT_set_compressed_coordinates_GFp);
109 111
110size_t 112size_t
111EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, 113EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point,
@@ -136,6 +138,7 @@ EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point,
136 138
137 return ret; 139 return ret;
138} 140}
141LCRYPTO_ALIAS(EC_POINT_point2oct);
139 142
140int 143int
141EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, 144EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point,
@@ -165,3 +168,4 @@ EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point,
165 168
166 return ret; 169 return ret;
167} 170}
171LCRYPTO_ALIAS(EC_POINT_oct2point);
diff --git a/src/lib/libcrypto/ec/ec_print.c b/src/lib/libcrypto/ec/ec_print.c
index da33c4eccd..312770f66c 100644
--- a/src/lib/libcrypto/ec/ec_print.c
+++ b/src/lib/libcrypto/ec/ec_print.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_print.c,v 1.12 2023/06/23 10:34:16 tb Exp $ */ 1/* $OpenBSD: ec_print.c,v 1.13 2023/07/07 13:54:45 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -81,6 +81,7 @@ EC_POINT_point2bn(const EC_GROUP *group, const EC_POINT *point,
81 81
82 return ret; 82 return ret;
83} 83}
84LCRYPTO_ALIAS(EC_POINT_point2bn);
84 85
85EC_POINT * 86EC_POINT *
86EC_POINT_bn2point(const EC_GROUP *group, 87EC_POINT_bn2point(const EC_GROUP *group,
@@ -117,6 +118,7 @@ EC_POINT_bn2point(const EC_GROUP *group,
117 free(buf); 118 free(buf);
118 return ret; 119 return ret;
119} 120}
121LCRYPTO_ALIAS(EC_POINT_bn2point);
120 122
121static const char *HEX_DIGITS = "0123456789ABCDEF"; 123static const char *HEX_DIGITS = "0123456789ABCDEF";
122 124
@@ -159,6 +161,7 @@ EC_POINT_point2hex(const EC_GROUP *group, const EC_POINT *point,
159 161
160 return ret; 162 return ret;
161} 163}
164LCRYPTO_ALIAS(EC_POINT_point2hex);
162 165
163EC_POINT * 166EC_POINT *
164EC_POINT_hex2point(const EC_GROUP *group, const char *buf, 167EC_POINT_hex2point(const EC_GROUP *group, const char *buf,
@@ -176,3 +179,4 @@ EC_POINT_hex2point(const EC_GROUP *group, const char *buf,
176 179
177 return ret; 180 return ret;
178} 181}
182LCRYPTO_ALIAS(EC_POINT_hex2point);
diff --git a/src/lib/libcrypto/ec/eck_prn.c b/src/lib/libcrypto/ec/eck_prn.c
index f65b74518b..6e89bfa739 100644
--- a/src/lib/libcrypto/ec/eck_prn.c
+++ b/src/lib/libcrypto/ec/eck_prn.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: eck_prn.c,v 1.27 2023/07/06 15:18:02 tb Exp $ */ 1/* $OpenBSD: eck_prn.c,v 1.28 2023/07/07 13:54:45 beck Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -86,6 +86,7 @@ ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off)
86 BIO_free(b); 86 BIO_free(b);
87 return (ret); 87 return (ret);
88} 88}
89LCRYPTO_ALIAS(ECPKParameters_print_fp);
89 90
90int 91int
91EC_KEY_print_fp(FILE *fp, const EC_KEY *x, int off) 92EC_KEY_print_fp(FILE *fp, const EC_KEY *x, int off)
@@ -102,6 +103,7 @@ EC_KEY_print_fp(FILE *fp, const EC_KEY *x, int off)
102 BIO_free(b); 103 BIO_free(b);
103 return (ret); 104 return (ret);
104} 105}
106LCRYPTO_ALIAS(EC_KEY_print_fp);
105 107
106int 108int
107ECParameters_print_fp(FILE *fp, const EC_KEY *x) 109ECParameters_print_fp(FILE *fp, const EC_KEY *x)
@@ -118,6 +120,7 @@ ECParameters_print_fp(FILE *fp, const EC_KEY *x)
118 BIO_free(b); 120 BIO_free(b);
119 return (ret); 121 return (ret);
120} 122}
123LCRYPTO_ALIAS(ECParameters_print_fp);
121 124
122int 125int
123EC_KEY_print(BIO *bp, const EC_KEY *x, int off) 126EC_KEY_print(BIO *bp, const EC_KEY *x, int off)
@@ -136,6 +139,7 @@ EC_KEY_print(BIO *bp, const EC_KEY *x, int off)
136 EVP_PKEY_free(pk); 139 EVP_PKEY_free(pk);
137 return ret; 140 return ret;
138} 141}
142LCRYPTO_ALIAS(EC_KEY_print);
139 143
140int 144int
141ECParameters_print(BIO *bp, const EC_KEY *x) 145ECParameters_print(BIO *bp, const EC_KEY *x)
@@ -154,6 +158,7 @@ ECParameters_print(BIO *bp, const EC_KEY *x)
154 EVP_PKEY_free(pk); 158 EVP_PKEY_free(pk);
155 return ret; 159 return ret;
156} 160}
161LCRYPTO_ALIAS(ECParameters_print);
157 162
158static int 163static int
159print_bin(BIO *fp, const char *str, const unsigned char *num, 164print_bin(BIO *fp, const char *str, const unsigned char *num,
@@ -310,6 +315,7 @@ ECPKParameters_print(BIO *bp, const EC_GROUP *group, int off)
310 315
311 return ecpk_print_explicit_parameters(bp, group, off); 316 return ecpk_print_explicit_parameters(bp, group, off);
312} 317}
318LCRYPTO_ALIAS(ECPKParameters_print);
313 319
314static int 320static int
315print_bin(BIO *fp, const char *name, const unsigned char *buf, 321print_bin(BIO *fp, const char *name, const unsigned char *buf,
diff --git a/src/lib/libcrypto/ec/ecp_mont.c b/src/lib/libcrypto/ec/ecp_mont.c
index b113855603..76d1f578ee 100644
--- a/src/lib/libcrypto/ec/ecp_mont.c
+++ b/src/lib/libcrypto/ec/ecp_mont.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_mont.c,v 1.29 2023/04/11 18:58:20 jsing Exp $ */ 1/* $OpenBSD: ecp_mont.c,v 1.30 2023/07/07 13:54:45 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 */
@@ -269,3 +269,4 @@ EC_GFp_mont_method(void)
269{ 269{
270 return &ec_GFp_mont_method; 270 return &ec_GFp_mont_method;
271} 271}
272LCRYPTO_ALIAS(EC_GFp_mont_method);
diff --git a/src/lib/libcrypto/ec/ecp_smpl.c b/src/lib/libcrypto/ec/ecp_smpl.c
index d3ee9f5d92..9aa9af11f3 100644
--- a/src/lib/libcrypto/ec/ecp_smpl.c
+++ b/src/lib/libcrypto/ec/ecp_smpl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_smpl.c,v 1.45 2023/06/30 18:19:35 tb Exp $ */ 1/* $OpenBSD: ecp_smpl.c,v 1.46 2023/07/07 13:54:45 beck 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.
@@ -1604,3 +1604,4 @@ EC_GFp_simple_method(void)
1604{ 1604{
1605 return &ec_GFp_simple_method; 1605 return &ec_GFp_simple_method;
1606} 1606}
1607LCRYPTO_ALIAS(EC_GFp_simple_method);