/external/bluetooth/bluedroid/stack/smp/ |
smp_cmac.c | 61 p[BT_OCTET16_LEN - i*4 -1], p[BT_OCTET16_LEN - i*4 -2], 62 p[BT_OCTET16_LEN - i*4 -3], p[BT_OCTET16_LEN - i*4 -4]); 73 ** must point to a BT_OCTET16_LEN memory space; where include 83 for ( i = length ; i < BT_OCTET16_LEN; i++ ) 84 p[BT_OCTET16_LEN - i - 1] = ( i == length ) ? 0x80 : 0; 100 for ( i = 0; i < BT_OCTET16_LEN ; i ++ ) 146 smp_xor_128(&cmac_cb.text[(cmac_cb.round - i)*BT_OCTET16_LEN], x); /* Mi' := Mi (+) X */ 148 if (!SMP_Encrypt(key, BT_OCTET16_LEN, &cmac_cb.text[(cmac_cb.round - i)*BT_OCTET16_LEN], BT_OCTET16_LEN, &output) [all...] |
smp_utils.c | 39 #define SMP_CONFIRM_CMD_SIZE (BT_OCTET16_LEN + 1) 40 #define SMP_INIT_CMD_SIZE (BT_OCTET16_LEN + 1) 41 #define SMP_ENC_INFO_SIZE (BT_OCTET16_LEN + 1) 43 #define SMP_ID_INFO_SIZE (BT_OCTET16_LEN + 1) 45 #define SMP_SIGN_INFO_SIZE (BT_OCTET16_LEN + 1) 216 ARRAY_TO_STREAM (p, p_cb->confirm, BT_OCTET16_LEN); 241 ARRAY_TO_STREAM (p, p_cb->rand, BT_OCTET16_LEN); 266 ARRAY_TO_STREAM (p, p_cb->ltk, BT_OCTET16_LEN); 320 ARRAY_TO_STREAM (p, irk, BT_OCTET16_LEN); 377 ARRAY_TO_STREAM (p, p_cb->csrk, BT_OCTET16_LEN); [all...] |
smp_keys.c | 197 memset(p_cb->tk, 0, BT_OCTET16_LEN); 232 memset(p, 0, BT_OCTET16_LEN); 245 if (!SMP_Encrypt( p_cb->tk, BT_OCTET16_LEN, ptext, BT_OCTET16_LEN, &output)) 353 if (!SMP_Encrypt(er, BT_OCTET16_LEN, buffer, 4, &output)) 360 memcpy((void *)p_cb->csrk, output.param_buf, BT_OCTET16_LEN); 558 if (!SMP_Encrypt(p_cb->tk, BT_OCTET16_LEN, p1, BT_OCTET16_LEN, &output)) 597 if (!SMP_Encrypt(p_cb->tk, BT_OCTET16_LEN, p2, BT_OCTET16_LEN, &output) [all...] |
smp_api.c | 298 if (len > BT_OCTET16_LEN) 299 len = BT_OCTET16_LEN;
|
smp_act.c | 205 memcpy(p_cb->rand, p_cb->test_rand, BT_OCTET16_LEN); 424 STREAM_TO_ARRAY(p_cb->rconfirm, p, BT_OCTET16_LEN); 439 STREAM_TO_ARRAY(p_cb->rrand, p, BT_OCTET16_LEN); 451 STREAM_TO_ARRAY(p_cb->ltk, p, BT_OCTET16_LEN); 471 memcpy(le_key.ltk, p_cb->ltk, BT_OCTET16_LEN); 487 STREAM_TO_ARRAY (p_cb->tk, p, BT_OCTET16_LEN); /* reuse TK for IRK */ 505 memcpy(pid_key.irk, p_cb->tk, BT_OCTET16_LEN); 525 memcpy (le_key.csrk, p_data, BT_OCTET16_LEN); /* get peer CSRK */ 545 !memcmp(p_cb->rconfirm, p_data->key.p_data, BT_OCTET16_LEN)) 827 memset(p_cb->tk, 0, BT_OCTET16_LEN); [all...] |
/external/bluetooth/bluedroid/btif/include/ |
btif_dm.h | 53 UINT8 ltk[BT_OCTET16_LEN]; 63 UINT8 csrk[BT_OCTET16_LEN]; 89 UINT8 pid_key[BT_OCTET16_LEN]; /* peer device ID key */
|
/external/bluetooth/bluedroid/bta/dm/ |
bta_dm_ci.c | 83 memcpy(p_msg->c, c, BT_OCTET16_LEN); 84 memcpy(p_msg->r, r, BT_OCTET16_LEN);
|
bta_dm_act.c | [all...] |
/external/bluetooth/bluedroid/stack/btm/ |
btm_ble.c | 242 memcpy (er, btm_cb.devcb.er, BT_OCTET16_LEN); 262 memcpy (irk, btm_cb.devcb.id_keys.irk, BT_OCTET16_LEN); 280 memcpy (dhk, btm_cb.devcb.id_keys.dhk, BT_OCTET16_LEN); 788 params.param_len = BT_OCTET16_LEN; 914 memcpy(p_rec->ble.keys.ltk, p_keys->penc_key.ltk, BT_OCTET16_LEN); [all...] |
btm_ble_addr.c | 104 if (!SMP_Encrypt(btm_cb.devcb.id_keys.irk, BT_OCTET16_LEN, p->param_buf, 3, &output)) 296 SMP_Encrypt(p_dev_rec->ble.keys.irk, BT_OCTET16_LEN,
|
/external/bluetooth/bluedroid/btif/src/ |
btif_dm.c | 99 UINT8 ir[BT_OCTET16_LEN]; 100 UINT8 irk[BT_OCTET16_LEN]; 101 UINT8 dhk[BT_OCTET16_LEN]; 107 UINT8 er[BT_OCTET16_LEN]; [all...] |
/external/bluetooth/bluedroid/stack/include/ |
smp_api.h | 157 UINT8 param_buf[BT_OCTET16_LEN];
|
btm_ble_api.h | 166 UINT8 param_buf[BT_OCTET16_LEN]; [all...] |
bt_types.h | 320 #define BT_OCTET16_LEN 16 321 typedef UINT8 BT_OCTET16[BT_OCTET16_LEN]; /* octet array: size 16 */
|
/external/libnfc-nci/src/include/ |
bt_types.h | 304 #define BT_OCTET16_LEN 16 305 typedef UINT8 BT_OCTET16[BT_OCTET16_LEN]; /* octet array: size 16 */
|