summaryrefslogtreecommitdiffstats
path: root/src/crypto/mac/ghash/builtin/ghash_builtin.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-24 03:36:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-24 03:36:36 +0200
commitea609fe8c20e0310d778dfb77dee183c028d329c (patch)
tree33a54c4c03c377eb10ee5e6fbdb24a3f52ddab87 /src/crypto/mac/ghash/builtin/ghash_builtin.c
parente8296fbc9f88154830a68a0a7d53aa38f93cbd66 (diff)
downloadfastd-ea609fe8c20e0310d778dfb77dee183c028d329c.tar
fastd-ea609fe8c20e0310d778dfb77dee183c028d329c.zip
Convert few more counters to size_t, just for the sake of consistency...
Diffstat (limited to 'src/crypto/mac/ghash/builtin/ghash_builtin.c')
-rw-r--r--src/crypto/mac/ghash/builtin/ghash_builtin.c4
1 files changed, 2 insertions, 2 deletions
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)