From 5a5c329d3b79ac7cd811d072b5494c0c8a8e83ca Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 1 Sep 2011 08:18:12 +0000 Subject: [PATCH] Silent warnings. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5006 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/sec/cipher/aes_f8.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bertos/sec/cipher/aes_f8.h b/bertos/sec/cipher/aes_f8.h index 40e9909a..9de20ffe 100644 --- a/bertos/sec/cipher/aes_f8.h +++ b/bertos/sec/cipher/aes_f8.h @@ -357,7 +357,7 @@ static void AES_expandKey(BlockCipher *c_, const void *key, size_t len) ASSERT(len == c->c.key_len); uint8_t tmp0, tmp1, tmp2, tmp3, tmp4; - uint32_t idx, idx_mod_nk, idx_div_nk; + int idx, idx_mod_nk, idx_div_nk; int Nk = c->c.key_len/4; int Nr = c->num_rounds; @@ -400,7 +400,7 @@ static void AES_expandKey(BlockCipher *c_, const void *key, size_t len) static void AES_encrypt(BlockCipher *c_, void *block) { AES_Context *c = (AES_Context *)c_; - uint8_t Nr = c->num_rounds; + uint32_t Nr = c->num_rounds; uint32_t round; AddRoundKey (block, c->expkey); -- 2.25.1