Optimize the ShiftRows(), InvShiftRows() and RotWord() functions
authorIra W. Snyder <devel@irasnyder.com>
Fri, 19 Oct 2007 18:29:10 +0000 (11:29 -0700)
committerIra W. Snyder <devel@irasnyder.com>
Fri, 19 Oct 2007 18:29:10 +0000 (11:29 -0700)
commit5284b7aa8b74cb975fbd1a2b47b0c201cc283274
treee397086b78885dcc2830abc82062f858f16806bc
parentc22feadcd68a2702846bc5d9542f171b64d0ecd2
Optimize the ShiftRows(), InvShiftRows() and RotWord() functions

This switches from using self-defined circular_left_shift() and
circular_right_shift() functions to do rotation of a word to using
shifts. This is a measurable amount faster than making all of the copies
that were being made before.

Note that this can get better, I just need to figure out how to get back a
word from a byteArray.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
aes.cpp