Lines Matching +full:1 +full:q
29 br_aes_ct_bitslice_Sbox(uint32_t *q) in br_aes_ct_bitslice_Sbox() argument
56 x0 = q[7]; in br_aes_ct_bitslice_Sbox()
57 x1 = q[6]; in br_aes_ct_bitslice_Sbox()
58 x2 = q[5]; in br_aes_ct_bitslice_Sbox()
59 x3 = q[4]; in br_aes_ct_bitslice_Sbox()
60 x4 = q[3]; in br_aes_ct_bitslice_Sbox()
61 x5 = q[2]; in br_aes_ct_bitslice_Sbox()
62 x6 = q[1]; in br_aes_ct_bitslice_Sbox()
63 x7 = q[0]; in br_aes_ct_bitslice_Sbox()
194 q[7] = s0; in br_aes_ct_bitslice_Sbox()
195 q[6] = s1; in br_aes_ct_bitslice_Sbox()
196 q[5] = s2; in br_aes_ct_bitslice_Sbox()
197 q[4] = s3; in br_aes_ct_bitslice_Sbox()
198 q[3] = s4; in br_aes_ct_bitslice_Sbox()
199 q[2] = s5; in br_aes_ct_bitslice_Sbox()
200 q[1] = s6; in br_aes_ct_bitslice_Sbox()
201 q[0] = s7; in br_aes_ct_bitslice_Sbox()
206 br_aes_ct_ortho(uint32_t *q) in br_aes_ct_ortho() argument
216 #define SWAP2(x, y) SWAPN(0x55555555, 0xAAAAAAAA, 1, x, y) in br_aes_ct_ortho()
220 SWAP2(q[0], q[1]); in br_aes_ct_ortho()
221 SWAP2(q[2], q[3]); in br_aes_ct_ortho()
222 SWAP2(q[4], q[5]); in br_aes_ct_ortho()
223 SWAP2(q[6], q[7]); in br_aes_ct_ortho()
225 SWAP4(q[0], q[2]); in br_aes_ct_ortho()
226 SWAP4(q[1], q[3]); in br_aes_ct_ortho()
227 SWAP4(q[4], q[6]); in br_aes_ct_ortho()
228 SWAP4(q[5], q[7]); in br_aes_ct_ortho()
230 SWAP8(q[0], q[4]); in br_aes_ct_ortho()
231 SWAP8(q[1], q[5]); in br_aes_ct_ortho()
232 SWAP8(q[2], q[6]); in br_aes_ct_ortho()
233 SWAP8(q[3], q[7]); in br_aes_ct_ortho()
243 uint32_t q[8]; in sub_word() local
247 q[i] = x; in sub_word()
249 br_aes_ct_ortho(q); in sub_word()
250 br_aes_ct_bitslice_Sbox(q); in sub_word()
251 br_aes_ct_ortho(q); in sub_word()
252 return q[0]; in sub_word()
279 nkf = (int)((num_rounds + 1) << 2); in br_aes_ct_keysched()
283 skey[(i << 1) + 0] = tmp; in br_aes_ct_keysched()
284 skey[(i << 1) + 1] = tmp; in br_aes_ct_keysched()
293 tmp ^= skey[(i - nk) << 1]; in br_aes_ct_keysched()
294 skey[(i << 1) + 0] = tmp; in br_aes_ct_keysched()
295 skey[(i << 1) + 1] = tmp; in br_aes_ct_keysched()
302 br_aes_ct_ortho(skey + (i << 1)); in br_aes_ct_keysched()
306 | (skey[j + 1] & 0xAAAAAAAA); in br_aes_ct_keysched()
318 n = (num_rounds + 1) << 2; in br_aes_ct_skey_expand()
324 skey[v + 0] = x | (x << 1); in br_aes_ct_skey_expand()
326 skey[v + 1] = y | (y >> 1); in br_aes_ct_skey_expand()