diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_mult.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_mult.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c index 1198a6f6b1..a3da62323a 100644 --- a/src/lib/libcrypto/ec/ec_mult.c +++ b/src/lib/libcrypto/ec/ec_mult.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_mult.c,v 1.25 2022/11/19 07:00:57 tb Exp $ */ | 1 | /* $OpenBSD: ec_mult.c,v 1.26 2022/11/19 07:29:29 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project. | 3 | * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -98,7 +98,7 @@ static void ec_pre_comp_free(void *); | |||
98 | static void ec_pre_comp_clear_free(void *); | 98 | static void ec_pre_comp_clear_free(void *); |
99 | 99 | ||
100 | static EC_PRE_COMP * | 100 | static EC_PRE_COMP * |
101 | ec_pre_comp_new(const EC_GROUP * group) | 101 | ec_pre_comp_new(const EC_GROUP *group) |
102 | { | 102 | { |
103 | EC_PRE_COMP *ret = NULL; | 103 | EC_PRE_COMP *ret = NULL; |
104 | 104 | ||
@@ -192,7 +192,7 @@ ec_pre_comp_clear_free(void *pre_) | |||
192 | * w-1 zeros away from that next non-zero digit. | 192 | * w-1 zeros away from that next non-zero digit. |
193 | */ | 193 | */ |
194 | static signed char * | 194 | static signed char * |
195 | compute_wNAF(const BIGNUM * scalar, int w, size_t * ret_len) | 195 | compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len) |
196 | { | 196 | { |
197 | int window_val; | 197 | int window_val; |
198 | int ok = 0; | 198 | int ok = 0; |
@@ -332,8 +332,8 @@ compute_wNAF(const BIGNUM * scalar, int w, size_t * ret_len) | |||
332 | * in the addition if scalar != NULL | 332 | * in the addition if scalar != NULL |
333 | */ | 333 | */ |
334 | int | 334 | int |
335 | ec_wNAF_mul(const EC_GROUP * group, EC_POINT * r, const BIGNUM * scalar, | 335 | ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, |
336 | size_t num, const EC_POINT * points[], const BIGNUM * scalars[], BN_CTX * ctx) | 336 | size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) |
337 | { | 337 | { |
338 | BN_CTX *new_ctx = NULL; | 338 | BN_CTX *new_ctx = NULL; |
339 | const EC_POINT *generator = NULL; | 339 | const EC_POINT *generator = NULL; |
@@ -722,7 +722,7 @@ ec_wNAF_mul(const EC_GROUP * group, EC_POINT * r, const BIGNUM * scalar, | |||
722 | * points[2^(w-1)*numblocks] = NULL | 722 | * points[2^(w-1)*numblocks] = NULL |
723 | */ | 723 | */ |
724 | int | 724 | int |
725 | ec_wNAF_precompute_mult(EC_GROUP * group, BN_CTX * ctx) | 725 | ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx) |
726 | { | 726 | { |
727 | const EC_POINT *generator; | 727 | const EC_POINT *generator; |
728 | EC_POINT *tmp_point = NULL, *base = NULL, **var; | 728 | EC_POINT *tmp_point = NULL, *base = NULL, **var; |
@@ -876,7 +876,7 @@ ec_wNAF_precompute_mult(EC_GROUP * group, BN_CTX * ctx) | |||
876 | 876 | ||
877 | 877 | ||
878 | int | 878 | int |
879 | ec_wNAF_have_precompute_mult(const EC_GROUP * group) | 879 | ec_wNAF_have_precompute_mult(const EC_GROUP *group) |
880 | { | 880 | { |
881 | if (EC_EX_DATA_get_data(group->extra_data, ec_pre_comp_dup, ec_pre_comp_free, ec_pre_comp_clear_free) != NULL) | 881 | if (EC_EX_DATA_get_data(group->extra_data, ec_pre_comp_dup, ec_pre_comp_free, ec_pre_comp_clear_free) != NULL) |
882 | return 1; | 882 | return 1; |