Commit 28b51235 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files


Originally committed as revision 7493 to svn://
parent 954bd264
...@@ -183,11 +183,11 @@ AVAES *av_aes_init(uint8_t *key, int key_bits, int decrypt) { ...@@ -183,11 +183,11 @@ AVAES *av_aes_init(uint8_t *key, int key_bits, int decrypt) {
} }
if(decrypt){ if(decrypt){
for(i=1; i<rounds; i++){ for(i=1; i<rounds; i++){
for(j=0; j<16; j++) for(j=0; j<16; j++)
a->round_key[i][0][j]= sbox[a->round_key[i][0][j]]; a->round_key[i][0][j]= sbox[a->round_key[i][0][j]];
mix(a->round_key[i], dec_multbl); mix(a->round_key[i], dec_multbl);
} }
} }
return a; return a;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment