ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

aes32dsmi

T1 riscv crypto insn
AES middle round decryption instruction for RV32
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zknd, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZknd, Zkt-DIT

Summary

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.

Syntax / Encoding

aes32dsmi xd, xs1, xs2, bs | xx10111xxxxxxxxxx000xxxxx0110011 (mask=0x3e00707f match=0x2e000033)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RVxx10111xxxxxxxxxx000xxxxx01100110x3e00707f / 0x2e000033

Operands

NameDescription
bsbits [31:30]
xs2bits [24:20]
xs1bits [19:15]
xdbits [11:7]

Reference Notes

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.