diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-08 01:01:34 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-08 01:01:34 +0200 |
commit | 6fc8acec8f0b60a90079bede17c6d0a5e2503b9e (patch) | |
tree | 81c7cf96cf2872a1271f3887e6f6f8d625d095ec | |
parent | Fix warnings (diff) | |
download | libsha1-6fc8acec8f0b60a90079bede17c6d0a5e2503b9e.tar.gz libsha1-6fc8acec8f0b60a90079bede17c6d0a5e2503b9e.tar.bz2 libsha1-6fc8acec8f0b60a90079bede17c6d0a5e2503b9e.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | process.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |