From 33482fbddcf137dde9bd84ae12f2f02cbc358c78 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Wed, 15 Jul 2026 15:44:38 +0200 Subject: [PATCH] Apply suggestion from @andrewkdinh Co-authored-by: Andrew Dinh Reviewed-by: Andrew Dinh Reviewed-by: Paul Dale Reviewed-by: Eugene Syromiatnikov Reviewed-by: Tomas Mraz MergeDate: Wed Jul 29 17:04:49 2026 (Merged from https://github.com/openssl/openssl/pull/31957) --- crypto/bn/bn_exp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/bn/bn_exp.c b/crypto/bn/bn_exp.c index dfe19447c48..50cec8ae5a5 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; -- 2.47.3