diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-14 13:47:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-14 13:47:15 +0000 |
commit | b1e5c29485dcb32d8ba0a56396ce89e15f6733fc (patch) | |
tree | 803bb66c5c34944bca669cc83e3428c42c91fbf4 | |
parent | ba554c025e55edd3d7c194a421242b03620d8796 (diff) | |
download | ffmpeg-b1e5c29485dcb32d8ba0a56396ce89e15f6733fc.tar.gz |
cosmetic
Originally committed as revision 7472 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavutil/aes.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavutil/aes.c b/libavutil/aes.c index 090ecd234d..41b7cac562 100644 --- a/libavutil/aes.c +++ b/libavutil/aes.c @@ -153,10 +153,9 @@ AVAES *av_aes_init(uint8_t *key, int key_bits) { for(j = 1; j < KC; j++){ if(KC != 8 || j != KC/2) - for(i = 0; i < 4; i++) tk[j][i] ^= tk[j-1][i]; + for(i = 0; i < 4; i++) tk[j][i] ^= tk[j-1][i]; else - for(i = 0; i < 4; i++) - tk[KC/2][i] ^= sbox[tk[KC/2 - 1][i]]; + for(i = 0; i < 4; i++) tk[j][i] ^= sbox[tk[j-1][i]]; } } return a; |