]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
SHA256: Remove 32-bit move at the 32-bit number
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Tue, 16 Jun 2015 13:13:53 +0000 (15:13 +0200)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Wed, 17 Jun 2015 10:28:25 +0000 (12:28 +0200)
lib/sha256.c

index 558ae6f7df68c0ce80d8527cec38dffc69c6be87..61da0f3909dac52dd377b0d0d312781c29ad8a4b 100644 (file)
@@ -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;