From c960211fe77c360e78172109365a776836dc5802 Mon Sep 17 00:00:00 2001 From: "J. Scott Edwards" Date: Sat, 15 Mar 2008 12:25:08 +0100 Subject: [PATCH] sha512_process_bytes: fix a bug in processing a buffer where length&64 != 0 * gl/lib/sha512.c (sha512_process_bytes): s/63/127/. --- gl/lib/sha512.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl/lib/sha512.c b/gl/lib/sha512.c index e0109f80fa..4a41cb0613 100644 --- a/gl/lib/sha512.c +++ b/gl/lib/sha512.c @@ -345,7 +345,7 @@ sha512_process_bytes (const void *buffer, size_t len, struct sha512_ctx *ctx) if (ctx->buflen > 128) { - sha512_process_block (ctx->buffer, ctx->buflen & ~63, ctx); + sha512_process_block (ctx->buffer, ctx->buflen & ~127, ctx); ctx->buflen &= 127; /* The regions in the following copy operation cannot overlap. */ -- 2.47.3