diff options
author | tb <> | 2024-12-06 15:49:37 +0000 |
---|---|---|
committer | tb <> | 2024-12-06 15:49:37 +0000 |
commit | 26b650816d89ff1a1ec83b06dc914cc231a56342 (patch) | |
tree | a9fde5c9e27c337e683318a28e89e742c73a721d /src | |
parent | eb3e08f70ebb64ce7a9848592ac4705ef64a899b (diff) | |
download | openbsd-26b650816d89ff1a1ec83b06dc914cc231a56342.tar.gz openbsd-26b650816d89ff1a1ec83b06dc914cc231a56342.tar.bz2 openbsd-26b650816d89ff1a1ec83b06dc914cc231a56342.zip |
Rename ec_wNAF_mul() to ec_wnaf_mul()
discussed with jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/ec/ec_local.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec_mult.c | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ecp_methods.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 9a5c42f866..da706d5324 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_local.h,v 1.41 2024/12/06 04:35:03 tb Exp $ */ | 1 | /* $OpenBSD: ec_local.h,v 1.42 2024/12/06 15:49:37 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 | */ |
@@ -238,7 +238,7 @@ struct ec_point_st { | |||
238 | } /* EC_POINT */; | 238 | } /* EC_POINT */; |
239 | 239 | ||
240 | /* Compute r = generator * m + point * n in non-constant time. */ | 240 | /* Compute r = generator * m + point * n in non-constant time. */ |
241 | int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, | 241 | int ec_wnaf_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, |
242 | const EC_POINT *point, const BIGNUM *n, BN_CTX *ctx); | 242 | const EC_POINT *point, const BIGNUM *n, BN_CTX *ctx); |
243 | 243 | ||
244 | int ec_group_simple_order_bits(const EC_GROUP *group); | 244 | int ec_group_simple_order_bits(const EC_GROUP *group); |
diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c index 0454a436a2..dc3997c3b8 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.52 2024/12/06 15:39:59 tb Exp $ */ | 1 | /* $OpenBSD: ec_mult.c,v 1.53 2024/12/06 15:49:37 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 | */ |
@@ -195,7 +195,7 @@ ec_compute_odd_multiples(const EC_GROUP *group, const EC_POINT *point, | |||
195 | 195 | ||
196 | /* | 196 | /* |
197 | * Bring multiples held in wnaf0 and wnaf1 simultaneously into affine form | 197 | * Bring multiples held in wnaf0 and wnaf1 simultaneously into affine form |
198 | * so that the operations in the loop in ec_wNAF_mul() can take fast paths. | 198 | * so that the operations in the loop in ec_wnaf_mul() can take fast paths. |
199 | */ | 199 | */ |
200 | 200 | ||
201 | static int | 201 | static int |
@@ -317,7 +317,7 @@ ec_wnaf_multiple(struct ec_wnaf *wnaf, signed char digit) | |||
317 | */ | 317 | */ |
318 | 318 | ||
319 | int | 319 | int |
320 | ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, | 320 | ec_wnaf_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, |
321 | const EC_POINT *point, const BIGNUM *n, BN_CTX *ctx) | 321 | const EC_POINT *point, const BIGNUM *n, BN_CTX *ctx) |
322 | { | 322 | { |
323 | struct ec_wnaf *wnaf[2] = { NULL, NULL }; | 323 | struct ec_wnaf *wnaf[2] = { NULL, NULL }; |
diff --git a/src/lib/libcrypto/ec/ecp_methods.c b/src/lib/libcrypto/ec/ecp_methods.c index b14cd0b158..50607ea216 100644 --- a/src/lib/libcrypto/ec/ecp_methods.c +++ b/src/lib/libcrypto/ec/ecp_methods.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_methods.c,v 1.12 2024/11/30 21:09:59 tb Exp $ */ | 1 | /* $OpenBSD: ecp_methods.c,v 1.13 2024/12/06 15:49:37 tb Exp $ */ |
2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> | 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> |
3 | * for the OpenSSL project. | 3 | * for the OpenSSL project. |
4 | * Includes code written by Bodo Moeller for the OpenSSL project. | 4 | * Includes code written by Bodo Moeller for the OpenSSL project. |
@@ -1523,7 +1523,7 @@ static int | |||
1523 | ec_mul_double_nonct(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, | 1523 | ec_mul_double_nonct(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, |
1524 | const BIGNUM *p_scalar, const EC_POINT *point, BN_CTX *ctx) | 1524 | const BIGNUM *p_scalar, const EC_POINT *point, BN_CTX *ctx) |
1525 | { | 1525 | { |
1526 | return ec_wNAF_mul(group, r, g_scalar, point, p_scalar, ctx); | 1526 | return ec_wnaf_mul(group, r, g_scalar, point, p_scalar, ctx); |
1527 | } | 1527 | } |
1528 | 1528 | ||
1529 | static void | 1529 | static void |