Patent ID: 7260217

Claim:
A computer-implemented method executing in a processor, the method comprising: receiving a request to perform for data ciphering of plaintext; and processing the request based on a data structure stored in a memory coupled to the processor, wherein the processing comprises, performing a first access of data from the data structure; swapping the data from the first access; data ciphering a first portion of the plaintext based on the swapped data from the first access; performing a second access of data from the data structure prior to the swapping of the data from the first access; performing the following, upon determining that the data from the first access does not equal the data from the second access, swapping the data from the second access; and data ciphering a second portion of the plaintext based on the swapped data from the second access in an iteration including data ciphering a first portion of the plaintext based on the swapped data from the first access; and performing the following, upon determining that the data from the first access equals data from the second access, reexecuting the performing of the second access of data from the data structure in an iteration that is subsequent to determining that the data from the first access does not equal the data from the second access; swapping the data from the second access; and data ciphering the second portion of the plaintext based on the swapped data from the second access.