aes.git
17 years agoAdd new testing code
Ira W. Snyder [Sun, 21 Oct 2007 23:33:44 +0000 (16:33 -0700)]
Add new testing code

Add some of the examples from the FIPS document so that we can do
step-by-step testing.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
17 years agoOptimize the ShiftRows(), InvShiftRows() and RotWord() functions
Ira W. Snyder [Fri, 19 Oct 2007 18:29:10 +0000 (11:29 -0700)]
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>
17 years agoInitial commit unoptimized
Ira W. Snyder [Fri, 19 Oct 2007 17:43:52 +0000 (10:43 -0700)]
Initial commit

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