1. A machine-readable non-transitory storage medium having stored thereon an instruction, which when executed by a machine causes the machine to perform a method comprising: determining from a first operand of the instruction an Advanced Encryption Standard (AES) encryption mode by which to encrypt data; applying an exclusive OR operation to the first operand of the instruction and a second operand of the instruction to produce a combined result and encrypting the combined result using a key in accordance with the determined AES encryption mode to produce an encrypted result; and placing the encrypted result in a memory location of the first operand of the instruction.