aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/sha512_256.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/sha512_256.c')
-rw-r--r--src/microhttpd/sha512_256.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/sha512_256.c b/src/microhttpd/sha512_256.c
index 1eb6c061..f45883e3 100644
--- a/src/microhttpd/sha512_256.c
+++ b/src/microhttpd/sha512_256.c
@@ -475,6 +475,10 @@ MHD_SHA512_256_update (struct Sha512_256Ctx *ctx,
475 equals (count % SHA512_256_BLOCK_SIZE) for this block size. */ 475 equals (count % SHA512_256_BLOCK_SIZE) for this block size. */
476 bytes_have = (unsigned int) (ctx->count & (SHA512_256_BLOCK_SIZE - 1)); 476 bytes_have = (unsigned int) (ctx->count & (SHA512_256_BLOCK_SIZE - 1));
477 ctx->count += length; 477 ctx->count += length;
478#if SIZEOF_SIZE_T > 7
479 if (length > ctx->count)
480 ctx->count_bits_hi += 1U << 3; /* Value wrap */
481#endif /* SIZEOF_SIZE_T > 7 */
478 count_hi = ctx->count >> 61; 482 count_hi = ctx->count >> 61;
479 if (0 != count_hi) 483 if (0 != count_hi)
480 { 484 {