From 90767eae542f72b7069a3575bc55944cebc749b6 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 27 Mar 2015 16:49:32 +0000 Subject: Fixed the sha512 bug. rc for 2.3.3.0. --- src/libstdcrypto/sha512_final.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstdcrypto/sha512_final.c b/src/libstdcrypto/sha512_final.c index 968671b..62a6187 100644 --- a/src/libstdcrypto/sha512_final.c +++ b/src/libstdcrypto/sha512_final.c @@ -17,7 +17,7 @@ void sha512_final (SHA512Schedule *ctx, char *digest) sha512_transform(ctx, ctx->buf) ; pad = 0 ; } - byte_zero(ctx + pad, 120 - pad) ; + byte_zero(ctx->buf + pad, 120 - pad) ; uint64_pack_big((char *)ctx->buf + 120, ctx->len << 3) ; sha512_transform(ctx, ctx->buf) ; -- cgit v1.2.3