From 6759ae55765b818fecd70d08c03e5c93cf8a49d5 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 12 Feb 2016 10:48:12 +0100 Subject: nettle: use the correct type for hash and MAC functions --- lib/nettle/mac.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/nettle/mac.c') diff --git a/lib/nettle/mac.c b/lib/nettle/mac.c index 39e53793c5..311bd404a9 100644 --- a/lib/nettle/mac.c +++ b/lib/nettle/mac.c @@ -34,10 +34,10 @@ #include #include -typedef void (*update_func) (void *, unsigned, const uint8_t *); -typedef void (*digest_func) (void *, unsigned, uint8_t *); -typedef void (*set_key_func) (void *, unsigned, const uint8_t *); -typedef void (*set_nonce_func) (void *, unsigned, const uint8_t *); +typedef void (*update_func) (void *, size_t, const uint8_t *); +typedef void (*digest_func) (void *, size_t, uint8_t *); +typedef void (*set_key_func) (void *, size_t, const uint8_t *); +typedef void (*set_nonce_func) (void *, size_t, const uint8_t *); static int wrap_nettle_hash_init(gnutls_digest_algorithm_t algo, void **_ctx); @@ -85,7 +85,7 @@ struct nettle_mac_ctx { }; static void -_wrap_umac96_set_key(void *ctx, unsigned len, const uint8_t * key) +_wrap_umac96_set_key(void *ctx, size_t len, const uint8_t * key) { if (unlikely(len != 16)) abort(); @@ -93,7 +93,7 @@ _wrap_umac96_set_key(void *ctx, unsigned len, const uint8_t * key) } static void -_wrap_umac128_set_key(void *ctx, unsigned len, const uint8_t * key) +_wrap_umac128_set_key(void *ctx, size_t len, const uint8_t * key) { if (unlikely(len != 16)) abort(); -- cgit v1.2.1