Mercurial > libavutil.hg
comparison aes.c @ 368:99c56fd6e3f4 libavutil
Document aes init code writing on purpose beyond round_key array into state array.
author | reimar |
---|---|
date | Wed, 18 Jul 2007 12:22:07 +0000 |
parents | 1edb0f64861c |
children | f9a4c04ebb0e |
comparison
equal
deleted
inserted
replaced
367:6797bf24b2de | 368:99c56fd6e3f4 |
---|---|
22 | 22 |
23 #include "common.h" | 23 #include "common.h" |
24 #include "aes.h" | 24 #include "aes.h" |
25 | 25 |
26 typedef struct AVAES{ | 26 typedef struct AVAES{ |
27 // Note: round_key[16] is accessed in the init code, but this only | |
28 // overwrites state, which does not matter (see also r7471). | |
27 uint8_t round_key[15][4][4]; | 29 uint8_t round_key[15][4][4]; |
28 uint8_t state[2][4][4]; | 30 uint8_t state[2][4][4]; |
29 int rounds; | 31 int rounds; |
30 }AVAES; | 32 }AVAES; |
31 | 33 |