🔬This is a nightly-only experimental API. (
stdsimd
#48556)Available on x86 or x86-64 only.
Functions
- Performs an intermediate calculation for the next four SHA1 message values (unsigned 32-bit integers) using previous message values from
a
andb
, and returning the result. - Performs 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 inb
, and returns the result. - Calculate SHA1 state variable E after four rounds of operation from the current SHA1 state variable
a
, add that value to the scheduled values (unsigned 32-bit integers) inb
, and returns the result. - Performs four rounds of SHA1 operation using an initial SHA1 state (A,B,C,D) from
a
and some pre-computed sum of the next 4 round message values (unsigned 32-bit integers), and state variable E fromb
, and return the updated SHA1 state (A,B,C,D).FUNC
contains the logic functions and round constants. - Performs an intermediate calculation for the next four SHA256 message values (unsigned 32-bit integers) using previous message values from
a
andb
, and return the result. - Performs the final calculation for the next four SHA256 message values (unsigned 32-bit integers) using previous message values from
a
andb
, and return the result. - Performs 2 rounds of SHA256 operation using an initial SHA256 state (C,D,G,H) from
a
, an initial SHA256 state (A,B,E,F) fromb
, and a pre-computed sum of the next 2 round message values (unsigned 32-bit integers) and the corresponding round constants fromk
, and store the updated SHA256 state (A,B,E,F) in dst.