diff options
| author | tb <> | 2021-09-08 17:29:21 +0000 |
|---|---|---|
| committer | tb <> | 2021-09-08 17:29:21 +0000 |
| commit | bb3ed186af675577b3dc493706d7c8cceca9243d (patch) | |
| tree | 485cf97ff684d5d16d39d0844f1d400d6316796e /src/lib/libcrypto/ec/ec_lcl.h | |
| parent | e4796a9e5bd3d12ef6b7466ed42d000a6e20f786 (diff) | |
| download | openbsd-bb3ed186af675577b3dc493706d7c8cceca9243d.tar.gz openbsd-bb3ed186af675577b3dc493706d7c8cceca9243d.tar.bz2 openbsd-bb3ed186af675577b3dc493706d7c8cceca9243d.zip | |
Prepare to provide EC_GROUP_order_bits()
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lcl.h')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_lcl.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ec_lcl.h b/src/lib/libcrypto/ec/ec_lcl.h index a0343aa1d2..ced04c7e31 100644 --- a/src/lib/libcrypto/ec/ec_lcl.h +++ b/src/lib/libcrypto/ec/ec_lcl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_lcl.h,v 1.17 2021/04/20 17:32:57 tb Exp $ */ | 1 | /* $OpenBSD: ec_lcl.h,v 1.18 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 | */ |
| @@ -111,7 +111,8 @@ struct ec_method_st { | |||
| 111 | 111 | ||
| 112 | /* used by EC_GROUP_get_degree: */ | 112 | /* used by EC_GROUP_get_degree: */ |
| 113 | int (*group_get_degree)(const EC_GROUP *); | 113 | int (*group_get_degree)(const EC_GROUP *); |
| 114 | 114 | /* used by EC_GROUP_order_bits: */ | |
| 115 | int (*group_order_bits)(const EC_GROUP *); | ||
| 115 | /* used by EC_GROUP_check: */ | 116 | /* used by EC_GROUP_check: */ |
| 116 | int (*group_check_discriminant)(const EC_GROUP *, BN_CTX *); | 117 | int (*group_check_discriminant)(const EC_GROUP *, BN_CTX *); |
| 117 | 118 | ||
| @@ -282,7 +283,7 @@ void EC_EX_DATA_clear_free_data(EC_EXTRA_DATA **, | |||
| 282 | void EC_EX_DATA_free_all_data(EC_EXTRA_DATA **); | 283 | void EC_EX_DATA_free_all_data(EC_EXTRA_DATA **); |
| 283 | void EC_EX_DATA_clear_free_all_data(EC_EXTRA_DATA **); | 284 | void EC_EX_DATA_clear_free_all_data(EC_EXTRA_DATA **); |
| 284 | 285 | ||
| 285 | 286 | int ec_group_simple_order_bits(const EC_GROUP *group); | |
| 286 | 287 | ||
| 287 | struct ec_point_st { | 288 | struct ec_point_st { |
| 288 | const EC_METHOD *meth; | 289 | const EC_METHOD *meth; |
| @@ -297,8 +298,6 @@ struct ec_point_st { | |||
| 297 | int Z_is_one; /* enable optimized point arithmetics for special case */ | 298 | int Z_is_one; /* enable optimized point arithmetics for special case */ |
| 298 | } /* EC_POINT */; | 299 | } /* EC_POINT */; |
| 299 | 300 | ||
| 300 | |||
| 301 | |||
| 302 | /* method functions in ec_mult.c | 301 | /* method functions in ec_mult.c |
| 303 | * (ec_lib.c uses these as defaults if group->method->mul is 0) */ | 302 | * (ec_lib.c uses these as defaults if group->method->mul is 0) */ |
| 304 | int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, | 303 | int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, |
