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.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h
index 9e3354df46..be3f146d46 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.46 2023/08/11 04:45:27 tb Exp $ */ 1/* $OpenBSD: ec.h,v 1.47 2024/04/10 15:01:31 beck 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 */
@@ -108,9 +108,7 @@ const EC_METHOD *EC_GFp_mont_method(void);
108 108
109EC_GROUP *EC_GROUP_new(const EC_METHOD *meth); 109EC_GROUP *EC_GROUP_new(const EC_METHOD *meth);
110void EC_GROUP_free(EC_GROUP *group); 110void EC_GROUP_free(EC_GROUP *group);
111#ifndef LIBRESSL_INTERNAL
112void EC_GROUP_clear_free(EC_GROUP *group); 111void EC_GROUP_clear_free(EC_GROUP *group);
113#endif
114 112
115int EC_GROUP_copy(EC_GROUP *dst, const EC_GROUP *src); 113int EC_GROUP_copy(EC_GROUP *dst, const EC_GROUP *src);
116EC_GROUP *EC_GROUP_dup(const EC_GROUP *src); 114EC_GROUP *EC_GROUP_dup(const EC_GROUP *src);
@@ -145,12 +143,10 @@ int EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
145int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, 143int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
146 BN_CTX *ctx); 144 BN_CTX *ctx);
147 145
148#if !defined(LIBRESSL_INTERNAL)
149int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, 146int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
150 const BIGNUM *b, BN_CTX *ctx); 147 const BIGNUM *b, BN_CTX *ctx);
151int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, 148int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a,
152 BIGNUM *b, BN_CTX *ctx); 149 BIGNUM *b, BN_CTX *ctx);
153#endif
154 150
155int EC_GROUP_get_degree(const EC_GROUP *group); 151int EC_GROUP_get_degree(const EC_GROUP *group);
156 152
@@ -176,9 +172,7 @@ int EC_curve_nist2nid(const char *name);
176 172
177EC_POINT *EC_POINT_new(const EC_GROUP *group); 173EC_POINT *EC_POINT_new(const EC_GROUP *group);
178void EC_POINT_free(EC_POINT *point); 174void EC_POINT_free(EC_POINT *point);
179#ifndef LIBRESSL_INTERNAL
180void EC_POINT_clear_free(EC_POINT *point); 175void EC_POINT_clear_free(EC_POINT *point);
181#endif
182int EC_POINT_copy(EC_POINT *dst, const EC_POINT *src); 176int EC_POINT_copy(EC_POINT *dst, const EC_POINT *src);
183EC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group); 177EC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group);
184 178
@@ -193,7 +187,6 @@ int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p,
193int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p, 187int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p,
194 const BIGNUM *x, int y_bit, BN_CTX *ctx); 188 const BIGNUM *x, int y_bit, BN_CTX *ctx);
195 189
196#ifndef LIBRESSL_INTERNAL
197int EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *p, 190int EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *p,
198 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx); 191 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx);
199int EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, 192int EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,
@@ -204,7 +197,6 @@ int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group,
204 const EC_POINT *p, BIGNUM *x, BIGNUM *y, BN_CTX *ctx); 197 const EC_POINT *p, BIGNUM *x, BIGNUM *y, BN_CTX *ctx);
205int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *p, 198int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *p,
206 const BIGNUM *x, int y_bit, BN_CTX *ctx); 199 const BIGNUM *x, int y_bit, BN_CTX *ctx);
207#endif /* !LIBRESSL_INTERNAL */
208size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *p, 200size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *p,
209 point_conversion_form_t form, unsigned char *buf, size_t len, BN_CTX *ctx); 201 point_conversion_form_t form, unsigned char *buf, size_t len, BN_CTX *ctx);
210int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p, 202int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p,