From 6fc8acec8f0b60a90079bede17c6d0a5e2503b9e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 Jul 2022 01:01:34 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process.c b/process.c index a60942c..43f299e 100644 --- a/process.c +++ b/process.c @@ -260,8 +260,9 @@ process_x86_sha(struct libsha1_state *restrict state, const unsigned char *restr abcd_orig = _mm_add_epi32(abcd, abcd_orig); } - _mm_storeu_si128((__m128i *)&state->h[0], _mm_shuffle_epi32(abcd_orig, 32 - 5)); + abcd_orig = _mm_shuffle_epi32(abcd_orig, 32 - 5); state->h[4] = (uint_least32_t)_mm_extract_epi32(e000_orig, 3); + _mm_storeu_si128((__m128i *)&state->h[0], abcd_orig); return off; } -- cgit v1.2.3-70-g09d2