diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-02-12 10:48:12 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-02-12 15:12:06 +0100 |
commit | 6759ae55765b818fecd70d08c03e5c93cf8a49d5 (patch) | |
tree | b5ef7ee7371b1d2ad3298757b1b065276e6be637 /lib/nettle | |
parent | 3e958602b907584f4c34af68820f1c2e37194dd8 (diff) | |
download | gnutls-6759ae55765b818fecd70d08c03e5c93cf8a49d5.tar.gz |
nettle: use the correct type for hash and MAC functions
Diffstat (limited to 'lib/nettle')
-rw-r--r-- | lib/nettle/mac.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 <nettle/umac.h> #include <fips.h> -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(); |