Home
last modified time | relevance | path

Searched refs:pub_key (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/subsys/bluetooth/host/
Decc.c23 static uint8_t pub_key[BT_PUB_KEY_LEN]; variable
163 return pub_key; in bt_pub_key_get()
247 memcpy(pub_key, evt->key, BT_PUB_KEY_LEN); in bt_hci_evt_le_pkey_complete()
253 cb->func(evt->status ? NULL : pub_key); in bt_hci_evt_le_pkey_complete()
277 return pub_key; in bt_ecc_get_public_key()
/Zephyr-latest/subsys/bluetooth/mesh/
Dcrypto_tc.c133 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey) in bt_mesh_dhkey_gen() argument
135 if (uECC_valid_public_key(pub_key, &curve_secp256r1)) { in bt_mesh_dhkey_gen()
138 } else if (uECC_shared_secret(pub_key, priv_key ? priv_key : in bt_mesh_dhkey_gen()
Dprovisioner.c872 const uint8_t *pub_key; in reprovision_local_client_server() local
893 pub_key = bt_mesh_prov->public_key_be; in reprovision_local_client_server()
896 pub_key = bt_mesh_pub_key_get(); in reprovision_local_client_server()
899 if (!pub_key) { in reprovision_local_client_server()
904 if (bt_mesh_dhkey_gen(pub_key, priv_key, bt_mesh_prov_link.dhkey)) { in reprovision_local_client_server()
Dcrypto_psa.c296 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey) in bt_mesh_dhkey_gen() argument
332 memcpy(public_key_repr + 1, pub_key, PUB_KEY_SIZE); in bt_mesh_dhkey_gen()
Dcrypto.h149 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey);
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dshell.c833 uint8_t pub_key[64]; in cmd_remote_pub_key_set() local
836 len = hex2bin(argv[1], strlen(argv[1]), pub_key, sizeof(pub_key)); in cmd_remote_pub_key_set()
842 err = bt_mesh_prov_remote_pub_key_set(pub_key); in cmd_remote_pub_key_set()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_mesh.c48 static uint8_t pub_key[64]; variable
1405 memcpy(pub_key, cp2->set_pub_key, sizeof(cp2->set_pub_key)); in config_prov()
1407 prov.public_key_be = pub_key; in config_prov()
1450 memcpy(pub_key, cp2->pub_key, sizeof(pub_key)); in provision_node()
1452 err = bt_mesh_prov_remote_pub_key_set(pub_key); in provision_node()
/Zephyr-latest/tests/bluetooth/tester/src/btp/
Dbtp_mesh.h76 uint8_t pub_key[64]; member