SM3P0
SM3 P0 Transformation
SM3P0 rd, rs1
Performs the P0 permutation for the SM3 hash algorithm.
Details
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.
Pseudocode Operation
rd = P0(rs1);
Example
SM3P0 t0, a0
Encoding
Binary Layout
0001000
31:25
01000
24:20
rs1
19:15
001
14:12
rd
11:7
0010011
6:0
Operands
-
rd
Destination register (integer) -
rs1
Source register 1 (integer)