Searched refs:priv_key (Results 1 – 7 of 7) sorted by relevance
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto_tc.c | 133 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey) in bt_mesh_dhkey_gen() argument 138 } else if (uECC_shared_secret(pub_key, priv_key ? priv_key : in bt_mesh_dhkey_gen()
|
D | crypto_psa.c | 296 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey) in bt_mesh_dhkey_gen() argument 304 if (priv_key) { in bt_mesh_dhkey_gen() 314 status = psa_import_key(&attributes, priv_key, PRIV_KEY_SIZE, &priv_key_id); in bt_mesh_dhkey_gen() 348 if (priv_key) { in bt_mesh_dhkey_gen()
|
D | crypto.h | 56 struct bt_mesh_key *enc_key, struct bt_mesh_key *priv_key); 149 int bt_mesh_dhkey_gen(const uint8_t *pub_key, const uint8_t *priv_key, uint8_t *dhkey);
|
D | crypto.c | 78 uint8_t net_id[1], struct bt_mesh_key *enc_key, struct bt_mesh_key *priv_key) in bt_mesh_k2() argument 137 err = bt_mesh_key_import(BT_MESH_KEY_TYPE_ECB, out, priv_key); in bt_mesh_k2() 143 LOG_DBG("priv_key %s", bt_hex(priv_key, sizeof(struct bt_mesh_key))); in bt_mesh_k2()
|
D | provisioner.c | 873 const uint8_t *priv_key = NULL; in reprovision_local_client_server() local 894 priv_key = bt_mesh_prov->private_key_be; 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()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_tls.c | 241 mbedtls_pk_context priv_key; member 482 mbedtls_pk_init(&tls->priv_key); in tls_alloc() 542 mbedtls_pk_free(&tls->priv_key); in tls_release() 1025 &tls->priv_key); in tls_set_own_cert() 1037 struct tls_credential *priv_key) in tls_set_private_key() argument 1042 err = mbedtls_pk_parse_key(&tls->priv_key, priv_key->buf, in tls_set_private_key() 1043 priv_key->len, NULL, 0, in tls_set_private_key()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 49 static uint8_t priv_key[32]; variable 1406 memcpy(priv_key, cp2->set_priv_key, sizeof(cp2->set_priv_key)); in config_prov() 1408 prov.private_key_be = priv_key; in config_prov()
|