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
| 3130 | 2925 | 2420 | 1915 | 1412 | 117 | 60 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bs | 10111 | rs2 | rs1 | 000 | rd | 0110011 | |||||||||||||||||||||||||
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.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| bs | 31:30 | bs |
| rs2 | 24:20 | rs2 |
| rs1 | 19:15 | rs1 |
| rd | 11:7 | rd |
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
- The RISC-V Instruction Set Manual: src/unpriv/zk.adoc (Zk)
- The RISC-V Instruction Set Manual: src/unpriv/zk.adoc (Zkn)
- The RISC-V Instruction Set Manual: src/unpriv/zk.adoc (Zknd)
- riscv-unified-db: spec/std/isa/inst/Zknd/aes32dsmi.yaml
- Zk instruction listing
- Zkn instruction listing
- Zknd instruction listing