Lines Matching refs:aes_sbox
1141 * the following tables (aes_sbox, aes_inv_sbox, T4, U4) are
1146 aes_sbox[256] = {
1384 expanded_key[i].v8[0] = aes_sbox[expanded_key[i-1].v8[13]] ^ rc;
1385 expanded_key[i].v8[1] = aes_sbox[expanded_key[i-1].v8[14]];
1386 expanded_key[i].v8[2] = aes_sbox[expanded_key[i-1].v8[15]];
1387 expanded_key[i].v8[3] = aes_sbox[expanded_key[i-1].v8[12]];
1472 c0 = U0[aes_sbox[expanded_key[i].v8[0]]]
1473 ^ U1[aes_sbox[expanded_key[i].v8[1]]]
1474 ^ U2[aes_sbox[expanded_key[i].v8[2]]]
1475 ^ U3[aes_sbox[expanded_key[i].v8[3]]];
1477 c1 = U0[aes_sbox[expanded_key[i].v8[4]]]
1478 ^ U1[aes_sbox[expanded_key[i].v8[5]]]
1479 ^ U2[aes_sbox[expanded_key[i].v8[6]]]
1480 ^ U3[aes_sbox[expanded_key[i].v8[7]]];
1482 c2 = U0[aes_sbox[expanded_key[i].v8[8]]]
1483 ^ U1[aes_sbox[expanded_key[i].v8[9]]]
1484 ^ U2[aes_sbox[expanded_key[i].v8[10]]]
1485 ^ U3[aes_sbox[expanded_key[i].v8[11]]];
1487 c3 = U0[aes_sbox[expanded_key[i].v8[12]]]
1488 ^ U1[aes_sbox[expanded_key[i].v8[13]]]
1489 ^ U2[aes_sbox[expanded_key[i].v8[14]]]
1490 ^ U3[aes_sbox[expanded_key[i].v8[15]]];
1563 state->v8[0] = aes_sbox[state->v8[0]];
1564 state->v8[4] = aes_sbox[state->v8[4]];
1565 state->v8[8] = aes_sbox[state->v8[8]];
1566 state->v8[12] = aes_sbox[state->v8[12]];
1569 tmp = aes_sbox[state->v8[1]];
1570 state->v8[1] = aes_sbox[state->v8[5]];
1571 state->v8[5] = aes_sbox[state->v8[9]];
1572 state->v8[9] = aes_sbox[state->v8[13]];
1576 tmp = aes_sbox[state->v8[10]];
1577 state->v8[10] = aes_sbox[state->v8[2]];
1579 tmp = aes_sbox[state->v8[14]];
1580 state->v8[14] = aes_sbox[state->v8[6]];
1584 tmp = aes_sbox[state->v8[15]];
1585 state->v8[15] = aes_sbox[state->v8[11]];
1586 state->v8[11] = aes_sbox[state->v8[7]];
1587 state->v8[7] = aes_sbox[state->v8[3]];
1843 state->v8[0] = aes_sbox[state->v8[0]];
1844 state->v8[4] = aes_sbox[state->v8[4]];
1845 state->v8[8] = aes_sbox[state->v8[8]];
1846 state->v8[12] = aes_sbox[state->v8[12]];
1849 tmp = aes_sbox[state->v8[1]];
1850 state->v8[1] = aes_sbox[state->v8[5]];
1851 state->v8[5] = aes_sbox[state->v8[9]];
1852 state->v8[9] = aes_sbox[state->v8[13]];
1856 tmp = aes_sbox[state->v8[10]];
1857 state->v8[10] = aes_sbox[state->v8[2]];
1859 tmp = aes_sbox[state->v8[14]];
1860 state->v8[14] = aes_sbox[state->v8[6]];
1864 tmp = aes_sbox[state->v8[15]];
1865 state->v8[15] = aes_sbox[state->v8[11]];
1866 state->v8[11] = aes_sbox[state->v8[7]];
1867 state->v8[7] = aes_sbox[state->v8[3]];