SM3P1

SM3 P1 Transformation

SM3P1 rd, rs1

Performs the P1 permutation for the SM3 hash algorithm.

Details

SM3P1 applies the SM3 P1 permutation function to rs1 and writes to rd. Used in message expansion of the SM3 hash algorithm.

Pseudocode Operation

rd = P1(rs1);

Example

SM3P1 t0, a0

Encoding

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

Operands

  • rd
    Destination register (integer)
  • rs1
    Source register 1 (integer)