← Home

SHA256H2

SHA-256 hash update (part 2)

This instruction reads the eight 32-bit words of the SHA-256 working state from the first and second source vectors, together with four 32-bit values from the third source vector, each containing the sum of a message schedule word and the corresponding round constant. The two halves of the working state are supplied in the opposite order to SHA256H. The working state undergoes four rounds of the SHA-256 hash computation in accordance with the SHA-256 standard. The updated second half of the working state is destructively placed in the first source vector.

Advanced SIMD class

(FEAT_SHA256)

313029282726252423222120191817161514131211109876543210
01011110000Rm010100RnRd
sizeP

Encoding

SHA256H2 <Qd>, <Qn>, <Vm>.4S

Decode

if !IsFeatureImplemented(FEAT_SHA256) then EndOfDecode(Decode_UNDEF); end; let d : integer{} = UInt(Rd); let n : integer{} = UInt(Rn); let m : integer{} = UInt(Rm);

Assembler Symbols

<Qd>

Is the 128-bit name of the SIMD&FP source and destination, encoded in the "Rd" field.

<Qn>

Is the 128-bit name of the second SIMD&FP source register, encoded in the "Rn" field.

<Vm>

Is the name of the third SIMD&FP source register, encoded in the "Rm" field.

Operation

AArch64_CheckFPAdvSIMDEnabled(); let part1 : boolean = FALSE; V{128}(d) = SHA256hash(V{128}(n), V{128}(d), V{128}(m), part1);

Operational information

This instruction is a data-independent-time instruction as described in About PSTATE.DIT.


Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.

This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.