pub unsafe fn aes32dsi(rs1: u32, rs2: u32, const BS: u8) -> u32
🔬This is a nightly-only experimental API. (
stdsimd
#48556)Available on RISC-V RV32 and target feature
zknd
only.Expand description
AES final round decryption instruction for RV32.
This instruction sources a single byte from rs2 according to bs. To this it applies the inverse AES SBox operation, and XOR’s the result with rs1. This instruction must always be implemented such that its execution latency does not depend on the data being operated on.
Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions
Version: v1.0.1
Section: 3.1
§Note
The BS
parameter is expected to be a constant value and only the bottom 2 bits of bs
are
used.
§Safety
This function is safe to use if the zknd
target feature is present.