SM3P1

SM3 P1 Transformation

SM3P1 rd, rs1

Performs the P1 permutation for the SM3 hash algorithm.

Encoding

Binary Layout
000100001001
31:20
rs1
19:15
001
14:12
rd
11:7
0010011
6:0
 
Format R-Type
Opcode 0x10901013
Extension Zksh

Operands

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

Example

SM3P1 t0, a0

Related

More in Zksh

Description

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

Operation

rd = P1(rs1);