From b8bfc32ff2fe1084614332bdda4d3b7805f62da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Fri, 26 Apr 2013 10:28:57 +0200 Subject: Use size_t rather than unsigned for all hash-related functions. --- umac128.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'umac128.c') diff --git a/umac128.c b/umac128.c index 95c90e5f..3ce0c05e 100644 --- a/umac128.c +++ b/umac128.c @@ -48,7 +48,7 @@ umac128_set_key (struct umac128_ctx *ctx, const uint8_t *key) void umac128_set_nonce (struct umac128_ctx *ctx, - unsigned nonce_length, const uint8_t *nonce) + size_t nonce_length, const uint8_t *nonce) { assert (nonce_length > 0); assert (nonce_length <= AES_BLOCK_SIZE); @@ -71,7 +71,7 @@ umac128_set_nonce (struct umac128_ctx *ctx, void umac128_update (struct umac128_ctx *ctx, - unsigned length, const uint8_t *data) + size_t length, const uint8_t *data) { MD_UPDATE (ctx, length, data, UMAC128_BLOCK, (void)0); } @@ -79,7 +79,7 @@ umac128_update (struct umac128_ctx *ctx, void umac128_digest (struct umac128_ctx *ctx, - unsigned length, uint8_t *digest) + size_t length, uint8_t *digest) { uint32_t tag[4]; unsigned i; -- cgit v1.2.1