summaryrefslogtreecommitdiff
path: root/cast128.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 /cast128.c
parent2b49c1792d48a99eff57a01bf31a8f5e765115c4 (diff)
downloadnettle-3eb603d0d810b9298f5624aaa8a293c4b51e4b2a.tar.gz
Use size_t rather than unsigned for all cipher-related functions.
Diffstat (limited to 'cast128.c')
-rw-r--r--cast128.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cast128.c b/cast128.c
index 512c55d2..ca7faac4 100644
--- a/cast128.c
+++ b/cast128.c
@@ -72,7 +72,7 @@
void
cast128_encrypt(const struct cast128_ctx *ctx,
- unsigned length, uint8_t *dst,
+ size_t length, uint8_t *dst,
const uint8_t *src)
{
FOR_BLOCKS(length, dst, src, CAST128_BLOCK_SIZE)
@@ -116,7 +116,7 @@ cast128_encrypt(const struct cast128_ctx *ctx,
void
cast128_decrypt(const struct cast128_ctx *ctx,
- unsigned length, uint8_t *dst,
+ size_t length, uint8_t *dst,
const uint8_t *src)
{
FOR_BLOCKS(length, dst, src, CAST128_BLOCK_SIZE)
@@ -161,7 +161,7 @@ cast128_decrypt(const struct cast128_ctx *ctx,
void
cast128_set_key(struct cast128_ctx *ctx,
- unsigned keybytes, const uint8_t *rawkey)
+ size_t keybytes, const uint8_t *rawkey)
{
uint32_t t[4], z[4], x[4];
unsigned i;