VAESKF2.VI

Vector AES Key Expansion 2

VAESKF2.VI vd, vs2, uimm

Generates the next round key for AES (Step 2).

Encoding

Binary Layout
1010101
31:25
vs2
24:20
zimm5
19:15
010
14:12
vd
11:7
1110111
6:0
 
Format OPIVI
Opcode 0xAA002077
Extension Zvkned

Operands

  • vd
    Destination vector register
  • vs2
    Source vector register 2
  • uimm
    Round number (2-14)

Example

VAESKF2.VI v1, v4, 4

Related

More in Zvkned

Description

Performs one round of the AES-256 key schedule: generates the next round key from the two previous round keys (vd and vs2). uimm[3:0] is the round number, 2 to 14; out-of-range values are mapped into range.

Operation

vd = AES_KeyGen_2(vs2, uimm);