Commit 33482fbddc for openssl.org

commit 33482fbddcf137dde9bd84ae12f2f02cbc358c78
Author: Kurt Roeckx <kurt@roeckx.be>
Date:   Wed Jul 15 15:44:38 2026 +0200

    Apply suggestion from @andrewkdinh

    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)

diff --git a/crypto/bn/bn_exp.c b/crypto/bn/bn_exp.c
index dfe19447c4..50cec8ae5a 100644
--- a/crypto/bn/bn_exp.c
+++ b/crypto/bn/bn_exp.c
@@ -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;