AESENCWIDE128KL—Perform Ten Rounds of AES Encryption Flow with Key Locker on 8 Blocks Using 128-Bit KeyInstruction Operand EncodingDescriptionThe AESENCWIDE128KL1 instruction performs ten rounds of AES to encrypt each of the eight blocks in XMM0-7 using the 128-bit key indicated by the handle from the second operand. It replaces each input block in XMM0-7 with its corresponding encrypted block if the operation succeeds (e.g., does not run into a handle violation failure).OperationAESENCWIDE128KL Handle := UnalignedLoad of 384 bit (SRC); // Load is not guaranteed to be atomic.Illegal Handle = (HandleReservedBitSet (Handle) ||(Handle[0] AND (CPL > 0)) ||Handle [1] ||HandleKeyType (Handle) != HANDLE_KEY_TYPE_AES128);IF (Illegal Handle) THEN RFLAGS.ZF := 1;ELSE (UnwrappedKey, Authentic) := UnwrapKeyAndAuthenticate384 (Handle[383:0], IWKey);IF Authentic == 0 THEN RFLAGS.ZF := 1;ELSE XMM0 := AES128Encrypt (XMM0, UnwrappedKey) ;XMM1 := AES128Encrypt (XMM1, UnwrappedKey) ;XMM2 := AES128Encrypt (XMM2, UnwrappedKey) ;XMM3 := AES128Encrypt (XMM3, UnwrappedKey) ;XMM4 := AES128Encrypt (XMM4, UnwrappedKey) ;XMM5 := AES128Encrypt (XMM5, UnwrappedKey) ;XMM6 := AES128Encrypt (XMM6, UnwrappedKey) ;XMM7 := AES128Encrypt (XMM7, UnwrappedKey) ;RFLAGS.ZF := 0;FI;FI;RFLAGS.OF, SF, AF, PF, CF := 0;Opcode/InstructionOp/ En64/32-bit ModeCPUID Feature FlagDescriptionF3 0F 38 D8 !(11):000:bbb AESENCWIDE128KL m384, <XMM0-7>AV/VAESKLE WIDE_KLEncrypt XMM0-7 using 128-bit AES key indicated by handle at m384 and store each resultant block back to its corresponding register.Op/EnTupleOperand 1Operands 2 - 9ANAModRM:r/m (r)Implicit XMM0-7 (r, w)1.Further details on Key Locker and usage of this instruction can be found here:https://software.intel.com/content/www/us/en/develop/download/intel-key-locker-specification.html.
This UNOFFICIAL reference was generated from the official Intel® 64 and IA-32 Architectures Software Developer’s Manual by a dumb script. There is no guarantee that some parts aren't mangled or broken and is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.