SM3P0
SM3 P0 Transformation
SM3P0 rd, rs1
Performs the P0 permutation for the SM3 hash algorithm.
Encoding
Binary Layout
000100001000
31:20
rs1
19:15
001
14:12
rd
11:7
0010011
6:0
Operands
-
rd
Destination register (integer) -
rs1
Source register 1 (integer)
Example
SM3P0 t0, a0
Related
More in Zksh
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
SM3P0 applies the SM3 P0 permutation function to rs1 and writes to rd. Used in the key schedule and compression function of the Chinese SM3 hash algorithm.
Operation
rd = P0(rs1);