Revision 7acc1a27

View differences:

libavutil/aes.c
146 146

  
147 147
    for(t= 0; t < (rounds+1)*4; ) {
148 148
        for(j = 0; (j < KC) && (t < (rounds+1)*4); j++, t++)
149
            for(i = 0; i < 4; i++)
150
                a->round_key[0][t][i] = tk[j][i];
149
            memcpy(a->round_key[0][t],  tk[j], 4);
151 150

  
152 151
        for(i = 0; i < 4; i++)
153 152
                tk[0][i] ^= sbox[tk[KC-1][(i+1)&3]];

Also available in: Unified diff