aes32dsi
AES final round decryption instruction for RV32
Encoding
| 3130 | 2925 | 2420 | 1915 | 1412 | 117 | 60 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bs | 10101 | rs2 | rs1 | 000 | rd | 0110011 | |||||||||||||||||||||||||
Match 0x2a000033, mask 0x3e00707f. Source: aes32dsi rd rs1 rs2 bs 29..25=0b10101 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 XOR's 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/aes32dsi.yaml
- Zk instruction listing
- Zkn instruction listing
- Zknd instruction listing