Commit 0b1fd4e3 authored by michael's avatar michael

memcpy


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7469 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c0ae248d
...@@ -146,8 +146,7 @@ AVAES *av_aes_init(uint8_t *key, int key_bits) { ...@@ -146,8 +146,7 @@ AVAES *av_aes_init(uint8_t *key, int key_bits) {
for(t= 0; t < (rounds+1)*4; ) { for(t= 0; t < (rounds+1)*4; ) {
for(j = 0; (j < KC) && (t < (rounds+1)*4); j++, t++) for(j = 0; (j < KC) && (t < (rounds+1)*4); j++, t++)
for(i = 0; i < 4; i++) memcpy(a->round_key[0][t], tk[j], 4);
a->round_key[0][t][i] = tk[j][i];
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]];
......
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