Searched refs:peer_publ_key (Results 1 – 4 of 4) sorted by relevance
/system/bt/gd/security/ |
D | ecdh_keys.cc | 78 ecc::Point peer_publ_key, new_publ_key; in ComputeDHKey() local 81 memcpy(peer_publ_key.x, remote_public_key.x.data(), 32); in ComputeDHKey() 82 memcpy(peer_publ_key.y, remote_public_key.y.data(), 32); in ComputeDHKey() 83 memset(peer_publ_key.z, 0, 32); in ComputeDHKey() 84 peer_publ_key.z[0] = 1; in ComputeDHKey() 86 ECC_PointMult(&new_publ_key, &peer_publ_key, (uint32_t*)private_key); in ComputeDHKey()
|
/system/bt/stack/smp/ |
D | smp_keys.cc | 717 Point peer_publ_key, new_publ_key; in smp_compute_dhkey() local 723 memcpy(peer_publ_key.x, p_cb->peer_publ_key.x, BT_OCTET32_LEN); in smp_compute_dhkey() 724 memcpy(peer_publ_key.y, p_cb->peer_publ_key.y, BT_OCTET32_LEN); in smp_compute_dhkey() 726 ECC_PointMult(&new_publ_key, &peer_publ_key, (uint32_t*)private_key); in smp_compute_dhkey() 734 smp_debug_print_nbyte_little_endian(p_cb->peer_publ_key.x, "rem public(x)", in smp_compute_dhkey() 736 smp_debug_print_nbyte_little_endian(p_cb->peer_publ_key.y, "rem public(y)", in smp_compute_dhkey() 756 p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, p_cb->rand, 0); in smp_calculate_local_commitment() 763 crypto_toolbox::f4(p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, in smp_calculate_local_commitment() 794 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, in smp_calculate_peer_commitment() 800 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, in smp_calculate_peer_commitment() [all …]
|
D | smp_act.cc | 695 STREAM_TO_ARRAY(p_cb->peer_publ_key.x, p, BT_OCTET32_LEN); in smp_process_pairing_public_key() 696 STREAM_TO_ARRAY(p_cb->peer_publ_key.y, p, BT_OCTET32_LEN); in smp_process_pairing_public_key() 699 memcpy(pt.x, p_cb->peer_publ_key.x, BT_OCTET32_LEN); in smp_process_pairing_public_key() 700 memcpy(pt.y, p_cb->peer_publ_key.y, BT_OCTET32_LEN); in smp_process_pairing_public_key() 702 if (!memcmp(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, BT_OCTET32_LEN)) { in smp_process_pairing_public_key()
|
D | smp_int.h | 256 tSMP_PUBLIC_KEY peer_publ_key; member
|