diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-14 12:40:32 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-14 12:40:32 +0000 |
commit | e8fc93136d0c0429ef7afc4820815c19093aa2ee (patch) | |
tree | e33f217b02363fd6b99c5322af6df6650641b7c1 /libavutil/aes.c | |
parent | d43a297579c013e6555d20ed92a02f1488a0e15b (diff) | |
download | ffmpeg-e8fc93136d0c0429ef7afc4820815c19093aa2ee.tar.gz |
stealing reimars XOR_BLOCK
Originally committed as revision 7464 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/aes.c')
-rw-r--r-- | libavutil/aes.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavutil/aes.c b/libavutil/aes.c index 233fbec119..8a20bdd5b5 100644 --- a/libavutil/aes.c +++ b/libavutil/aes.c @@ -40,10 +40,9 @@ static uint8_t alog8[512]; static uint8_t sbox[256]; static uint8_t inv_sbox[256]; -static inline void addkey(uint32_t state[4], uint32_t round_key[4]){ - int i; - for(i=0; i<4; i++) - state[i] ^= round_key[i]; //partial memory stall? FIXME benchmark +static inline void addkey(uint64_t state[2], uint64_t round_key[2]){ + state[0] ^= round_key[0]; + state[1] ^= round_key[1]; } #define SUBSHIFT0(s, box) s[0]=box[s[ 0]]; s[ 4]=box[s[ 4]]; s[ 8]=box[s[ 8]]; s[12]=box[s[12]]; |