diff options
Diffstat (limited to 'libbb/hash_fd.c')
-rw-r--r-- | libbb/hash_fd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/hash_fd.c b/libbb/hash_fd.c index 3445a25a0..39825b378 100644 --- a/libbb/hash_fd.c +++ b/libbb/hash_fd.c | |||
@@ -212,7 +212,7 @@ static void sha1_end(unsigned char hval[], struct sha1_ctx_t *ctx) | |||
212 | ctx->wbuf[cnt++] = 0; | 212 | ctx->wbuf[cnt++] = 0; |
213 | 213 | ||
214 | /* assemble the eight byte counter in the buffer in big-endian */ | 214 | /* assemble the eight byte counter in the buffer in big-endian */ |
215 | /* format */ | 215 | /* format */ |
216 | 216 | ||
217 | ctx->wbuf[14] = swap_b32((ctx->count[1] << 3) | (ctx->count[0] >> 29)); | 217 | ctx->wbuf[14] = swap_b32((ctx->count[1] << 3) | (ctx->count[0] >> 29)); |
218 | ctx->wbuf[15] = swap_b32(ctx->count[0] << 3); | 218 | ctx->wbuf[15] = swap_b32(ctx->count[0] << 3); |
@@ -492,12 +492,12 @@ static void md5_hash_block(const void *buffer, size_t len, struct md5_ctx_t *ctx | |||
492 | 492 | ||
493 | # define OP(a, b, c, d, s, T) \ | 493 | # define OP(a, b, c, d, s, T) \ |
494 | do \ | 494 | do \ |
495 | { \ | 495 | { \ |
496 | a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ | 496 | a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ |
497 | ++words; \ | 497 | ++words; \ |
498 | CYCLIC (a, s); \ | 498 | CYCLIC (a, s); \ |
499 | a += b; \ | 499 | a += b; \ |
500 | } \ | 500 | } \ |
501 | while (0) | 501 | while (0) |
502 | 502 | ||
503 | /* It is unfortunate that C does not provide an operator for | 503 | /* It is unfortunate that C does not provide an operator for |