Webcentive RISC-V Reference

vaeskf2.vi

Vector AES-256 Forward KeySchedule generation

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

Encoding

31262524201915141211760
1010101vs2zimm5010vd1110111

Match 0xaa002077, mask 0xfe00707f. Source: vaeskf2.vi 31..26=0x2A 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-256 KeySchedule. The next round key is generated word by word from the previous round key element group in vd and the current round key element group in vs2, and is written to vd. The round number, which ranges from 2 to 14, comes from imm[3:0] and selects both the round constant and the function applied; imm[4] is ignored. The out-of-range imm[3:0] values 0-1 and 15 are mapped to in-range values by inverting imm[3].

Description from riscv-unified-db, reformatted.

Specification and related pages