• Home
  • Raw
  • Download

Lines Matching refs:expanded_key

1405                                           srtp_aes_expanded_key_t *expanded_key)  in aes_128_expand_encryption_key()  argument
1413 expanded_key->num_rounds = 10; in aes_128_expand_encryption_key()
1415 v128_copy_octet_string(&expanded_key->round[0], key); in aes_128_expand_encryption_key()
1419 "expanded key[0]: %s", v128_hex_string(&expanded_key->round[0])); in aes_128_expand_encryption_key()
1425 expanded_key->round[i].v8[0] = in aes_128_expand_encryption_key()
1426 aes_sbox[expanded_key->round[i - 1].v8[13]] ^ rc; in aes_128_expand_encryption_key()
1427 expanded_key->round[i].v8[1] = in aes_128_expand_encryption_key()
1428 aes_sbox[expanded_key->round[i - 1].v8[14]]; in aes_128_expand_encryption_key()
1429 expanded_key->round[i].v8[2] = in aes_128_expand_encryption_key()
1430 aes_sbox[expanded_key->round[i - 1].v8[15]]; in aes_128_expand_encryption_key()
1431 expanded_key->round[i].v8[3] = in aes_128_expand_encryption_key()
1432 aes_sbox[expanded_key->round[i - 1].v8[12]]; in aes_128_expand_encryption_key()
1434 expanded_key->round[i].v32[0] ^= expanded_key->round[i - 1].v32[0]; in aes_128_expand_encryption_key()
1439 expanded_key->round[i].v32[1] = in aes_128_expand_encryption_key()
1440 expanded_key->round[i].v32[0] ^ expanded_key->round[i - 1].v32[1]; in aes_128_expand_encryption_key()
1442 expanded_key->round[i].v32[2] = in aes_128_expand_encryption_key()
1443 expanded_key->round[i].v32[1] ^ expanded_key->round[i - 1].v32[2]; in aes_128_expand_encryption_key()
1445 expanded_key->round[i].v32[3] = in aes_128_expand_encryption_key()
1446 expanded_key->round[i].v32[2] ^ expanded_key->round[i - 1].v32[3]; in aes_128_expand_encryption_key()
1450 "expanded key[%d]: %s", i, v128_hex_string(&expanded_key->round[i])); in aes_128_expand_encryption_key()
1459 srtp_aes_expanded_key_t *expanded_key) in aes_256_expand_encryption_key() argument
1467 expanded_key->num_rounds = 14; in aes_256_expand_encryption_key()
1469 v128_copy_octet_string(&expanded_key->round[0], key); in aes_256_expand_encryption_key()
1470 v128_copy_octet_string(&expanded_key->round[1], key + 16); in aes_256_expand_encryption_key()
1474 "expanded key[0]: %s", v128_hex_string(&expanded_key->round[0])); in aes_256_expand_encryption_key()
1476 "expanded key[1]: %s", v128_hex_string(&expanded_key->round[1])); in aes_256_expand_encryption_key()
1483 expanded_key->round[i].v8[0] = in aes_256_expand_encryption_key()
1484 aes_sbox[expanded_key->round[i - 1].v8[13]] ^ rc; in aes_256_expand_encryption_key()
1485 expanded_key->round[i].v8[1] = in aes_256_expand_encryption_key()
1486 aes_sbox[expanded_key->round[i - 1].v8[14]]; in aes_256_expand_encryption_key()
1487 expanded_key->round[i].v8[2] = in aes_256_expand_encryption_key()
1488 aes_sbox[expanded_key->round[i - 1].v8[15]]; in aes_256_expand_encryption_key()
1489 expanded_key->round[i].v8[3] = in aes_256_expand_encryption_key()
1490 aes_sbox[expanded_key->round[i - 1].v8[12]]; in aes_256_expand_encryption_key()
1495 expanded_key->round[i].v8[0] = in aes_256_expand_encryption_key()
1496 aes_sbox[expanded_key->round[i - 1].v8[12]]; in aes_256_expand_encryption_key()
1497 expanded_key->round[i].v8[1] = in aes_256_expand_encryption_key()
1498 aes_sbox[expanded_key->round[i - 1].v8[13]]; in aes_256_expand_encryption_key()
1499 expanded_key->round[i].v8[2] = in aes_256_expand_encryption_key()
1500 aes_sbox[expanded_key->round[i - 1].v8[14]]; in aes_256_expand_encryption_key()
1501 expanded_key->round[i].v8[3] = in aes_256_expand_encryption_key()
1502 aes_sbox[expanded_key->round[i - 1].v8[15]]; in aes_256_expand_encryption_key()
1505 expanded_key->round[i].v32[0] ^= expanded_key->round[i - 2].v32[0]; in aes_256_expand_encryption_key()
1510 expanded_key->round[i].v32[1] = in aes_256_expand_encryption_key()
1511 expanded_key->round[i].v32[0] ^ expanded_key->round[i - 2].v32[1]; in aes_256_expand_encryption_key()
1513 expanded_key->round[i].v32[2] = in aes_256_expand_encryption_key()
1514 expanded_key->round[i].v32[1] ^ expanded_key->round[i - 2].v32[2]; in aes_256_expand_encryption_key()
1516 expanded_key->round[i].v32[3] = in aes_256_expand_encryption_key()
1517 expanded_key->round[i].v32[2] ^ expanded_key->round[i - 2].v32[3]; in aes_256_expand_encryption_key()
1521 "expanded key[%d]: %s", i, v128_hex_string(&expanded_key->round[i])); in aes_256_expand_encryption_key()
1529 srtp_aes_expanded_key_t *expanded_key) in srtp_aes_expand_encryption_key() argument
1532 aes_128_expand_encryption_key(key, expanded_key); in srtp_aes_expand_encryption_key()
1538 aes_256_expand_encryption_key(key, expanded_key); in srtp_aes_expand_encryption_key()
1548 srtp_aes_expanded_key_t *expanded_key) in srtp_aes_expand_decryption_key() argument
1552 int num_rounds = expanded_key->num_rounds; in srtp_aes_expand_decryption_key()
1554 status = srtp_aes_expand_encryption_key(key, key_len, expanded_key); in srtp_aes_expand_decryption_key()
1562 v128_copy(&tmp, &expanded_key->round[num_rounds - i]); in srtp_aes_expand_decryption_key()
1563 v128_copy(&expanded_key->round[num_rounds - i], in srtp_aes_expand_decryption_key()
1564 &expanded_key->round[i]); in srtp_aes_expand_decryption_key()
1565 v128_copy(&expanded_key->round[i], &tmp); in srtp_aes_expand_decryption_key()
1582 tmp = expanded_key->round[i].v32[0]; in srtp_aes_expand_decryption_key()
1583 expanded_key->round[i].v32[0] = in srtp_aes_expand_decryption_key()
1589 tmp = expanded_key->round[i].v32[1]; in srtp_aes_expand_decryption_key()
1590 expanded_key->round[i].v32[1] = in srtp_aes_expand_decryption_key()
1596 tmp = expanded_key->round[i].v32[2]; in srtp_aes_expand_decryption_key()
1597 expanded_key->round[i].v32[2] = in srtp_aes_expand_decryption_key()
1603 tmp = expanded_key->round[i].v32[3]; in srtp_aes_expand_decryption_key()
1604 expanded_key->round[i].v32[3] = in srtp_aes_expand_decryption_key()
1610 tmp = expanded_key->round[i].v32[0]; in srtp_aes_expand_decryption_key()
1611 expanded_key->round[i].v32[0] = in srtp_aes_expand_decryption_key()
1617 tmp = expanded_key->round[i].v32[1]; in srtp_aes_expand_decryption_key()
1618 expanded_key->round[i].v32[1] = in srtp_aes_expand_decryption_key()
1624 tmp = expanded_key->round[i].v32[2]; in srtp_aes_expand_decryption_key()
1625 expanded_key->round[i].v32[2] = in srtp_aes_expand_decryption_key()
1631 tmp = expanded_key->round[i].v32[3]; in srtp_aes_expand_decryption_key()
1632 expanded_key->round[i].v32[3] = in srtp_aes_expand_decryption_key()
1644 c0 = U0[aes_sbox[expanded_key->round[i].v8[0]]] ^ in srtp_aes_expand_decryption_key()
1645 U1[aes_sbox[expanded_key->round[i].v8[1]]] ^ in srtp_aes_expand_decryption_key()
1646 U2[aes_sbox[expanded_key->round[i].v8[2]]] ^ in srtp_aes_expand_decryption_key()
1647 U3[aes_sbox[expanded_key->round[i].v8[3]]]; in srtp_aes_expand_decryption_key()
1649 c1 = U0[aes_sbox[expanded_key->round[i].v8[4]]] ^ in srtp_aes_expand_decryption_key()
1650 U1[aes_sbox[expanded_key->round[i].v8[5]]] ^ in srtp_aes_expand_decryption_key()
1651 U2[aes_sbox[expanded_key->round[i].v8[6]]] ^ in srtp_aes_expand_decryption_key()
1652 U3[aes_sbox[expanded_key->round[i].v8[7]]]; in srtp_aes_expand_decryption_key()
1654 c2 = U0[aes_sbox[expanded_key->round[i].v8[8]]] ^ in srtp_aes_expand_decryption_key()
1655 U1[aes_sbox[expanded_key->round[i].v8[9]]] ^ in srtp_aes_expand_decryption_key()
1656 U2[aes_sbox[expanded_key->round[i].v8[10]]] ^ in srtp_aes_expand_decryption_key()
1657 U3[aes_sbox[expanded_key->round[i].v8[11]]]; in srtp_aes_expand_decryption_key()
1659 c3 = U0[aes_sbox[expanded_key->round[i].v8[12]]] ^ in srtp_aes_expand_decryption_key()
1660 U1[aes_sbox[expanded_key->round[i].v8[13]]] ^ in srtp_aes_expand_decryption_key()
1661 U2[aes_sbox[expanded_key->round[i].v8[14]]] ^ in srtp_aes_expand_decryption_key()
1662 U3[aes_sbox[expanded_key->round[i].v8[15]]]; in srtp_aes_expand_decryption_key()
1664 expanded_key->round[i].v32[0] = c0; in srtp_aes_expand_decryption_key()
1665 expanded_key->round[i].v32[1] = c1; in srtp_aes_expand_decryption_key()
1666 expanded_key->round[i].v32[2] = c2; in srtp_aes_expand_decryption_key()
1667 expanded_key->round[i].v32[3] = c3; in srtp_aes_expand_decryption_key()