Webcentive RISC-V Reference

aes32dsmi

AES middle round decryption instruction for RV32

Extension
Zk, Zkn, Zknd
XLEN
RV32 only
Assembly (riscv-unified-db)
aes32dsmi xd, xs1, xs2, bs
Length
32-bit

Encoding

3130292524201915141211760
bs10111rs2rs1000rd0110011

Match 0x2e000033, mask 0x3e00707f. Source: aes32dsmi rd rs1 rs2 bs 29..25=0b10111 14..12=0 6..0=0x33 in riscv-opcodes/extensions/rv32_zknd.

FieldBitsriscv-opcodes name
bs31:30bs
rs224:20rs2
rs119:15rs1
rd11:7rd

Description

Sources a single byte from xs2 according to bs. To this it applies the inverse AES SBox operation, and a partial inverse MixColumn, before XOR'ing the result with xs1. This instruction must always be implemented such that its execution latency does not depend on the data being operated on.

Description from riscv-unified-db, reformatted.

Specification and related pages