Lines Matching refs:sbox
32 static const u8 sbox[256] = { variable
331 state[0] = sbox[state[0]]; in shift_rows()
332 state[4] = sbox[state[4]]; in shift_rows()
333 state[8] = sbox[state[8]]; in shift_rows()
334 state[12] = sbox[state[12]]; in shift_rows()
337 tmp = sbox[state[1]]; in shift_rows()
338 state[1] = sbox[state[5]]; in shift_rows()
339 state[5] = sbox[state[9]]; in shift_rows()
340 state[9] = sbox[state[13]]; in shift_rows()
344 tmp = sbox[state[2]]; in shift_rows()
345 state[2] = sbox[state[10]]; in shift_rows()
347 tmp = sbox[state[6]]; in shift_rows()
348 state[6] = sbox[state[14]]; in shift_rows()
352 tmp = sbox[state[15]]; in shift_rows()
353 state[15] = sbox[state[11]]; in shift_rows()
354 state[11] = sbox[state[7]]; in shift_rows()
355 state[7] = sbox[state[3]]; in shift_rows()
404 sbox[state[10]] ^ sbox[state[15]]; in mix_sub_columns()
405 tmp[1] = sbox[state[0]] ^ x2_sbox[state[5]] ^ in mix_sub_columns()
406 x3_sbox[state[10]] ^ sbox[state[15]]; in mix_sub_columns()
407 tmp[2] = sbox[state[0]] ^ sbox[state[5]] ^ in mix_sub_columns()
409 tmp[3] = x3_sbox[state[0]] ^ sbox[state[5]] ^ in mix_sub_columns()
410 sbox[state[10]] ^ x2_sbox[state[15]]; in mix_sub_columns()
414 sbox[state[14]] ^ sbox[state[3]]; in mix_sub_columns()
415 tmp[5] = sbox[state[4]] ^ x2_sbox[state[9]] ^ in mix_sub_columns()
416 x3_sbox[state[14]] ^ sbox[state[3]]; in mix_sub_columns()
417 tmp[6] = sbox[state[4]] ^ sbox[state[9]] ^ in mix_sub_columns()
419 tmp[7] = x3_sbox[state[4]] ^ sbox[state[9]] ^ in mix_sub_columns()
420 sbox[state[14]] ^ x2_sbox[state[3]]; in mix_sub_columns()
424 sbox[state[2]] ^ sbox[state[7]]; in mix_sub_columns()
425 tmp[9] = sbox[state[8]] ^ x2_sbox[state[13]] ^ in mix_sub_columns()
426 x3_sbox[state[2]] ^ sbox[state[7]]; in mix_sub_columns()
427 tmp[10] = sbox[state[8]] ^ sbox[state[13]] ^ in mix_sub_columns()
429 tmp[11] = x3_sbox[state[8]] ^ sbox[state[13]] ^ in mix_sub_columns()
430 sbox[state[2]] ^ x2_sbox[state[7]]; in mix_sub_columns()
434 sbox[state[6]] ^ sbox[state[11]]; in mix_sub_columns()
435 tmp[13] = sbox[state[12]] ^ x2_sbox[state[1]] ^ in mix_sub_columns()
436 x3_sbox[state[6]] ^ sbox[state[11]]; in mix_sub_columns()
437 tmp[14] = sbox[state[12]] ^ sbox[state[1]] ^ in mix_sub_columns()
439 tmp[15] = x3_sbox[state[12]] ^ sbox[state[1]] ^ in mix_sub_columns()
440 sbox[state[6]] ^ x2_sbox[state[11]]; in mix_sub_columns()
526 tmp3 = sbox[tmp0]; in aes_expand_key()
527 tmp0 = sbox[tmp1] ^ rcon[idx / AES_KEYCOLS]; in aes_expand_key()
528 tmp1 = sbox[tmp2]; in aes_expand_key()
529 tmp2 = sbox[tmp4]; in aes_expand_key()
531 tmp0 = sbox[tmp0]; in aes_expand_key()
532 tmp1 = sbox[tmp1]; in aes_expand_key()
533 tmp2 = sbox[tmp2]; in aes_expand_key()
534 tmp3 = sbox[tmp3]; in aes_expand_key()