From: tb Date: Mon, 10 May 2021 16:55:19 +0000 (+0000) Subject: Expose EC_GROUP_{get,set}_curve(3) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ab2cd7b8220d8a0649ea0734244e2c9008dd7be8;p=openbsd Expose EC_GROUP_{get,set}_curve(3) ok jsing --- diff --git a/lib/libcrypto/Symbols.list b/lib/libcrypto/Symbols.list index ca8e371ff64..c5023001eff 100644 --- a/lib/libcrypto/Symbols.list +++ b/lib/libcrypto/Symbols.list @@ -1047,6 +1047,7 @@ EC_GROUP_get0_seed EC_GROUP_get_asn1_flag EC_GROUP_get_basis_type EC_GROUP_get_cofactor +EC_GROUP_get_curve EC_GROUP_get_curve_GF2m EC_GROUP_get_curve_GFp EC_GROUP_get_curve_name @@ -1064,6 +1065,7 @@ EC_GROUP_new_curve_GF2m EC_GROUP_new_curve_GFp EC_GROUP_precompute_mult EC_GROUP_set_asn1_flag +EC_GROUP_set_curve EC_GROUP_set_curve_GF2m EC_GROUP_set_curve_GFp EC_GROUP_set_curve_name diff --git a/lib/libcrypto/ec/ec.h b/lib/libcrypto/ec/ec.h index dece357d029..e8b00c8e23d 100644 --- a/lib/libcrypto/ec/ec.h +++ b/lib/libcrypto/ec/ec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec.h,v 1.22 2021/04/20 17:32:57 tb Exp $ */ +/* $OpenBSD: ec.h,v 1.23 2021/05/10 16:55:19 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -280,12 +280,11 @@ unsigned char *EC_GROUP_get0_seed(const EC_GROUP *x); size_t EC_GROUP_get_seed_len(const EC_GROUP *); size_t EC_GROUP_set_seed(EC_GROUP *, const unsigned char *, size_t len); -#if defined(LIBRESSL_INTERNAL) int EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx); -#else +#if !defined(LIBRESSL_INTERNAL) /** Sets the parameter of a ec over GFp defined by y^2 = x^3 + a*x + b * \param group EC_GROUP object * \param p BIGNUM with the prime number