summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/Symbols.list3
-rw-r--r--src/lib/libcrypto/ec/ec.h15
2 files changed, 11 insertions, 7 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index c5023001ef..c8834c5a1c 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -1130,6 +1130,7 @@ EC_POINT_dbl
1130EC_POINT_dup 1130EC_POINT_dup
1131EC_POINT_free 1131EC_POINT_free
1132EC_POINT_get_Jprojective_coordinates_GFp 1132EC_POINT_get_Jprojective_coordinates_GFp
1133EC_POINT_get_affine_coordinates
1133EC_POINT_get_affine_coordinates_GF2m 1134EC_POINT_get_affine_coordinates_GF2m
1134EC_POINT_get_affine_coordinates_GFp 1135EC_POINT_get_affine_coordinates_GFp
1135EC_POINT_hex2point 1136EC_POINT_hex2point
@@ -1145,8 +1146,10 @@ EC_POINT_point2bn
1145EC_POINT_point2hex 1146EC_POINT_point2hex
1146EC_POINT_point2oct 1147EC_POINT_point2oct
1147EC_POINT_set_Jprojective_coordinates_GFp 1148EC_POINT_set_Jprojective_coordinates_GFp
1149EC_POINT_set_affine_coordinates
1148EC_POINT_set_affine_coordinates_GF2m 1150EC_POINT_set_affine_coordinates_GF2m
1149EC_POINT_set_affine_coordinates_GFp 1151EC_POINT_set_affine_coordinates_GFp
1152EC_POINT_set_compressed_coordinates
1150EC_POINT_set_compressed_coordinates_GF2m 1153EC_POINT_set_compressed_coordinates_GF2m
1151EC_POINT_set_compressed_coordinates_GFp 1154EC_POINT_set_compressed_coordinates_GFp
1152EC_POINT_set_to_infinity 1155EC_POINT_set_to_infinity
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h
index e8b00c8e23..61b70897f9 100644
--- a/src/lib/libcrypto/ec/ec.h
+++ b/src/lib/libcrypto/ec/ec.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec.h,v 1.23 2021/05/10 16:55:19 tb Exp $ */ 1/* $OpenBSD: ec.h,v 1.24 2021/05/10 16:58:19 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 */
@@ -453,12 +453,6 @@ const EC_METHOD *EC_POINT_method_of(const EC_POINT *point);
453 */ 453 */
454int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point); 454int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);
455 455
456#if defined(LIBRESSL_INTERNAL)
457
458int EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *p,
459 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx);
460int EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group,
461 const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx);
462int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p, 456int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p,
463 const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx); 457 const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx);
464int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p, 458int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p,
@@ -466,6 +460,13 @@ int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p,
466int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p, 460int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p,
467 const BIGNUM *x, int y_bit, BN_CTX *ctx); 461 const BIGNUM *x, int y_bit, BN_CTX *ctx);
468 462
463#if defined(LIBRESSL_INTERNAL)
464
465int EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *p,
466 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx);
467int EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group,
468 const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx);
469
469#else 470#else
470 471
471/** Sets the jacobian projective coordinates of a EC_POINT over GFp 472/** Sets the jacobian projective coordinates of a EC_POINT over GFp