diff options
author | Niels Möller <nisse@lysator.liu.se> | 2018-02-07 06:42:08 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2018-02-08 18:13:23 +0100 |
commit | 0413811acfa56f4b547070dee3bf4c0c3e8fdf00 (patch) | |
tree | d697bee4b395ea247896ffeaee323d3e09218550 | |
parent | 97729f5e61365d98824584998b2bb9d575814c7f (diff) | |
download | nettle-0413811acfa56f4b547070dee3bf4c0c3e8fdf00.tar.gz |
Add missing pshufd.
-rw-r--r-- | x86_64/sha_ni/sha1-compress.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/x86_64/sha_ni/sha1-compress.asm b/x86_64/sha_ni/sha1-compress.asm index 3eb73366..f0097eef 100644 --- a/x86_64/sha_ni/sha1-compress.asm +++ b/x86_64/sha_ni/sha1-compress.asm @@ -72,6 +72,8 @@ PROLOGUE(_nettle_sha1_compress) movd 16(STATE), E0 movups (INPUT), MSG0 movdqa .Lswap_mask(%rip), SWAP_MASK + pshufd $0x1b, ABCD, ABCD + pshufd $0x1b, E0, E0 movdqa ABCD, ABCD_ORIG movdqa E0, E_ORIG pshufb SWAP_MASK, MSG0 @@ -136,7 +138,9 @@ PROLOGUE(_nettle_sha1_compress) sha1nexte E_ORIG, E0 paddd ABCD_ORIG, ABCD + pshufd $0x1b, ABCD, ABCD movups ABCD, (STATE) + pshufd $0x1b, E0, E0 movd E0, 16(STATE) W64_EXIT(2, 10) |