changeset 219:26de83603cfa libavutil

30byte smaller object file
author michael
date Tue, 16 Jan 2007 19:30:43 +0000
parents 494f87dd50fa
children b842bcbc6880
files aes.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/aes.c	Tue Jan 16 19:18:50 2007 +0000
+++ b/aes.c	Tue Jan 16 19:30:43 2007 +0000
@@ -165,9 +165,9 @@
 
     memcpy(tk, key, KC*4);
 
-    for(t= 0; t < (rounds+1)*4;) {
-        memcpy(a->round_key[0][t], tk, KC*4);
-        t+= KC;
+    for(t= 0; t < (rounds+1)*16;) {
+        memcpy(a->round_key[0][0]+t, tk, KC*4);
+        t+= KC*4;
 
         for(i = 0; i < 4; i++)
             tk[0][i] ^= sbox[tk[KC-1][(i+1)&3]];