Does SM4KS use floating-point or vector registers?
No. These scalar crypto extension instructions use integer X registers.
SM4 key-schedule byte step: select an rs2[31:0] byte by bs, apply S-Box/key linear layer and rotate, then XOR rs1[31:0]
sm4ks is a Zksed SM4 key-schedule acceleration instruction for RV32 and RV64. It selects one byte from rs2[31:0] using bs, applies the SM4 S-Box and key-schedule linear layer, rotates the result to the byte position selected by bs, XORs it with rs1[31:0], and writes rd; on RV64 the 32-bit result is sign-extended to XLEN. It is used to build the SM4 key schedule, not to run the data encrypt/decrypt round directly.
This bounded model shows only official ISA-visible fields, state, and conditions; it does not model a complete cryptographic protocol or microarchitecture.
Execution context: RV32/RV64; bounded teaching data fixes both low 32-bit sources to zero.
sb_in=0x00 -> sbox=0xD6 -> y=0xC01A6BD6 -> z=0xC01A6BD6
SM4KS is a Zksed scalar cryptography instruction for SM4 key schedule byte step. This page is checked against the official scalar crypto extension, avoiding confusion among round functions, key schedule steps, and operand sources.
Understand this scenario with real code like «sm4ks a0, a1, a2, 0».
Understand this scenario with real code like «sm4ks a0, a1, a2, 0».
Understand this scenario with real code like «sm4ks a0, a1, a2, 0».
No. These scalar crypto extension instructions use integer X registers.
No. It defines one byte operation of the SM4 key schedule.