summaryrefslogtreecommitdiff
path: root/sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'sha256.c')
-rw-r--r--sha256.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha256.c b/sha256.c
index 975d13aa..c632b7f4 100644
--- a/sha256.c
+++ b/sha256.c
@@ -116,7 +116,7 @@ sha256_write_digest(struct sha256_ctx *ctx,
/* This is slightly inefficient, as the numbers are converted to
big-endian format, and will be converted back by the compression
function. It's probably not worth the effort to fix this. */
- WRITE_UINT64(ctx->block + (SHA256_DATA_SIZE - 8), bit_count);
+ WRITE_UINT64(ctx->block + (SHA256_BLOCK_SIZE - 8), bit_count);
COMPRESS(ctx, ctx->block);
_nettle_write_be32(length, digest, ctx->state);