SHA256SUM0

SHA-256 Sum0

SHA256SUM0 rd, rs1

Performs the Sum0 transformation function for SHA-256.

Details

SHA256SUM0 computes the sum-0 mixing function (Sigma-0 capital) for SHA-256 message scheduling.

Pseudocode Operation

R[rd] = ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22);

Example

SHA256SUM0 x10, x11

Encoding

Binary Layout
0001000
31:25
00000
24:20
rs1
19:15
001
14:12
rd
11:7
0010011
6:0
 
Format I-Type
Opcode 0x13
Extension Zk

Operands

  • rd
    Destination register (integer)
  • rs1
    Source