X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fsec%2Fcipher%2Faes_f8.h;h=9de20ffe7b9015824bcfdfae2797561fe088cf5a;hb=5a5c329d3b79ac7cd811d072b5494c0c8a8e83ca;hp=40e9909ae4ee8c66e3f7cf1e0b7d5ad653005fab;hpb=51767a4e8dc762e230683773b7dadb87d40da456;p=bertos.git 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);