diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec.h')
-rw-r--r-- | src/lib/libcrypto/ec/ec.h | 10 |
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 | ||
109 | EC_GROUP *EC_GROUP_new(const EC_METHOD *meth); | 109 | EC_GROUP *EC_GROUP_new(const EC_METHOD *meth); |
110 | void EC_GROUP_free(EC_GROUP *group); | 110 | void EC_GROUP_free(EC_GROUP *group); |
111 | #ifndef LIBRESSL_INTERNAL | ||
112 | void EC_GROUP_clear_free(EC_GROUP *group); | 111 | void EC_GROUP_clear_free(EC_GROUP *group); |
113 | #endif | ||
114 | 112 | ||
115 | int EC_GROUP_copy(EC_GROUP *dst, const EC_GROUP *src); | 113 | int EC_GROUP_copy(EC_GROUP *dst, const EC_GROUP *src); |
116 | EC_GROUP *EC_GROUP_dup(const EC_GROUP *src); | 114 | EC_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, | |||
145 | int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, | 143 | int 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) | ||
149 | int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, | 146 | int 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); |
151 | int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, | 148 | int 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 | ||
155 | int EC_GROUP_get_degree(const EC_GROUP *group); | 151 | int EC_GROUP_get_degree(const EC_GROUP *group); |
156 | 152 | ||
@@ -176,9 +172,7 @@ int EC_curve_nist2nid(const char *name); | |||
176 | 172 | ||
177 | EC_POINT *EC_POINT_new(const EC_GROUP *group); | 173 | EC_POINT *EC_POINT_new(const EC_GROUP *group); |
178 | void EC_POINT_free(EC_POINT *point); | 174 | void EC_POINT_free(EC_POINT *point); |
179 | #ifndef LIBRESSL_INTERNAL | ||
180 | void EC_POINT_clear_free(EC_POINT *point); | 175 | void EC_POINT_clear_free(EC_POINT *point); |
181 | #endif | ||
182 | int EC_POINT_copy(EC_POINT *dst, const EC_POINT *src); | 176 | int EC_POINT_copy(EC_POINT *dst, const EC_POINT *src); |
183 | EC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group); | 177 | EC_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, | |||
193 | int EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p, | 187 | int 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 | ||
197 | int EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *p, | 190 | int 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); |
199 | int EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group, | 192 | int 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); |
205 | int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *p, | 198 | int 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 */ | ||
208 | size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *p, | 200 | size_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); |
210 | int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p, | 202 | int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p, |