Does SM4ED use floating-point or vector registers?
No. These scalar crypto extension instructions use integer X registers.
SM4 encrypt/decrypt byte step: select an rs2[31:0] byte by bs, apply S-Box/data linear layer and rotate, then XOR rs1[31:0]
sm4ed is a Zksed SM4 encrypt/decrypt round-function acceleration instruction for RV32 and RV64. It selects one byte from rs2[31:0] using bs, applies the SM4 S-Box and data-round 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.
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=0x5B5BD58E -> z=0x5B5BD58E
SM4ED is a Zksed scalar cryptography instruction for SM4 encrypt/decrypt round 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 «sm4ed a0, a1, a2, 0».
Understand this scenario with real code like «sm4ed a0, a1, a2, 0».
No. These scalar crypto extension instructions use integer X registers.
No. It defines one byte operation of the SM4 encrypt/decrypt round function.