diff options
author | Jack Lloyd <[email protected]> | 2017-09-20 10:27:35 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-20 10:28:50 -0400 |
commit | d8d986085e9fabc8fa681fbe519dcd87309916c7 (patch) | |
tree | 3d48489b6e3560febbc6b4f2b5f8e611e8affd5a /src/lib/block | |
parent | 85642a8bd5a3a7f557f8041c9da9a224fcc19163 (diff) |
Correct an error in SHACAL2 x86 code in unrolled case
[ci skip]
Diffstat (limited to 'src/lib/block')
-rw-r--r-- | src/lib/block/shacal2/shacal2_x86/shacal2_x86.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/block/shacal2/shacal2_x86/shacal2_x86.cpp b/src/lib/block/shacal2/shacal2_x86/shacal2_x86.cpp index b213f1517..6cb03adef 100644 --- a/src/lib/block/shacal2/shacal2_x86/shacal2_x86.cpp +++ b/src/lib/block/shacal2/shacal2_x86/shacal2_x86.cpp @@ -35,9 +35,9 @@ void SHACAL2::x86_encrypt_blocks(const uint8_t in[], uint8_t out[], size_t block B0_1 = _mm_shuffle_epi8(_mm_unpackhi_epi64(B0_0, B0_1), MASK2); B0_0 = TMP; - TMP = _mm_shuffle_epi8(_mm_unpacklo_epi64(B0_0, B0_1), MASK2); - B0_1 = _mm_shuffle_epi8(_mm_unpackhi_epi64(B0_0, B0_1), MASK2); - B0_0 = TMP; + TMP = _mm_shuffle_epi8(_mm_unpacklo_epi64(B1_0, B1_1), MASK2); + B1_1 = _mm_shuffle_epi8(_mm_unpackhi_epi64(B1_0, B1_1), MASK2); + B1_0 = TMP; for(size_t i = 0; i != 8; ++i) { |