summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec.h
diff options
context:
space:
mode:
authortb <>2021-05-10 16:55:19 +0000
committertb <>2021-05-10 16:55:19 +0000
commita7fe63ff9b37d5b21fead44579594a2d636286a4 (patch)
tree4ab0f050de8365136a20c63f5511f352ee3ebb89 /src/lib/libcrypto/ec/ec.h
parent31e410ad0505a437f680c0d1ad879c7b4f60c470 (diff)
downloadopenbsd-a7fe63ff9b37d5b21fead44579594a2d636286a4.tar.gz
openbsd-a7fe63ff9b37d5b21fead44579594a2d636286a4.tar.bz2
openbsd-a7fe63ff9b37d5b21fead44579594a2d636286a4.zip
Expose EC_GROUP_{get,set}_curve(3)
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ec.h')
-rw-r--r--src/lib/libcrypto/ec/ec.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h
index dece357d02..e8b00c8e23 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.22 2021/04/20 17:32:57 tb Exp $ */ 1/* $OpenBSD: ec.h,v 1.23 2021/05/10 16:55: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 */
@@ -280,12 +280,11 @@ unsigned char *EC_GROUP_get0_seed(const EC_GROUP *x);
280size_t EC_GROUP_get_seed_len(const EC_GROUP *); 280size_t EC_GROUP_get_seed_len(const EC_GROUP *);
281size_t EC_GROUP_set_seed(EC_GROUP *, const unsigned char *, size_t len); 281size_t EC_GROUP_set_seed(EC_GROUP *, const unsigned char *, size_t len);
282 282
283#if defined(LIBRESSL_INTERNAL)
284int EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, 283int EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
285 const BIGNUM *b, BN_CTX *ctx); 284 const BIGNUM *b, BN_CTX *ctx);
286int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, 285int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
287 BN_CTX *ctx); 286 BN_CTX *ctx);
288#else 287#if !defined(LIBRESSL_INTERNAL)
289/** Sets the parameter of a ec over GFp defined by y^2 = x^3 + a*x + b 288/** Sets the parameter of a ec over GFp defined by y^2 = x^3 + a*x + b
290 * \param group EC_GROUP object 289 * \param group EC_GROUP object
291 * \param p BIGNUM with the prime number 290 * \param p BIGNUM with the prime number