diff options
author | tb <> | 2024-11-22 00:15:38 +0000 |
---|---|---|
committer | tb <> | 2024-11-22 00:15:38 +0000 |
commit | 042cd1d37e41c4ec9a755da7534860a7b0cb140e (patch) | |
tree | 0b5204f08583347d03bb1035ea20f5407daab6de | |
parent | 34e6d267fc84505f417418dd265c8e47888a4f1e (diff) | |
download | openbsd-042cd1d37e41c4ec9a755da7534860a7b0cb140e.tar.gz openbsd-042cd1d37e41c4ec9a755da7534860a7b0cb140e.tar.bz2 openbsd-042cd1d37e41c4ec9a755da7534860a7b0cb140e.zip |
Change 0 - digit to -digit
pointed out by jsing
-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) { |