From 0646900621b7eebe185a365387b01ad2705af1d5 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 27 Apr 2023 07:10:05 +0000 Subject: Move EC_POINT_{get,set}_Jprojective_coordinates to ec_local.h --- src/lib/libcrypto/ec/ec.h | 9 ++------- src/lib/libcrypto/ec/ec_local.h | 13 ++++++++++--- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index 519e192bda..6b5d7b4af7 100644 --- a/src/lib/libcrypto/ec/ec.h +++ b/src/lib/libcrypto/ec/ec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec.h,v 1.40 2023/04/27 07:04:23 tb Exp $ */ +/* $OpenBSD: ec.h,v 1.41 2023/04/27 07:10:05 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -193,12 +193,7 @@ int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p, int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p, const BIGNUM *x, int y_bit, BN_CTX *ctx); -#if defined(LIBRESSL_INTERNAL) -int EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *p, - const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx); -int EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group, - const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx); -#else +#ifndef LIBRESSL_INTERNAL int EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *p, const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx); int EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 95ef6fba7c..6e799137a3 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_local.h,v 1.12 2023/04/25 19:26:45 tb Exp $ */ +/* $OpenBSD: ec_local.h,v 1.13 2023/04/27 07:10:05 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -408,8 +408,15 @@ int ossl_ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey); void *EC_KEY_get_key_method_data(EC_KEY *key, - void *(*dup_func)(void *), void (*free_func)(void *), void (*clear_free_func)(void *)); + void *(*dup_func)(void *), void (*free_func)(void *), + void (*clear_free_func)(void *)); void *EC_KEY_insert_key_method_data(EC_KEY *key, void *data, - void *(*dup_func)(void *), void (*free_func)(void *), void (*clear_free_func)(void *)); + void *(*dup_func)(void *), void (*free_func)(void *), + void (*clear_free_func)(void *)); + +int EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *p, + const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx); +int EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group, + const EC_POINT *p, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx); __END_HIDDEN_DECLS -- cgit v1.2.3-55-g6feb