vncipherlast
Vector Inverse Cipher Last
Performs the final round of AES decryption.
Details
The vncipherlast instruction performs the final round of the AES inverse cipher operation on the intermediate State array. It applies the InvShiftRows, InvSubBytes, and AddRoundKey transformations, followed by InvMixColumns, and places the result into VSR[VRT+32].
Pseudocode Operation
Programming Note
The vncipherlast instruction is used to complete the AES inverse cipher process by applying the final transformations. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. The input State and RoundKey must be correctly loaded into VSR registers VRA+32 and VRB+32, respectively, to avoid incorrect results.
Example
Encoding
Operands
-
vD
Target -
vA
State -
vB
Round Key