From 700cf1c203cce7860fd2ba528c23084078d2f76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Tvrd=C3=ADk?= Date: Tue, 16 Jun 2015 15:13:53 +0200 Subject: [PATCH] SHA256: Remove 32-bit move at the 32-bit number --- lib/sha256.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sha256.c b/lib/sha256.c index 558ae6f7..61da0f39 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -298,7 +298,7 @@ sha256_final(struct sha256_context *ctx) if (sizeof t == sizeof ctx->nblocks) th = ctx->nblocks_high; else - th = ctx->nblocks >> 32; + th = 0; /* multiply by 64 to make a byte count */ lsb = t << 6;