Webcentive RISC-V Reference

vaeskf1.vi

Vector AES-128 Forward KeySchedule generation

Extension
Zvkn, Zvkned
XLEN
RV32 and RV64
Assembly (riscv-unified-db)
vaeskf1.vi vd, vs2, imm
Length
32-bit

Encoding

31262524201915141211760
1000101vs2zimm5010vd1110111

Match 0x8a002077, mask 0xfe00707f. Source: vaeskf1.vi 31..26=0x22 25=1 vs2 zimm5 14..12=0x2 vd 6..0=0x77 in riscv-opcodes/extensions/rv_zvkned.

FieldBitsriscv-opcodes name
vs224:20vs2
zimm519:15zimm5
vd11:7vd

Description

Performs a single round of the forward AES-128 KeySchedule. The next round key is generated word by word from the current round key element group in vs2 and is written to vd. The round number, which ranges from 1 to 10, comes from imm[3:0] and selects the round constant; imm[4] is ignored. The out-of-range imm[3:0] values 0 and 11-15 are mapped to in-range values by inverting imm[3].

Description from riscv-unified-db, reformatted.

Specification and related pages