diff options
author | tb <> | 2024-11-16 15:32:08 +0000 |
---|---|---|
committer | tb <> | 2024-11-16 15:32:08 +0000 |
commit | b4c334cf7760113f167c0d700e27fb65de2f189a (patch) | |
tree | 8ca97dd5b4dd927e82e0a93db711fbeac9268afe /src/lib/libcrypto/ec/ecp_methods.c | |
parent | 23d9a213525c4cdbc5fba2b8cf4109f087fe41d3 (diff) | |
download | openbsd-b4c334cf7760113f167c0d700e27fb65de2f189a.tar.gz openbsd-b4c334cf7760113f167c0d700e27fb65de2f189a.tar.bz2 openbsd-b4c334cf7760113f167c0d700e27fb65de2f189a.zip |
Simplify signature of ec_wNAF_mul()
The only caller passes in num = 1 and is itself called in a path that
ensures that the multiplier of the generator is != NULL. Consequently
we don't need to deal with an array of points and an array of scalars
so rename them accordingly.
In addition, the change implies that numblocks and num_scalar are now
always 1, so inline this information and take a first step towards
disentangling this gordian knot.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_methods.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_methods.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ecp_methods.c b/src/lib/libcrypto/ec/ecp_methods.c index 61f95b5bb9..1b763cf219 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.7 2024/11/12 13:09:54 tb Exp $ */ | 1 | /* $OpenBSD: ecp_methods.c,v 1.8 2024/11/16 15:32:08 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. |
@@ -1604,7 +1604,7 @@ static int | |||
1604 | ec_mul_double_nonct(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, | 1604 | ec_mul_double_nonct(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, |
1605 | const BIGNUM *p_scalar, const EC_POINT *point, BN_CTX *ctx) | 1605 | const BIGNUM *p_scalar, const EC_POINT *point, BN_CTX *ctx) |
1606 | { | 1606 | { |
1607 | return ec_wNAF_mul(group, r, g_scalar, 1, &point, &p_scalar, ctx); | 1607 | return ec_wNAF_mul(group, r, g_scalar, point, p_scalar, ctx); |
1608 | } | 1608 | } |
1609 | 1609 | ||
1610 | static void | 1610 | static void |