summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec.h')
-rw-r--r--src/lib/libcrypto/ec/ec.h15
1 files changed, 8 insertions, 7 deletions
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