summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec
diff options
context:
space:
mode:
authortb <>2025-03-09 15:39:39 +0000
committertb <>2025-03-09 15:39:39 +0000
commit815dfad45fb21455544f1076aeb41edc3805817d (patch)
tree0350269e00e3241afa172f4b53ce72a231987707 /src/lib/libcrypto/ec
parent2d8c8253cb0e94323b811f37132240ab824ca624 (diff)
downloadopenbsd-815dfad45fb21455544f1076aeb41edc3805817d.tar.gz
openbsd-815dfad45fb21455544f1076aeb41edc3805817d.tar.bz2
openbsd-815dfad45fb21455544f1076aeb41edc3805817d.zip
Remove Jprojective_coordinates API
There goes another implementation detail that should never have been leaked out of the library. ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r--src/lib/libcrypto/ec/ec.h6
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c20
2 files changed, 2 insertions, 24 deletions
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h
index 6d8d9dfb07..3417df1ce9 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.52 2025/03/09 15:37:31 tb Exp $ */ 1/* $OpenBSD: ec.h,v 1.53 2025/03/09 15:39:39 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 */
@@ -172,10 +172,6 @@ int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p,
172int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p, 172int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p,
173 const BIGNUM *x, int y_bit, BN_CTX *ctx); 173 const BIGNUM *x, int y_bit, BN_CTX *ctx);
174 174
175int EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *p,
176 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx);
177int EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,
178 const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx);
179int EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *p, 175int EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *p,
180 const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx); 176 const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx);
181int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, 177int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group,
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c
index 43774d4267..b9829b6a47 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.119 2025/03/09 15:37:31 tb Exp $ */ 1/* $OpenBSD: ec_lib.c,v 1.120 2025/03/09 15:39:39 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 */
@@ -1368,24 +1368,6 @@ LCRYPTO_ALIAS(EC_POINT_mul);
1368 */ 1368 */
1369 1369
1370int 1370int
1371EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *point,
1372 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx)
1373{
1374 ECerror(ERR_R_DISABLED);
1375 return 0;
1376}
1377LCRYPTO_ALIAS(EC_POINT_set_Jprojective_coordinates_GFp);
1378
1379int
1380EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,
1381 const EC_POINT *point, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx)
1382{
1383 ECerror(ERR_R_DISABLED);
1384 return 0;
1385}
1386LCRYPTO_ALIAS(EC_POINT_get_Jprojective_coordinates_GFp);
1387
1388int
1389EC_POINTs_make_affine(const EC_GROUP *group, size_t num, EC_POINT *points[], 1371EC_POINTs_make_affine(const EC_GROUP *group, size_t num, EC_POINT *points[],
1390 BN_CTX *ctx_in) 1372 BN_CTX *ctx_in)
1391{ 1373{