]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
x86_64: Fix incorrect w64 setup in sha256_compress_n.asm.
authorNiels Möller <nisse@lysator.liu.se>
Thu, 16 Feb 2023 19:18:59 +0000 (20:18 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 16 Feb 2023 19:18:59 +0000 (20:18 +0100)
Report and fix from Gisle Vanem.

ChangeLog
x86_64/sha256-compress-n.asm

index abc9cb4bae85ff2bc09f6aa99cb5baeaa307c570..c48b823dcb3c22124d6765e8031a026e2b2aa23b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-16  Niels Möller  <nisse@lysator.liu.se>
+
+       * x86_64/sha256-compress-n.asm: Fix incorrect w64 setup. Report
+       and fix from Gisle Vanem.
+
 2023-02-08  Niels Möller  <nisse@lysator.liu.se>
 
        * examples/nettle-benchmark.c (main): Benchmark ocb_aes128.
index e10d260c65e16b1b0ea1cc61cdaf49a01c02d127..a143a2d08b26fcabd60b10f959ca6b198474dee5 100644 (file)
@@ -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)