From: Niels Möller Date: Thu, 16 Feb 2023 19:18:59 +0000 (+0100) Subject: x86_64: Fix incorrect w64 setup in sha256_compress_n.asm. X-Git-Tag: nettle_3.9_release_20230514~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1d4505b0008752be1108171376a5e9176829f2d;p=thirdparty%2Fnettle.git x86_64: Fix incorrect w64 setup in sha256_compress_n.asm. Report and fix from Gisle Vanem. --- diff --git a/ChangeLog b/ChangeLog index abc9cb4b..c48b823d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-02-16 Niels Möller + + * x86_64/sha256-compress-n.asm: Fix incorrect w64 setup. Report + and fix from Gisle Vanem. + 2023-02-08 Niels Möller * examples/nettle-benchmark.c (main): Benchmark ocb_aes128. diff --git a/x86_64/sha256-compress-n.asm b/x86_64/sha256-compress-n.asm index e10d260c..a143a2d0 100644 --- a/x86_64/sha256-compress-n.asm +++ b/x86_64/sha256-compress-n.asm @@ -134,7 +134,7 @@ define(`NOEXPN', ` ALIGN(16) PROLOGUE(_nettle_sha256_compress_n) - W64_ENTRY(3, 0) + W64_ENTRY(4, 0) test BLOCKS, BLOCKS jz .Lend @@ -228,6 +228,6 @@ PROLOGUE(_nettle_sha256_compress_n) add $120, %rsp .Lend: mov INPUT, %rax - W64_EXIT(3, 0) + W64_EXIT(4, 0) ret EPILOGUE(_nettle_sha256_compress_n)