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
| 3126 | 25 | 2420 | 1915 | 1412 | 117 | 60 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 101010 | 1 | vs2 | zimm5 | 010 | vd | 1110111 | |||||||||||||||||||||||||
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.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| vs2 | 24:20 | vs2 |
| zimm5 | 19:15 | zimm5 |
| vd | 11:7 | vd |
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.