diff aes.c @ 172:96094ee43c14 libavutil

memcpy
author michael
date Sun, 14 Jan 2007 13:37:19 +0000
parents acc949f04f7a
children 712b0f43e8ac
line wrap: on
line diff
--- a/aes.c	Sun Jan 14 13:30:37 2007 +0000
+++ b/aes.c	Sun Jan 14 13:37:19 2007 +0000
@@ -146,8 +146,7 @@
 
     for(t= 0; t < (rounds+1)*4; ) {
         for(j = 0; (j < KC) && (t < (rounds+1)*4); j++, t++)
-            for(i = 0; i < 4; i++)
-                a->round_key[0][t][i] = tk[j][i];
+            memcpy(a->round_key[0][t],  tk[j], 4);
 
         for(i = 0; i < 4; i++)
                 tk[0][i] ^= sbox[tk[KC-1][(i+1)&3]];