diff options
author | Reimar Döffinger | 2010-06-28 17:11:48 +0000 |
---|---|---|
committer | Reimar Döffinger | 2010-06-28 17:11:48 +0000 |
commit | 17c78b087aa470bbfd18068bbe475dc95d4b7fd4 (patch) | |
tree | fbd10830e6fb12c48ec6dfacccfc431b0b3e9b0b /libavutil | |
parent | 7ed06b2be85b273f7ae4339b80dfda987a13b4b8 (diff) |
Use a consistent type for multbl array function parameters.
Originally committed as revision 23855 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/aes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/aes.c b/libavutil/aes.c index d3a271c379..e21599ab95 100644 --- a/libavutil/aes.c +++ b/libavutil/aes.c @@ -61,7 +61,7 @@ static void subshift(uint8_t s0[2][16], int s, const uint8_t *box){ s3[0][1]=box[s3[1][13]]; s3[0][13]=box[s3[1][ 9]]; s3[0][ 9]=box[s3[1][ 5]]; s3[0][ 5]=box[s3[1][ 1]]; } -static inline int mix_core(uint32_t multbl[4][256], int a, int b, int c, int d){ +static inline int mix_core(uint32_t multbl[][256], int a, int b, int c, int d){ #if CONFIG_SMALL #define ROT(x,s) ((x<<s)|(x>>(32-s))) return multbl[0][a] ^ ROT(multbl[0][b], 8) ^ ROT(multbl[0][c], 16) ^ ROT(multbl[0][d], 24); @@ -70,14 +70,14 @@ static inline int mix_core(uint32_t multbl[4][256], int a, int b, int c, int d){ #endif } -static inline void mix(uint8_t state[2][4][4], uint32_t multbl[4][256], int s1, int s3){ +static inline void mix(uint8_t state[2][4][4], uint32_t multbl[][256], int s1, int s3){ ((uint32_t *)(state))[0] = mix_core(multbl, state[1][0][0], state[1][s1 ][1], state[1][2][2], state[1][s3 ][3]); ((uint32_t *)(state))[1] = mix_core(multbl, state[1][1][0], state[1][s3-1][1], state[1][3][2], state[1][s1-1][3]); ((uint32_t *)(state))[2] = mix_core(multbl, state[1][2][0], state[1][s3 ][1], state[1][0][2], state[1][s1 ][3]); ((uint32_t *)(state))[3] = mix_core(multbl, state[1][3][0], state[1][s1-1][1], state[1][1][2], state[1][s3-1][3]); } -static inline void crypt(AVAES *a, int s, const uint8_t *sbox, const uint32_t *multbl){ +static inline void crypt(AVAES *a, int s, const uint8_t *sbox, uint32_t multbl[][256]){ int r; for(r=a->rounds-1; r>0; r--){ |