summaryrefslogtreecommitdiff
path: root/gosthash94.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-26 10:28:57 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-26 10:28:57 +0200
commitb8bfc32ff2fe1084614332bdda4d3b7805f62da0 (patch)
tree89051484ba8b04a534128414f971115e42de7132 /gosthash94.c
parentfc05e5448e27c5436186b5c51a81772d440bf134 (diff)
downloadnettle-b8bfc32ff2fe1084614332bdda4d3b7805f62da0.tar.gz
Use size_t rather than unsigned for all hash-related functions.
Diffstat (limited to 'gosthash94.c')
-rw-r--r--gosthash94.c4
1 files changed, 2 insertions, 2 deletions
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];