VAESEM.VV
Vector AES Encryption Middle Round
VAESEM.VV vd, vs2
Performs a middle AES encryption round.
Encoding
Binary Layout
1010001
31:25
vs2
24:20
00010010
19:12
vd
11:7
1110111
6:0
Operands
-
vd
Round state (input) and result (output) -
vs2
Round key
Example
VAESEM.VV v1, v4
Related
More in Zvkned
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
Performs one middle-round AES encryption (SubBytes, ShiftRows and MixColumns, then XOR with the round key) on each element group. Operates on each 128-bit element group (EGW=128, SEW=32). The round state comes from vd and the round key from vs2 (.vv) or from the first element group of vs2 (.vs); the result is written to vd.
Operation
vd = AES_Encrypt_Middle(vd, vs2);