Skip to main content

## aes32esi

# Function aes32esi

Source

    pub fn aes32esi(rs1: u32, rs2: u32, const BS: u8) -> u32

🔬This is a nightly-only experimental API. (`riscv_ext_intrinsics` #114544)
Available on target feature `zkne` and (RISC-V RV32) only.
Expand description

AES final round encryption instruction for RV32.

This instruction sources a single byte from rs2 according to bs. To this it applies the forward AES SBox operation, before XOR’ing 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.3

## §Note

The `BS` parameter is expected to be a constant value and only the bottom 2 bits of `bs` are used.