diff options
author | tb <> | 2021-09-08 17:29:21 +0000 |
---|---|---|
committer | tb <> | 2021-09-08 17:29:21 +0000 |
commit | 09dc01256be118ca20e96739a541aa5ab2337cb2 (patch) | |
tree | 485cf97ff684d5d16d39d0844f1d400d6316796e /src/lib/libcrypto/ec/ec.h | |
parent | 89f6d34cf9f060f82018bcbb76af08958dbebdab (diff) | |
download | openbsd-09dc01256be118ca20e96739a541aa5ab2337cb2.tar.gz openbsd-09dc01256be118ca20e96739a541aa5ab2337cb2.tar.bz2 openbsd-09dc01256be118ca20e96739a541aa5ab2337cb2.zip |
Prepare to provide EC_GROUP_order_bits()
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ec.h')
-rw-r--r-- | src/lib/libcrypto/ec/ec.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index 61b70897f9..b1cba7d6c8 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.24 2021/05/10 16:58:19 tb Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.25 2021/09/08 17:29:21 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 | */ |
@@ -250,6 +250,10 @@ const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group); | |||
250 | */ | 250 | */ |
251 | int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx); | 251 | int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx); |
252 | 252 | ||
253 | #if defined(LIBRESSL_INTERNAL) | ||
254 | int EC_GROUP_order_bits(const EC_GROUP *group); | ||
255 | #endif | ||
256 | |||
253 | /** Gets the cofactor of a EC_GROUP | 257 | /** Gets the cofactor of a EC_GROUP |
254 | * \param group EC_GROUP object | 258 | * \param group EC_GROUP object |
255 | * \param cofactor BIGNUM to which the cofactor is copied | 259 | * \param cofactor BIGNUM to which the cofactor is copied |