Home | History | Annotate | Download | only in smp

Lines Matching refs:BT_OCTET16_LEN

222     memset(p_cb->tk, 0, BT_OCTET16_LEN);
399 if (!SMP_Encrypt(er, BT_OCTET16_LEN, buffer, 4, &output))
413 memcpy((void *)p_cb->csrk, output.param_buf, BT_OCTET16_LEN);
618 if (!SMP_Encrypt(p_cb->tk, BT_OCTET16_LEN, p1, BT_OCTET16_LEN, &output))
658 if (!SMP_Encrypt(p_cb->tk, BT_OCTET16_LEN, p2, BT_OCTET16_LEN, &output))
734 memcpy(p_cb->confirm, p->param_buf, BT_OCTET16_LEN);
818 if (!SMP_Encrypt(er, BT_OCTET16_LEN, (UINT8 *)&p_cb->div,
828 memcpy((void *)p_cb->ltk, output.param_buf, BT_OCTET16_LEN);
854 if (!SMP_Encrypt(dhk, BT_OCTET16_LEN, p_cb->enc_rand,
931 memset(p, 0, BT_OCTET16_LEN);
945 encrypted = SMP_Encrypt( p_cb->tk, BT_OCTET16_LEN, ptext, BT_OCTET16_LEN, output);
1246 UINT8 key[BT_OCTET16_LEN];
1247 UINT8 cmac[BT_OCTET16_LEN];
1261 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"X", BT_OCTET16_LEN);
1276 ARRAY_TO_STREAM(p, x, BT_OCTET16_LEN);
1279 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"K", BT_OCTET16_LEN);
1282 aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac);
1285 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"AES_CMAC", BT_OCTET16_LEN);
1289 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);
1360 + BT_OCTET16_LEN /* Y size */;
1361 UINT8 msg[BT_OCTET32_LEN + BT_OCTET32_LEN + BT_OCTET16_LEN];
1362 UINT8 key[BT_OCTET16_LEN];
1363 UINT8 cmac[BT_OCTET16_LEN];
1373 ARRAY_TO_STREAM(p, y, BT_OCTET16_LEN);
1382 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"X", BT_OCTET16_LEN);
1384 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"Y", BT_OCTET16_LEN);
1388 ARRAY_TO_STREAM(p, x, BT_OCTET16_LEN);
1391 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"K", BT_OCTET16_LEN);
1394 if(!aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac))
1402 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
1509 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"N1", BT_OCTET16_LEN);
1511 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"N2", BT_OCTET16_LEN);
1525 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"T", BT_OCTET16_LEN);
1536 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"MacKey", BT_OCTET16_LEN);
1547 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"LTK", BT_OCTET16_LEN);
1590 UINT8 cmac[BT_OCTET16_LEN];
1591 UINT8 key[BT_OCTET16_LEN];
1593 BT_OCTET16_LEN /* N1 size */ + BT_OCTET16_LEN /* N2 size */ +
1595 UINT8 msg[1 + 4 + BT_OCTET16_LEN + BT_OCTET16_LEN + 7 + 7 + 2];
1604 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"T", BT_OCTET16_LEN);
1610 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"N1", BT_OCTET16_LEN);
1612 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"N2", BT_OCTET16_LEN);
1622 ARRAY_TO_STREAM(p, t, BT_OCTET16_LEN);
1625 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"K", BT_OCTET16_LEN);
1631 ARRAY_TO_STREAM(p, n2, BT_OCTET16_LEN);
1632 ARRAY_TO_STREAM(p, n1, BT_OCTET16_LEN);
1640 if (!aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac))
1648 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
1652 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);
1693 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"salt", BT_OCTET16_LEN);
1702 ARRAY_TO_STREAM(p, salt, BT_OCTET16_LEN);
1707 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"K", BT_OCTET16_LEN);
1714 if (!aes_cipher_msg_auth_code(key, msg, BT_OCTET32_LEN, BT_OCTET16_LEN, cmac))
1722 smp_debug_print_nbyte_little_endian (p_prnt, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
1726 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);
1792 BT_OCTET16_LEN);
1832 UINT8 msg_len = BT_OCTET16_LEN /* N1 size */ + BT_OCTET16_LEN /* N2 size */ +
1833 BT_OCTET16_LEN /* R size */ + 3 /* IOcap size */ + 7 /* A1 size*/
1835 UINT8 msg[BT_OCTET16_LEN + BT_OCTET16_LEN + BT_OCTET16_LEN + 3 + 7 + 7];
1843 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"W", BT_OCTET16_LEN);
1845 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"N1", BT_OCTET16_LEN);
1847 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"N2", BT_OCTET16_LEN);
1849 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"R", BT_OCTET16_LEN);
1858 UINT8 cmac[BT_OCTET16_LEN];
1859 UINT8 key[BT_OCTET16_LEN];
1862 ARRAY_TO_STREAM(p, w, BT_OCTET16_LEN);
1865 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"K", BT_OCTET16_LEN);
1872 ARRAY_TO_STREAM(p, r, BT_OCTET16_LEN);
1873 ARRAY_TO_STREAM(p, n2, BT_OCTET16_LEN);
1874 ARRAY_TO_STREAM(p, n1, BT_OCTET16_LEN);
1881 if(!aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac))
1889 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
1893 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);
2101 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"W", BT_OCTET16_LEN);
2107 UINT8 key[BT_OCTET16_LEN];
2110 ARRAY_TO_STREAM(p, w, BT_OCTET16_LEN);
2114 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"K", BT_OCTET16_LEN);
2129 UINT8 cmac[BT_OCTET16_LEN];
2130 if (!aes_cipher_msg_auth_code(key, msg, msg_len, BT_OCTET16_LEN, cmac))
2138 smp_debug_print_nbyte_little_endian (p_print, (const UINT8 *)"AES-CMAC", BT_OCTET16_LEN);
2142 ARRAY_TO_STREAM(p, cmac, BT_OCTET16_LEN);