SHA256SUM0
SHA-256 Sum0
SHA256SUM0 rd, rs1
Performs the Sum0 transformation function for SHA-256.
Encoding
Binary Layout
000100000000
31:20
rs1
19:15
001
14:12
rd
11:7
0010011
6:0
Operands
-
rd
Destination register (integer) -
rs1
Source
Example
SHA256SUM0 x10, x11
// SHA-256 calculation.
Related
More in Zk
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
SHA256SUM0 computes the sum-0 mixing function (Sigma-0 capital) for SHA-256 message scheduling.
Operation
R[rd] = ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22);