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