Originally committed as revision 7493 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 18 years ago
parent 954bd264c1
commit 28b5123546
  1. 10
      libavutil/aes.c

@ -183,11 +183,11 @@ AVAES *av_aes_init(uint8_t *key, int key_bits, int decrypt) {
}
if(decrypt){
for(i=1; i<rounds; i++){
for(j=0; j<16; j++)
a->round_key[i][0][j]= sbox[a->round_key[i][0][j]];
mix(a->round_key[i], dec_multbl);
}
for(i=1; i<rounds; i++){
for(j=0; j<16; j++)
a->round_key[i][0][j]= sbox[a->round_key[i][0][j]];
mix(a->round_key[i], dec_multbl);
}
}
return a;

Loading…
Cancel
Save