From: Pavel TvrdĂ­k Date: Tue, 16 Jun 2015 13:13:53 +0000 (+0200) Subject: SHA256: Remove 32-bit move at the 32-bit number X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=700cf1c203cce7860fd2ba528c23084078d2f76d;p=thirdparty%2Fbird.git SHA256: Remove 32-bit move at the 32-bit number --- diff --git a/lib/sha256.c b/lib/sha256.c index 558ae6f7d..61da0f390 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;