_mm_sha1msg2_epu32
Classification
Other, Cryptography, CPUID Test: SHA
Header File
immintrin.h
Instruction
SHA1MSG2 xmm, xmm
Synopsis
 _mm_sha1msg2_epu32(__m128i a, __m128i b);
Description
Perform the final calculation for the next four SHA1 message values (unsigned 32-bit integers) using the intermediate result in "a" and the previous message values in "b", and store the result in "dst".
Operation
W13 := b[95:64]
W14 := b[63:32]
W15 := b[31:0]
W16 := (a[127:96] XOR W13) <<< 1
W17 := (a[95:64] XOR W14) <<< 1
W18 := (a[63:32] XOR W15) <<< 1
W19 := (a[31:0] XOR W16) <<< 1
dst[127:96] := W16
dst[95:64] := W17
dst[63:32] := W18
dst[31:0] := W19