diff options
-rw-r--r-- | src/lib/libcrypto/ec/ec_mult.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c index 6f0499c951..598694d80a 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.38 2024/11/22 00:14:36 tb Exp $ */ | 1 | /* $OpenBSD: ec_mult.c,v 1.39 2024/11/22 00:15:38 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 | */ |
@@ -380,7 +380,7 @@ ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *m, | |||
380 | 380 | ||
381 | if (digit < 0) { | 381 | if (digit < 0) { |
382 | is_neg = 1; | 382 | is_neg = 1; |
383 | digit = 0 - digit; | 383 | digit = -digit; |
384 | } | 384 | } |
385 | 385 | ||
386 | if (is_neg != r_is_inverted) { | 386 | if (is_neg != r_is_inverted) { |