Home
last modified time | relevance | path

Searched refs:peer_publ_key (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Bluetooth/system/gd/security/
Decdh_keys.cc79 ecc::Point peer_publ_key, new_publ_key; in ComputeDHKey() local
82 memcpy(peer_publ_key.x, remote_public_key.x.data(), 32); in ComputeDHKey()
83 memcpy(peer_publ_key.y, remote_public_key.y.data(), 32); in ComputeDHKey()
84 memset(peer_publ_key.z, 0, 32); in ComputeDHKey()
85 peer_publ_key.z[0] = 1; in ComputeDHKey()
87 ECC_PointMult(&new_publ_key, &peer_publ_key, (uint32_t*)private_key); in ComputeDHKey()
/packages/modules/Bluetooth/system/stack/smp/
Dsmp_keys.cc756 Point peer_publ_key, new_publ_key; in smp_compute_dhkey() local
762 memcpy(peer_publ_key.x, p_cb->peer_publ_key.x, BT_OCTET32_LEN); in smp_compute_dhkey()
763 memcpy(peer_publ_key.y, p_cb->peer_publ_key.y, BT_OCTET32_LEN); in smp_compute_dhkey()
765 ECC_PointMult(&new_publ_key, &peer_publ_key, (uint32_t*)private_key); in smp_compute_dhkey()
773 smp_debug_print_nbyte_little_endian(p_cb->peer_publ_key.x, "rem public(x)", in smp_compute_dhkey()
775 smp_debug_print_nbyte_little_endian(p_cb->peer_publ_key.y, "rem public(y)", in smp_compute_dhkey()
795 p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, p_cb->rand, 0); in smp_calculate_local_commitment()
802 crypto_toolbox::f4(p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, in smp_calculate_local_commitment()
831 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, in smp_calculate_peer_commitment()
837 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, in smp_calculate_peer_commitment()
[all …]
Dsmp_act.cc729 STREAM_TO_ARRAY(p_cb->peer_publ_key.x, p, BT_OCTET32_LEN); in smp_process_pairing_public_key()
730 STREAM_TO_ARRAY(p_cb->peer_publ_key.y, p, BT_OCTET32_LEN); in smp_process_pairing_public_key()
733 memcpy(pt.x, p_cb->peer_publ_key.x, BT_OCTET32_LEN); in smp_process_pairing_public_key()
734 memcpy(pt.y, p_cb->peer_publ_key.y, BT_OCTET32_LEN); in smp_process_pairing_public_key()
736 if (!memcmp(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, BT_OCTET32_LEN)) { in smp_process_pairing_public_key()
Dsmp_int.h312 tSMP_PUBLIC_KEY peer_publ_key; variable