Lines Matching defs:state
37 // overwrites state, which does not matter (see also commit ba554c0).
39 av_aes_block state[2];
122 static inline void mix(av_aes_block state[2], uint32_t multbl[][256], int s1, int s3){
123 uint8_t (*src)[4] = state[1].u8x4;
124 state[0].u32[0] = mix_core(multbl, src[0][0], src[s1 ][1], src[2][2], src[s3 ][3]);
125 state[0].u32[1] = mix_core(multbl, src[1][0], src[s3-1][1], src[3][2], src[s1-1][3]);
126 state[0].u32[2] = mix_core(multbl, src[2][0], src[s3 ][1], src[0][2], src[s1 ][3]);
127 state[0].u32[3] = mix_core(multbl, src[3][0], src[s1-1][1], src[1][2], src[s3-1][3]);
136 mix(a->state, multbl, 3 - s, 1 + s);
137 addkey(&a->state[1], &a->state[0], &a->round_key[r]);
140 subshift(&a->state[0], s, sbox);
147 addkey_s(&a->state[1], src, &a->round_key[a->rounds]);
151 addkey_s(&a->state[0], iv, &a->state[0]);
154 addkey_d(dst, &a->state[0], &a->round_key[0]);
157 addkey_s(&a->state[1], iv, &a->state[1]);
159 addkey_d(dst, &a->state[0], &a->round_key[0]);