summaryrefslogtreecommitdiff
path: root/hmac-sha1.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-26 10:28:57 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-26 10:28:57 +0200
commitb8bfc32ff2fe1084614332bdda4d3b7805f62da0 (patch)
tree89051484ba8b04a534128414f971115e42de7132 /hmac-sha1.c
parentfc05e5448e27c5436186b5c51a81772d440bf134 (diff)
downloadnettle-b8bfc32ff2fe1084614332bdda4d3b7805f62da0.tar.gz
Use size_t rather than unsigned for all hash-related functions.
Diffstat (limited to 'hmac-sha1.c')
-rw-r--r--hmac-sha1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hmac-sha1.c b/hmac-sha1.c
index 54637d36..1c763377 100644
--- a/hmac-sha1.c
+++ b/hmac-sha1.c
@@ -31,21 +31,21 @@
void
hmac_sha1_set_key(struct hmac_sha1_ctx *ctx,
- unsigned key_length, const uint8_t *key)
+ size_t key_length, const uint8_t *key)
{
HMAC_SET_KEY(ctx, &nettle_sha1, key_length, key);
}
void
hmac_sha1_update(struct hmac_sha1_ctx *ctx,
- unsigned length, const uint8_t *data)
+ size_t length, const uint8_t *data)
{
sha1_update(&ctx->state, length, data);
}
void
hmac_sha1_digest(struct hmac_sha1_ctx *ctx,
- unsigned length, uint8_t *digest)
+ size_t length, uint8_t *digest)
{
HMAC_DIGEST(ctx, &nettle_sha1, length, digest);
}