From: Niels Möller Date: Wed, 7 Feb 2018 05:42:08 +0000 (+0100) Subject: Add missing pshufd. X-Git-Tag: nettle_3.5rc1~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0413811acfa56f4b547070dee3bf4c0c3e8fdf00;p=thirdparty%2Fnettle.git Add missing pshufd. --- 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)