From 7a992a593d4024ff48eadd79b4e4610f403307e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Vejpustek?= Date: Sun, 1 Sep 2024 21:01:15 +0200 Subject: [PATCH] fix(crypto): fix sign-compare warning --- crypto/aes/aescrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/aes/aescrypt.c b/crypto/aes/aescrypt.c index 4d0fcdefe6..cc0807bb46 100644 --- a/crypto/aes/aescrypt.c +++ b/crypto/aes/aescrypt.c @@ -149,7 +149,7 @@ AES_RETURN aes_xi(encrypt)(const unsigned char *in, unsigned char *out, const ae kp += N_COLS; round(fwd_rnd, b1, b0, kp); #else - { uint32_t rnd = 0; + { int rnd = 0; for(rnd = 0; rnd < (cx->inf.b[0] >> 4) - 1; ++rnd) { kp += N_COLS; @@ -283,7 +283,7 @@ AES_RETURN aes_xi(decrypt)(const unsigned char *in, unsigned char *out, const ae kp = rnd_key(1); round(inv_rnd, b1, b0, kp); #else - { uint32_t rnd = 0; + { int rnd = 0; for(rnd = 0; rnd < (cx->inf.b[0] >> 4) - 1; ++rnd) { kp = rnd_key(1);