From b8bfc32ff2fe1084614332bdda4d3b7805f62da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Fri, 26 Apr 2013 10:28:57 +0200 Subject: Use size_t rather than unsigned for all hash-related functions. --- gosthash94.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gosthash94.c') diff --git a/gosthash94.c b/gosthash94.c index ba0171b4..a671b4fe 100644 --- a/gosthash94.c +++ b/gosthash94.c @@ -525,7 +525,7 @@ gost_compute_sum_and_hash (struct gosthash94_ctx *ctx, const uint8_t *block) */ void gosthash94_update (struct gosthash94_ctx *ctx, - unsigned length, const uint8_t *msg) + size_t length, const uint8_t *msg) { unsigned index = (unsigned) ctx->length & 31; ctx->length += length; @@ -564,7 +564,7 @@ gosthash94_update (struct gosthash94_ctx *ctx, */ void gosthash94_digest (struct gosthash94_ctx *ctx, - unsigned length, uint8_t *result) + size_t length, uint8_t *result) { unsigned index = ctx->length & 31; uint32_t msg32[8]; -- cgit v1.2.1