summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ. Scott Edwards <qrw.software@gmail.com>2008-03-15 12:25:08 +0100
committerJim Meyering <meyering@redhat.com>2008-03-16 19:04:24 +0100
commitc960211fe77c360e78172109365a776836dc5802 (patch)
tree812ff84116702531023787c95f8686aac5ec9aaa
parenta5d8b18bea472801c5ab31e96032523ec54f907b (diff)
downloadcoreutils-c960211fe77c360e78172109365a776836dc5802.tar.xz
sha512_process_bytes: fix a bug in processing a buffer where length&64 != 0
* gl/lib/sha512.c (sha512_process_bytes): s/63/127/.
-rw-r--r--gl/lib/sha512.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gl/lib/sha512.c b/gl/lib/sha512.c
index e0109f80f..4a41cb061 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. */