summaryrefslogtreecommitdiff
path: root/x86_64
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2023-02-16 20:18:59 +0100
committerNiels Möller <nisse@lysator.liu.se>2023-02-16 20:18:59 +0100
commitd1d4505b0008752be1108171376a5e9176829f2d (patch)
tree317f244eb292e53814f0828f2cb36cb255e86691 /x86_64
parenta68f925b39ba6d43ddb2d3cb5ede389a57bec0f0 (diff)
downloadnettle-d1d4505b0008752be1108171376a5e9176829f2d.tar.gz
x86_64: Fix incorrect w64 setup in sha256_compress_n.asm.
Report and fix from Gisle Vanem.
Diffstat (limited to 'x86_64')
-rw-r--r--x86_64/sha256-compress-n.asm4
1 files changed, 2 insertions, 2 deletions
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)