1. A method of performing a process in a computer processor, comprising: executing, by the computer processor, an instruction to perform one or more Galois Field (GF) multiply by 2 operations on a state matrix, by storing rows of the state matrix in a first register, performing a GF multiply by 2 operation on each row stored in the first register, and storing the results of the GF multiply by 2 operation in a second register; and executing, by the computer processor, an instruction to combine results of the one or more GF multiply by 2 operations with exclusive or (XOR) functions to generate a result matrix.