summaryrefslogtreecommitdiff
path: root/gosthash94.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-04-25 22:12:36 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-04-25 22:12:36 +0200
commitd22bac823e653bb6b04079e7ad1e8bc06a2342ca (patch)
tree451ebe588182ea671653fcfdbb434808f969c5d3 /gosthash94.c
parent1e79b7221f9883530a5c6459e2018b887e39d314 (diff)
downloadnettle-d22bac823e653bb6b04079e7ad1e8bc06a2342ca.tar.gz
Rename *_DATA_SIZE to *_BLOCK_SIZE.
Diffstat (limited to 'gosthash94.c')
-rw-r--r--gosthash94.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gosthash94.c b/gosthash94.c
index a671b4fe..e60c9ae5 100644
--- a/gosthash94.c
+++ b/gosthash94.c
@@ -533,7 +533,7 @@ gosthash94_update (struct gosthash94_ctx *ctx,
/* fill partial block */
if (index)
{
- unsigned left = GOSTHASH94_DATA_SIZE - index;
+ unsigned left = GOSTHASH94_BLOCK_SIZE - index;
memcpy (ctx->message + index, msg, (length < left ? length : left));
if (length < left)
return;
@@ -543,11 +543,11 @@ gosthash94_update (struct gosthash94_ctx *ctx,
msg += left;
length -= left;
}
- while (length >= GOSTHASH94_DATA_SIZE)
+ while (length >= GOSTHASH94_BLOCK_SIZE)
{
gost_compute_sum_and_hash (ctx, msg);
- msg += GOSTHASH94_DATA_SIZE;
- length -= GOSTHASH94_DATA_SIZE;
+ msg += GOSTHASH94_BLOCK_SIZE;
+ length -= GOSTHASH94_BLOCK_SIZE;
}
if (length)
{