diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 10:28:57 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 10:28:57 +0200 |
commit | b8bfc32ff2fe1084614332bdda4d3b7805f62da0 (patch) | |
tree | 89051484ba8b04a534128414f971115e42de7132 /umac64.c | |
parent | fc05e5448e27c5436186b5c51a81772d440bf134 (diff) | |
download | nettle-b8bfc32ff2fe1084614332bdda4d3b7805f62da0.tar.gz |
Use size_t rather than unsigned for all hash-related functions.
Diffstat (limited to 'umac64.c')
-rw-r--r-- | umac64.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -49,7 +49,7 @@ umac64_set_key (struct umac64_ctx *ctx, const uint8_t *key) void umac64_set_nonce (struct umac64_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); @@ -72,7 +72,7 @@ umac64_set_nonce (struct umac64_ctx *ctx, void umac64_update (struct umac64_ctx *ctx, - unsigned length, const uint8_t *data) + size_t length, const uint8_t *data) { MD_UPDATE (ctx, length, data, UMAC64_BLOCK, (void)0); } @@ -80,7 +80,7 @@ umac64_update (struct umac64_ctx *ctx, void umac64_digest (struct umac64_ctx *ctx, - unsigned length, uint8_t *digest) + size_t length, uint8_t *digest) { uint32_t tag[2]; uint32_t *pad; |