Searched refs:peer_publ_key (Results 1 – 4 of 4) sorted by relevance
/system/bt/gd/security/ |
D | ecdh_keys.cc | 77 ecc::Point peer_publ_key, new_publ_key; in ComputeDHKey() local 80 memcpy(peer_publ_key.x, remote_public_key.x.data(), 32); in ComputeDHKey() 81 memcpy(peer_publ_key.y, remote_public_key.y.data(), 32); in ComputeDHKey() 82 memset(peer_publ_key.z, 0, 32); in ComputeDHKey() 83 peer_publ_key.z[0] = 1; in ComputeDHKey() 85 ECC_PointMult(&new_publ_key, &peer_publ_key, (uint32_t*)private_key); in ComputeDHKey()
|
/system/bt/stack/smp/ |
D | smp_keys.cc | 721 Point peer_publ_key, new_publ_key; in smp_compute_dhkey() local 727 memcpy(peer_publ_key.x, p_cb->peer_publ_key.x, BT_OCTET32_LEN); in smp_compute_dhkey() 728 memcpy(peer_publ_key.y, p_cb->peer_publ_key.y, BT_OCTET32_LEN); in smp_compute_dhkey() 730 ECC_PointMult(&new_publ_key, &peer_publ_key, (uint32_t*)private_key); in smp_compute_dhkey() 738 smp_debug_print_nbyte_little_endian(p_cb->peer_publ_key.x, "rem public(x)", in smp_compute_dhkey() 740 smp_debug_print_nbyte_little_endian(p_cb->peer_publ_key.y, "rem public(y)", in smp_compute_dhkey() 760 p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, p_cb->rand, 0); in smp_calculate_local_commitment() 767 crypto_toolbox::f4(p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, in smp_calculate_local_commitment() 798 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, in smp_calculate_peer_commitment() 804 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 | 684 STREAM_TO_ARRAY(p_cb->peer_publ_key.x, p, BT_OCTET32_LEN); in smp_process_pairing_public_key() 685 STREAM_TO_ARRAY(p_cb->peer_publ_key.y, p, BT_OCTET32_LEN); in smp_process_pairing_public_key() 688 memcpy(pt.x, p_cb->peer_publ_key.x, BT_OCTET32_LEN); in smp_process_pairing_public_key() 689 memcpy(pt.y, p_cb->peer_publ_key.y, BT_OCTET32_LEN); in smp_process_pairing_public_key()
|
D | smp_int.h | 286 tSMP_PUBLIC_KEY peer_publ_key; member
|