summaryrefslogtreecommitdiff
path: root/twofish.c
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 /twofish.c
parent2b49c1792d48a99eff57a01bf31a8f5e765115c4 (diff)
downloadnettle-3eb603d0d810b9298f5624aaa8a293c4b51e4b2a.tar.gz
Use size_t rather than unsigned for all cipher-related functions.
Diffstat (limited to 'twofish.c')
-rw-r--r--twofish.c6
1 files changed, 3 insertions, 3 deletions
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)