Mercurial > libavutil.hg
changeset 175:937928db9781 libavutil
cosmetic
author | michael |
---|---|
date | Sun, 14 Jan 2007 13:47:15 +0000 |
parents | 263bbdc10c1e |
children | 363f904df04d |
files | aes.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/aes.c Sun Jan 14 13:46:20 2007 +0000 +++ b/aes.c Sun Jan 14 13:47:15 2007 +0000 @@ -153,10 +153,9 @@ 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;