summaryrefslogtreecommitdiff
path: root/nettle-types.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-26 09:23:44 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-26 09:23:44 +0200
commit3eb603d0d810b9298f5624aaa8a293c4b51e4b2a (patch)
treedfc2ec4ca53377b1735d507bc1c8ba3a249aa5b1 /nettle-types.h
parent2b49c1792d48a99eff57a01bf31a8f5e765115c4 (diff)
downloadnettle-3eb603d0d810b9298f5624aaa8a293c4b51e4b2a.tar.gz
Use size_t rather than unsigned for all cipher-related functions.
Diffstat (limited to 'nettle-types.h')
-rw-r--r--nettle-types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/nettle-types.h b/nettle-types.h
index 4d5e38ab..5f7738e7 100644
--- a/nettle-types.h
+++ b/nettle-types.h
@@ -44,7 +44,7 @@ typedef void *nettle_realloc_func(void *ctx, void *p, unsigned length);
/* Ciphers */
typedef void nettle_set_key_func(void *ctx,
- unsigned length,
+ size_t length,
const uint8_t *key);
/* Uses a void * for cipher contexts.
@@ -54,7 +54,7 @@ typedef void nettle_set_key_func(void *ctx,
internal state changes during the encryption. */
typedef void nettle_crypt_func(void *ctx,
- unsigned length, uint8_t *dst,
+ size_t length, uint8_t *dst,
const uint8_t *src);
/* Hash algorithms */