From: Kurt Roeckx Date: Wed, 15 Jul 2026 13:44:38 +0000 (+0200) Subject: Apply suggestion from @andrewkdinh X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fopenssl.git 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) --- 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;