mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
SHA256: Remove 32-bit move at the 32-bit number
This commit is contained in:
parent
c40185a176
commit
700cf1c203
@ -298,7 +298,7 @@ sha256_final(struct sha256_context *ctx)
|
|||||||
if (sizeof t == sizeof ctx->nblocks)
|
if (sizeof t == sizeof ctx->nblocks)
|
||||||
th = ctx->nblocks_high;
|
th = ctx->nblocks_high;
|
||||||
else
|
else
|
||||||
th = ctx->nblocks >> 32;
|
th = 0;
|
||||||
|
|
||||||
/* multiply by 64 to make a byte count */
|
/* multiply by 64 to make a byte count */
|
||||||
lsb = t << 6;
|
lsb = t << 6;
|
||||||
|
Loading…
Reference in New Issue
Block a user