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