Does SM4KS use floating-point or vector registers?
No. These scalar crypto extension instructions use integer X registers.
SM4 key-schedule byte step: select a byte from rs2 by bs, apply S-Box/key linear layer, XOR with rs1
SM4KS uses opcode 0110011 (0x33), funct3 000, funct7 0011010. The rs1 and rs2 fields select the two source registers, and rd selects the destination register.
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.
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 is a low-level step from AES, SHA, SM3, or SM4; software still combines instructions with the algorithm schedule, round constants, or round keys.