From a20403123cca92c457751f335d502bdf1c36b6f7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Mar 2008 16:06:44 +0100 Subject: Undo last change. * lib/sha1.c, lib/md5.c: 63 != ~63. Reported by Andreas Schwab. --- lib/sha1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sha1.c') diff --git a/lib/sha1.c b/lib/sha1.c index 67d5c964c6..9c6c7ae393 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -217,9 +217,9 @@ sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx) if (ctx->buflen > 64) { - ctx->buflen &= 63; - sha1_process_block (ctx->buffer, ctx->buflen, ctx); + sha1_process_block (ctx->buffer, ctx->buflen & ~63, ctx); + ctx->buflen &= 63; /* The regions in the following copy operation cannot overlap. */ memcpy (ctx->buffer, &((char *) ctx->buffer)[(left_over + add) & ~63], -- cgit v1.2.1