From ea609fe8c20e0310d778dfb77dee183c028d329c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 24 Apr 2014 03:36:36 +0200 Subject: Convert few more counters to size_t, just for the sake of consistency... --- src/crypto/mac/ghash/builtin/ghash_builtin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crypto/mac') diff --git a/src/crypto/mac/ghash/builtin/ghash_builtin.c b/src/crypto/mac/ghash/builtin/ghash_builtin.c index 981cbc6..2819109 100644 --- a/src/crypto/mac/ghash/builtin/ghash_builtin.c +++ b/src/crypto/mac/ghash/builtin/ghash_builtin.c @@ -51,7 +51,7 @@ static inline uint8_t shr(fastd_block128_t *out, const fastd_block128_t *in, int static inline void mulH_a(fastd_block128_t *x, const fastd_mac_state_t *cstate) { fastd_block128_t out = {}; - int i; + size_t i; for (i = 0; i < 16; i++) { xor_a(&out, &cstate->H[2*i][x->b[i]>>4]); xor_a(&out, &cstate->H[2*i+1][x->b[i]&0xf]); @@ -72,7 +72,7 @@ static fastd_mac_state_t* ghash_init(const uint8_t *key) { memcpy(&Hbase[0], key, sizeof(fastd_block128_t)); Rbase[0] = r; - int i; + size_t i; for (i = 1; i < 4; i++) { uint8_t carry = shr(&Hbase[i], &Hbase[i-1], 1); if (carry) -- cgit v1.2.3