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
| 3126 | 25 | 2420 | 1915 | 1412 | 117 | 60 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 100010 | 1 | vs2 | zimm5 | 010 | vd | 1110111 | |||||||||||||||||||||||||
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.
| 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-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.