]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Apply suggestion from @andrewkdinh master
authorKurt Roeckx <kurt@roeckx.be>
Wed, 15 Jul 2026 13:44:38 +0000 (15:44 +0200)
committerTomas Mraz <tomas@openssl.foundation>
Wed, 29 Jul 2026 17:04:39 +0000 (19:04 +0200)
Co-authored-by: Andrew Dinh <andrewd@openssl.org>
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Wed Jul 29 17:04:49 2026
(Merged from https://github.com/openssl/openssl/pull/31957)

crypto/bn/bn_exp.c

index dfe19447c4823337e216876676414799bb38cb4b..50cec8ae5a5f03625e42beb464704669686723f8 100644 (file)
@@ -552,7 +552,7 @@ static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top,
             BN_ULONG acc = 0;
 
             for (j = 0; j < width; j++) {
-                acc |= table[j] & ((BN_ULONG)0 - (constant_time_eq_int(j, idx) & 1));
+                acc |= table[j] & value_barrier_bn((BN_ULONG)0 - (constant_time_eq_int(j, idx) & 1));
             }
 
             b->d[i] = acc;