From f7ea8fca67e1249202c4fbe00bb8d43dd1609bd5 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Wed, 2 Jul 2025 15:50:51 -0400 Subject: [PATCH] Explicitly declare dilithium_coeff_eta2[] as signed --- wolfcrypt/src/dilithium.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/dilithium.c b/wolfcrypt/src/dilithium.c index 0a48ab26d..904aa8eb2 100644 --- a/wolfcrypt/src/dilithium.c +++ b/wolfcrypt/src/dilithium.c @@ -2307,7 +2307,7 @@ static int dilithium_expand_a(wc_Shake* shake128, const byte* pub_seed, byte k, #define DILITHIUM_COEFF_S_VALID_ETA2(b) \ ((b) < DILITHIUM_ETA_2_MOD) -static const char dilithium_coeff_eta2[] = { +static const signed char dilithium_coeff_eta2[] = { 2, 1, 0, -1, -2, 2, 1, 0, -1, -2, 2, 1, 0, -1, -2