Lines Matching refs:rk

634     u64 *rk;  in AES_set_encrypt_key()  local
641 rk = (u64*)key->rd_key; in AES_set_encrypt_key()
650 KeyExpansion(userKey, rk, key->rounds, bits/32); in AES_set_encrypt_key()
670 const u64 *rk; in AES_encrypt() local
673 rk = (u64*)key->rd_key; in AES_encrypt()
675 Cipher(in, out, rk, key->rounds); in AES_encrypt()
685 const u64 *rk; in AES_decrypt() local
688 rk = (u64*)key->rd_key; in AES_decrypt()
690 InvCipher(in, out, rk, key->rounds); in AES_decrypt()
1282 u32 *rk; in AES_set_encrypt_key() local
1291 rk = key->rd_key; in AES_set_encrypt_key()
1300 rk[0] = GETU32(userKey ); in AES_set_encrypt_key()
1301 rk[1] = GETU32(userKey + 4); in AES_set_encrypt_key()
1302 rk[2] = GETU32(userKey + 8); in AES_set_encrypt_key()
1303 rk[3] = GETU32(userKey + 12); in AES_set_encrypt_key()
1306 temp = rk[3]; in AES_set_encrypt_key()
1307 rk[4] = rk[0] ^ in AES_set_encrypt_key()
1313 rk[5] = rk[1] ^ rk[4]; in AES_set_encrypt_key()
1314 rk[6] = rk[2] ^ rk[5]; in AES_set_encrypt_key()
1315 rk[7] = rk[3] ^ rk[6]; in AES_set_encrypt_key()
1319 rk += 4; in AES_set_encrypt_key()
1322 rk[4] = GETU32(userKey + 16); in AES_set_encrypt_key()
1323 rk[5] = GETU32(userKey + 20); in AES_set_encrypt_key()
1326 temp = rk[ 5]; in AES_set_encrypt_key()
1327 rk[ 6] = rk[ 0] ^ in AES_set_encrypt_key()
1333 rk[ 7] = rk[ 1] ^ rk[ 6]; in AES_set_encrypt_key()
1334 rk[ 8] = rk[ 2] ^ rk[ 7]; in AES_set_encrypt_key()
1335 rk[ 9] = rk[ 3] ^ rk[ 8]; in AES_set_encrypt_key()
1339 rk[10] = rk[ 4] ^ rk[ 9]; in AES_set_encrypt_key()
1340 rk[11] = rk[ 5] ^ rk[10]; in AES_set_encrypt_key()
1341 rk += 6; in AES_set_encrypt_key()
1344 rk[6] = GETU32(userKey + 24); in AES_set_encrypt_key()
1345 rk[7] = GETU32(userKey + 28); in AES_set_encrypt_key()
1348 temp = rk[ 7]; in AES_set_encrypt_key()
1349 rk[ 8] = rk[ 0] ^ in AES_set_encrypt_key()
1355 rk[ 9] = rk[ 1] ^ rk[ 8]; in AES_set_encrypt_key()
1356 rk[10] = rk[ 2] ^ rk[ 9]; in AES_set_encrypt_key()
1357 rk[11] = rk[ 3] ^ rk[10]; in AES_set_encrypt_key()
1361 temp = rk[11]; in AES_set_encrypt_key()
1362 rk[12] = rk[ 4] ^ in AES_set_encrypt_key()
1367 rk[13] = rk[ 5] ^ rk[12]; in AES_set_encrypt_key()
1368 rk[14] = rk[ 6] ^ rk[13]; in AES_set_encrypt_key()
1369 rk[15] = rk[ 7] ^ rk[14]; in AES_set_encrypt_key()
1371 rk += 8; in AES_set_encrypt_key()
1384 u32 *rk; in AES_set_decrypt_key() local
1393 rk = key->rd_key; in AES_set_decrypt_key()
1397 temp = rk[i ]; rk[i ] = rk[j ]; rk[j ] = temp; in AES_set_decrypt_key()
1398 temp = rk[i + 1]; rk[i + 1] = rk[j + 1]; rk[j + 1] = temp; in AES_set_decrypt_key()
1399 temp = rk[i + 2]; rk[i + 2] = rk[j + 2]; rk[j + 2] = temp; in AES_set_decrypt_key()
1400 temp = rk[i + 3]; rk[i + 3] = rk[j + 3]; rk[j + 3] = temp; in AES_set_decrypt_key()
1404 rk += 4; in AES_set_decrypt_key()
1405 rk[0] = in AES_set_decrypt_key()
1406 Td0[Te1[(rk[0] >> 24) ] & 0xff] ^ in AES_set_decrypt_key()
1407 Td1[Te1[(rk[0] >> 16) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
1408 Td2[Te1[(rk[0] >> 8) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
1409 Td3[Te1[(rk[0] ) & 0xff] & 0xff]; in AES_set_decrypt_key()
1410 rk[1] = in AES_set_decrypt_key()
1411 Td0[Te1[(rk[1] >> 24) ] & 0xff] ^ in AES_set_decrypt_key()
1412 Td1[Te1[(rk[1] >> 16) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
1413 Td2[Te1[(rk[1] >> 8) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
1414 Td3[Te1[(rk[1] ) & 0xff] & 0xff]; in AES_set_decrypt_key()
1415 rk[2] = in AES_set_decrypt_key()
1416 Td0[Te1[(rk[2] >> 24) ] & 0xff] ^ in AES_set_decrypt_key()
1417 Td1[Te1[(rk[2] >> 16) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
1418 Td2[Te1[(rk[2] >> 8) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
1419 Td3[Te1[(rk[2] ) & 0xff] & 0xff]; in AES_set_decrypt_key()
1420 rk[3] = in AES_set_decrypt_key()
1421 Td0[Te1[(rk[3] >> 24) ] & 0xff] ^ in AES_set_decrypt_key()
1422 Td1[Te1[(rk[3] >> 16) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
1423 Td2[Te1[(rk[3] >> 8) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
1424 Td3[Te1[(rk[3] ) & 0xff] & 0xff]; in AES_set_decrypt_key()
1436 const u32 *rk; in AES_encrypt() local
1443 rk = key->rd_key; in AES_encrypt()
1449 s0 = GETU32(in ) ^ rk[0]; in AES_encrypt()
1450 s1 = GETU32(in + 4) ^ rk[1]; in AES_encrypt()
1451 s2 = GETU32(in + 8) ^ rk[2]; in AES_encrypt()
1452 s3 = GETU32(in + 12) ^ rk[3]; in AES_encrypt()
1455 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[ 4]; in AES_encrypt()
1456 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[ 5]; in AES_encrypt()
1457 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[ 6]; in AES_encrypt()
1458 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[ 7]; in AES_encrypt()
1460 s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[ 8]; in AES_encrypt()
1461 s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[ 9]; in AES_encrypt()
1462 s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[10]; in AES_encrypt()
1463 s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[11]; in AES_encrypt()
1465 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[12]; in AES_encrypt()
1466 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[13]; in AES_encrypt()
1467 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[14]; in AES_encrypt()
1468 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[15]; in AES_encrypt()
1470 s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[16]; in AES_encrypt()
1471 s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[17]; in AES_encrypt()
1472 s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[18]; in AES_encrypt()
1473 s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[19]; in AES_encrypt()
1475 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[20]; in AES_encrypt()
1476 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[21]; in AES_encrypt()
1477 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[22]; in AES_encrypt()
1478 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[23]; in AES_encrypt()
1480 s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[24]; in AES_encrypt()
1481 s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[25]; in AES_encrypt()
1482 s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[26]; in AES_encrypt()
1483 s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[27]; in AES_encrypt()
1485 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[28]; in AES_encrypt()
1486 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[29]; in AES_encrypt()
1487 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[30]; in AES_encrypt()
1488 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[31]; in AES_encrypt()
1490 s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[32]; in AES_encrypt()
1491 s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[33]; in AES_encrypt()
1492 s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[34]; in AES_encrypt()
1493 s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[35]; in AES_encrypt()
1495 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[36]; in AES_encrypt()
1496 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[37]; in AES_encrypt()
1497 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[38]; in AES_encrypt()
1498 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[39]; in AES_encrypt()
1501 … s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[40]; in AES_encrypt()
1502 … s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[41]; in AES_encrypt()
1503 … s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[42]; in AES_encrypt()
1504 … s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[43]; in AES_encrypt()
1506 … t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[44]; in AES_encrypt()
1507 … t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[45]; in AES_encrypt()
1508 … t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[46]; in AES_encrypt()
1509 … t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[47]; in AES_encrypt()
1512 … s0 = Te0[t0 >> 24] ^ Te1[(t1 >> 16) & 0xff] ^ Te2[(t2 >> 8) & 0xff] ^ Te3[t3 & 0xff] ^ rk[48]; in AES_encrypt()
1513 … s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[49]; in AES_encrypt()
1514 … s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[50]; in AES_encrypt()
1515 … s3 = Te0[t3 >> 24] ^ Te1[(t0 >> 16) & 0xff] ^ Te2[(t1 >> 8) & 0xff] ^ Te3[t2 & 0xff] ^ rk[51]; in AES_encrypt()
1517 … t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[52]; in AES_encrypt()
1518 … t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[53]; in AES_encrypt()
1519 … t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[54]; in AES_encrypt()
1520 … t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[55]; in AES_encrypt()
1523 rk += key->rounds << 2; in AES_encrypt()
1535 rk[4]; in AES_encrypt()
1541 rk[5]; in AES_encrypt()
1547 rk[6]; in AES_encrypt()
1553 rk[7]; in AES_encrypt()
1555 rk += 8; in AES_encrypt()
1565 rk[0]; in AES_encrypt()
1571 rk[1]; in AES_encrypt()
1577 rk[2]; in AES_encrypt()
1583 rk[3]; in AES_encrypt()
1595 rk[0]; in AES_encrypt()
1602 rk[1]; in AES_encrypt()
1609 rk[2]; in AES_encrypt()
1616 rk[3]; in AES_encrypt()
1628 const u32 *rk; in AES_decrypt() local
1635 rk = key->rd_key; in AES_decrypt()
1641 s0 = GETU32(in ) ^ rk[0]; in AES_decrypt()
1642 s1 = GETU32(in + 4) ^ rk[1]; in AES_decrypt()
1643 s2 = GETU32(in + 8) ^ rk[2]; in AES_decrypt()
1644 s3 = GETU32(in + 12) ^ rk[3]; in AES_decrypt()
1647 t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[ 4]; in AES_decrypt()
1648 t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[ 5]; in AES_decrypt()
1649 t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[ 6]; in AES_decrypt()
1650 t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[ 7]; in AES_decrypt()
1652 s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[ 8]; in AES_decrypt()
1653 s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[ 9]; in AES_decrypt()
1654 s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[10]; in AES_decrypt()
1655 s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[11]; in AES_decrypt()
1657 t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[12]; in AES_decrypt()
1658 t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[13]; in AES_decrypt()
1659 t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[14]; in AES_decrypt()
1660 t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[15]; in AES_decrypt()
1662 s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[16]; in AES_decrypt()
1663 s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[17]; in AES_decrypt()
1664 s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[18]; in AES_decrypt()
1665 s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[19]; in AES_decrypt()
1667 t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[20]; in AES_decrypt()
1668 t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[21]; in AES_decrypt()
1669 t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[22]; in AES_decrypt()
1670 t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[23]; in AES_decrypt()
1672 s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[24]; in AES_decrypt()
1673 s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[25]; in AES_decrypt()
1674 s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[26]; in AES_decrypt()
1675 s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[27]; in AES_decrypt()
1677 t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[28]; in AES_decrypt()
1678 t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[29]; in AES_decrypt()
1679 t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[30]; in AES_decrypt()
1680 t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[31]; in AES_decrypt()
1682 s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[32]; in AES_decrypt()
1683 s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[33]; in AES_decrypt()
1684 s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[34]; in AES_decrypt()
1685 s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[35]; in AES_decrypt()
1687 t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[36]; in AES_decrypt()
1688 t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[37]; in AES_decrypt()
1689 t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[38]; in AES_decrypt()
1690 t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[39]; in AES_decrypt()
1693 … s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[40]; in AES_decrypt()
1694 … s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[41]; in AES_decrypt()
1695 … s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[42]; in AES_decrypt()
1696 … s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[43]; in AES_decrypt()
1698 … t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[44]; in AES_decrypt()
1699 … t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[45]; in AES_decrypt()
1700 … t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[46]; in AES_decrypt()
1701 … t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[47]; in AES_decrypt()
1704 … s0 = Td0[t0 >> 24] ^ Td1[(t3 >> 16) & 0xff] ^ Td2[(t2 >> 8) & 0xff] ^ Td3[t1 & 0xff] ^ rk[48]; in AES_decrypt()
1705 … s1 = Td0[t1 >> 24] ^ Td1[(t0 >> 16) & 0xff] ^ Td2[(t3 >> 8) & 0xff] ^ Td3[t2 & 0xff] ^ rk[49]; in AES_decrypt()
1706 … s2 = Td0[t2 >> 24] ^ Td1[(t1 >> 16) & 0xff] ^ Td2[(t0 >> 8) & 0xff] ^ Td3[t3 & 0xff] ^ rk[50]; in AES_decrypt()
1707 … s3 = Td0[t3 >> 24] ^ Td1[(t2 >> 16) & 0xff] ^ Td2[(t1 >> 8) & 0xff] ^ Td3[t0 & 0xff] ^ rk[51]; in AES_decrypt()
1709 … t0 = Td0[s0 >> 24] ^ Td1[(s3 >> 16) & 0xff] ^ Td2[(s2 >> 8) & 0xff] ^ Td3[s1 & 0xff] ^ rk[52]; in AES_decrypt()
1710 … t1 = Td0[s1 >> 24] ^ Td1[(s0 >> 16) & 0xff] ^ Td2[(s3 >> 8) & 0xff] ^ Td3[s2 & 0xff] ^ rk[53]; in AES_decrypt()
1711 … t2 = Td0[s2 >> 24] ^ Td1[(s1 >> 16) & 0xff] ^ Td2[(s0 >> 8) & 0xff] ^ Td3[s3 & 0xff] ^ rk[54]; in AES_decrypt()
1712 … t3 = Td0[s3 >> 24] ^ Td1[(s2 >> 16) & 0xff] ^ Td2[(s1 >> 8) & 0xff] ^ Td3[s0 & 0xff] ^ rk[55]; in AES_decrypt()
1715 rk += key->rounds << 2; in AES_decrypt()
1727 rk[4]; in AES_decrypt()
1733 rk[5]; in AES_decrypt()
1739 rk[6]; in AES_decrypt()
1745 rk[7]; in AES_decrypt()
1747 rk += 8; in AES_decrypt()
1757 rk[0]; in AES_decrypt()
1763 rk[1]; in AES_decrypt()
1769 rk[2]; in AES_decrypt()
1775 rk[3]; in AES_decrypt()
1787 rk[0]; in AES_decrypt()
1794 rk[1]; in AES_decrypt()
1801 rk[2]; in AES_decrypt()
1808 rk[3]; in AES_decrypt()
1860 u32 *rk; in AES_set_encrypt_key() local
1869 rk = key->rd_key; in AES_set_encrypt_key()
1878 rk[0] = GETU32(userKey ); in AES_set_encrypt_key()
1879 rk[1] = GETU32(userKey + 4); in AES_set_encrypt_key()
1880 rk[2] = GETU32(userKey + 8); in AES_set_encrypt_key()
1881 rk[3] = GETU32(userKey + 12); in AES_set_encrypt_key()
1884 temp = rk[3]; in AES_set_encrypt_key()
1885 rk[4] = rk[0] ^ in AES_set_encrypt_key()
1891 rk[5] = rk[1] ^ rk[4]; in AES_set_encrypt_key()
1892 rk[6] = rk[2] ^ rk[5]; in AES_set_encrypt_key()
1893 rk[7] = rk[3] ^ rk[6]; in AES_set_encrypt_key()
1897 rk += 4; in AES_set_encrypt_key()
1900 rk[4] = GETU32(userKey + 16); in AES_set_encrypt_key()
1901 rk[5] = GETU32(userKey + 20); in AES_set_encrypt_key()
1904 temp = rk[ 5]; in AES_set_encrypt_key()
1905 rk[ 6] = rk[ 0] ^ in AES_set_encrypt_key()
1911 rk[ 7] = rk[ 1] ^ rk[ 6]; in AES_set_encrypt_key()
1912 rk[ 8] = rk[ 2] ^ rk[ 7]; in AES_set_encrypt_key()
1913 rk[ 9] = rk[ 3] ^ rk[ 8]; in AES_set_encrypt_key()
1917 rk[10] = rk[ 4] ^ rk[ 9]; in AES_set_encrypt_key()
1918 rk[11] = rk[ 5] ^ rk[10]; in AES_set_encrypt_key()
1919 rk += 6; in AES_set_encrypt_key()
1922 rk[6] = GETU32(userKey + 24); in AES_set_encrypt_key()
1923 rk[7] = GETU32(userKey + 28); in AES_set_encrypt_key()
1926 temp = rk[ 7]; in AES_set_encrypt_key()
1927 rk[ 8] = rk[ 0] ^ in AES_set_encrypt_key()
1933 rk[ 9] = rk[ 1] ^ rk[ 8]; in AES_set_encrypt_key()
1934 rk[10] = rk[ 2] ^ rk[ 9]; in AES_set_encrypt_key()
1935 rk[11] = rk[ 3] ^ rk[10]; in AES_set_encrypt_key()
1939 temp = rk[11]; in AES_set_encrypt_key()
1940 rk[12] = rk[ 4] ^ in AES_set_encrypt_key()
1945 rk[13] = rk[ 5] ^ rk[12]; in AES_set_encrypt_key()
1946 rk[14] = rk[ 6] ^ rk[13]; in AES_set_encrypt_key()
1947 rk[15] = rk[ 7] ^ rk[14]; in AES_set_encrypt_key()
1949 rk += 8; in AES_set_encrypt_key()
1962 u32 *rk; in AES_set_decrypt_key() local
1971 rk = key->rd_key; in AES_set_decrypt_key()
1975 temp = rk[i ]; rk[i ] = rk[j ]; rk[j ] = temp; in AES_set_decrypt_key()
1976 temp = rk[i + 1]; rk[i + 1] = rk[j + 1]; rk[j + 1] = temp; in AES_set_decrypt_key()
1977 temp = rk[i + 2]; rk[i + 2] = rk[j + 2]; rk[j + 2] = temp; in AES_set_decrypt_key()
1978 temp = rk[i + 3]; rk[i + 3] = rk[j + 3]; rk[j + 3] = temp; in AES_set_decrypt_key()
1982 rk += 4; in AES_set_decrypt_key()
1986 tp1 = rk[j]; in AES_set_decrypt_key()
2001 rk[j] = tpe ^ ROTATE(tpd,16) ^ in AES_set_decrypt_key()
2004 rk[j] = tpe ^ (tpd >> 16) ^ (tpd << 16) ^ in AES_set_decrypt_key()