Skip to content
Snippets Groups Projects
Commit 5d1b5393 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

30byte smaller object file

Originally committed as revision 7553 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 519773e3
Branches
Tags
No related merge requests found
...@@ -165,9 +165,9 @@ int av_aes_init(AVAES *a, uint8_t *key, int key_bits, int decrypt) { ...@@ -165,9 +165,9 @@ int av_aes_init(AVAES *a, uint8_t *key, int key_bits, int decrypt) {
memcpy(tk, key, KC*4); memcpy(tk, key, KC*4);
for(t= 0; t < (rounds+1)*4;) { for(t= 0; t < (rounds+1)*16;) {
memcpy(a->round_key[0][t], tk, KC*4); memcpy(a->round_key[0][0]+t, tk, KC*4);
t+= KC; t+= KC*4;
for(i = 0; i < 4; i++) for(i = 0; i < 4; i++)
tk[0][i] ^= sbox[tk[KC-1][(i+1)&3]]; tk[0][i] ^= sbox[tk[KC-1][(i+1)&3]];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment