Skip to content

Commit

Permalink
fix(crypto): fix sign-compare warning
Browse files Browse the repository at this point in the history
  • Loading branch information
onvej-sl committed Sep 9, 2024
1 parent fa79786 commit a3e1281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/aes/aescrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a3e1281

Please sign in to comment.