From 3eb603d0d810b9298f5624aaa8a293c4b51e4b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Fri, 26 Apr 2013 09:23:44 +0200 Subject: Use size_t rather than unsigned for all cipher-related functions. --- twofish.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'twofish.c') diff --git a/twofish.c b/twofish.c index 569a6278..86530911 100644 --- a/twofish.c +++ b/twofish.c @@ -275,7 +275,7 @@ h(int k, uint8_t x, uint32_t l0, uint32_t l1, uint32_t l2, uint32_t l3) void twofish_set_key(struct twofish_ctx *context, - unsigned keysize, const uint8_t *key) + size_t keysize, const uint8_t *key) { uint8_t key_copy[32]; uint32_t m[8], s[4], t; @@ -338,7 +338,7 @@ twofish_set_key(struct twofish_ctx *context, void twofish_encrypt(const struct twofish_ctx *context, - unsigned length, + size_t length, uint8_t *ciphertext, const uint8_t *plaintext) { @@ -408,7 +408,7 @@ twofish_encrypt(const struct twofish_ctx *context, void twofish_decrypt(const struct twofish_ctx *context, - unsigned length, + size_t length, uint8_t *plaintext, const uint8_t *ciphertext) -- cgit v1.2.1