diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-16 19:30:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-16 19:30:43 +0000 |
commit | 5d1b5393488303f39c4877d3d5a1af378409b2d0 (patch) | |
tree | 1a95e5ad4af3589ce8f928db5af461f0f7efd4e2 /libavutil | |
parent | 519773e3a593709210b833cc662027ba2cfefd7f (diff) | |
download | ffmpeg-5d1b5393488303f39c4877d3d5a1af378409b2d0.tar.gz |
30byte smaller object file
Originally committed as revision 7553 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/aes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/aes.c b/libavutil/aes.c index d5f3afe05d..4acf2fba47 100644 --- a/libavutil/aes.c +++ b/libavutil/aes.c @@ -165,9 +165,9 @@ int av_aes_init(AVAES *a, uint8_t *key, int key_bits, int decrypt) { memcpy(tk, key, KC*4); - for(t= 0; t < (rounds+1)*4;) { - memcpy(a->round_key[0][t], tk, KC*4); - t+= KC; + for(t= 0; t < (rounds+1)*16;) { + memcpy(a->round_key[0][0]+t, tk, KC*4); + t+= KC*4; for(i = 0; i < 4; i++) tk[0][i] ^= sbox[tk[KC-1][(i+1)&3]]; |