Searched refs:pub_key (Results 1 – 10 of 10) sorted by relevance
/Zephyr-Core-3.4.0/tests/bluetooth/host/ecc/bt_pub_key_get/src/ |
D | test_suite_invalid_inputs.c | 28 const uint8_t *pub_key; in ZTEST() local 34 pub_key = bt_pub_key_get(); in ZTEST() 36 zassert_is_null(pub_key, "Incorrect reference was returned"); in ZTEST() 53 const uint8_t *pub_key; in ZTEST() local 61 pub_key = bt_pub_key_get(); in ZTEST() 63 zassert_is_null(pub_key, "Incorrect reference was returned"); in ZTEST()
|
D | main.c | 40 const uint8_t *pub_key; in ZTEST() local 46 pub_key = bt_pub_key_get(); in ZTEST() 48 zassert_equal(pub_key, bt_ecc_get_public_key(), "Incorrect reference was returned"); in ZTEST() 65 const uint8_t *pub_key; in ZTEST() local 73 pub_key = bt_pub_key_get(); in ZTEST() 75 zassert_equal(pub_key, bt_ecc_get_internal_debug_public_key(), in ZTEST()
|
/Zephyr-Core-3.4.0/subsys/bluetooth/host/ |
D | ecc.c | 20 static uint8_t pub_key[BT_PUB_KEY_LEN]; variable 37 bool bt_pub_key_is_debug(uint8_t *pub_key) in bt_pub_key_is_debug() argument 39 return memcmp(pub_key, debug_public_key, BT_PUB_KEY_LEN) == 0; in bt_pub_key_is_debug() 131 return pub_key; in bt_pub_key_get() 215 memcpy(pub_key, evt->key, BT_PUB_KEY_LEN); in bt_hci_evt_le_pkey_complete() 221 cb->func(evt->status ? NULL : pub_key); in bt_hci_evt_le_pkey_complete() 245 return pub_key; in bt_ecc_get_public_key()
|
D | ecc.h | 45 bool bt_pub_key_is_debug(uint8_t *pub_key);
|
/Zephyr-Core-3.4.0/subsys/bluetooth/mesh/ |
D | crypto_tc.c | 123 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey) in bt_mesh_dhkey_gen() argument 125 if (uECC_valid_public_key(pub_key, &curve_secp256r1)) { in bt_mesh_dhkey_gen() 128 } else if (uECC_shared_secret(pub_key, priv_key ? priv_key : key.private_key_be, dhkey, in bt_mesh_dhkey_gen()
|
D | crypto_psa.c | 353 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey) in bt_mesh_dhkey_gen() argument 389 memcpy(public_key_repr + 1, pub_key, PUB_KEY_SIZE); in bt_mesh_dhkey_gen()
|
D | crypto.h | 141 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey);
|
/Zephyr-Core-3.4.0/subsys/bluetooth/mesh/shell/ |
D | shell.c | 822 uint8_t pub_key[64]; in cmd_remote_pub_key_set() local 825 len = hex2bin(argv[1], strlen(argv[1]), pub_key, sizeof(pub_key)); in cmd_remote_pub_key_set() 831 err = bt_mesh_prov_remote_pub_key_set(pub_key); in cmd_remote_pub_key_set()
|
/Zephyr-Core-3.4.0/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 40 static uint8_t pub_key[64]; variable 480 memcpy(pub_key, cp2->set_pub_key, sizeof(cp2->set_pub_key)); in config_prov() 482 prov.public_key_be = pub_key; in config_prov() 525 memcpy(pub_key, cp2->pub_key, sizeof(pub_key)); in provision_node() 527 err = bt_mesh_prov_remote_pub_key_set(pub_key); in provision_node()
|
/Zephyr-Core-3.4.0/tests/bluetooth/tester/src/btp/ |
D | btp_mesh.h | 72 uint8_t pub_key[64]; member
|