Home
last modified time | relevance | path

Searched refs:app_key (Results 1 – 9 of 9) sorted by relevance

/btstack/test/crypto/
H A Daes_ccm_test.c35 DEFINE_KEY(app_key, "63964771734fbd76e3b40519d1d94a48"); in message_24_upper_transport_encrypt()
47 …bt_mesh_ccm_encrypt(app_key, app_nonce, plaintext, sizeof(plaintext), label_uuid, sizeof(label_uui… in message_24_upper_transport_encrypt()
56 …btstack_crypto_ccm_init(&btstack_crypto_ccm, app_key, app_nonce, sizeof(plaintext), sizeof(label_u… in message_24_upper_transport_encrypt()
67 DEFINE_KEY(app_key, "63964771734fbd76e3b40519d1d94a48"); in message_24_upper_transport_decrypt()
80 …bt_mesh_ccm_decrypt(app_key, app_nonce, ciphertext, sizeof(ciphertext), label_uuid, sizeof(label_u… in message_24_upper_transport_decrypt()
89 …btstack_crypto_ccm_init(&btstack_crypto_ccm, app_key, app_nonce, sizeof(ciphertext), sizeof(label_… in message_24_upper_transport_decrypt()
/btstack/src/mesh/
H A Dmesh_generic_on_off_client.c134 mesh_transport_key_t * app_key = mesh_transport_key_get(appkey_index); in mesh_generic_on_off_client_publish() local
135 if (app_key == NULL) return MESH_ERROR_APPKEY_INDEX_INVALID; in mesh_generic_on_off_client_publish()
136 …on_off_client_set_unacknowledged(mesh_model, publication_model->address, app_key->netkey_index, ap… in mesh_generic_on_off_client_publish()
H A Dmesh.c680 void mesh_store_app_key(mesh_transport_key_t * app_key){ in mesh_store_app_key() argument
682 …al index 0x%x, AppKey Index 0x%06x, AID %02x: ", app_key->internal_index, app_key->appkey_index, a… in mesh_store_app_key()
683 printf_hexdump(app_key->key, 16); in mesh_store_app_key()
684 uint32_t tag = mesh_transport_key_tag_for_internal_index(app_key->internal_index); in mesh_store_app_key()
685 data.netkey_index = app_key->netkey_index; in mesh_store_app_key()
686 data.appkey_index = app_key->appkey_index; in mesh_store_app_key()
687 data.aid = app_key->aid; in mesh_store_app_key()
688 data.version = app_key->version; in mesh_store_app_key()
689 (void)memcpy(data.key, app_key->key, 16); in mesh_store_app_key()
H A Dmesh_configuration_server.c897 mesh_transport_key_t * app_key = NULL; in config_appkey_add_handler() local
900 app_key = btstack_memory_mesh_transport_key_get(); in config_appkey_add_handler()
902 if (app_key == NULL) { in config_appkey_add_handler()
909 app_key->internal_index = internal_index; in config_appkey_add_handler()
910 app_key->akf = 1; in config_appkey_add_handler()
911 app_key->appkey_index = appkey_index; in config_appkey_add_handler()
912 app_key->netkey_index = netkey_index; in config_appkey_add_handler()
913 app_key->version = 0; in config_appkey_add_handler()
914 app_key->old_key = 0; in config_appkey_add_handler()
916 (void)memcpy(app_key->key, appkey, 16); in config_appkey_add_handler()
[all …]
H A Dmesh_crypto.c272 …_calc_aid(btstack_crypto_aes128_cmac_t * request, mesh_transport_key_t * app_key, void (* callback… in mesh_transport_key_calc_aid() argument
273 mesh_k4(request, app_key->key, &app_key->aid, callback, callback_arg); in mesh_transport_key_calc_aid()
H A Dmesh_generic_level_client.c178 mesh_transport_key_t * app_key = mesh_transport_key_get(appkey_index); in mesh_generic_level_client_publish_level() local
179 if (app_key == NULL) return MESH_ERROR_APPKEY_INDEX_INVALID; in mesh_generic_level_client_publish_level()
181 …_client_level_set_unacknowledged(mesh_model, publication_model->address, app_key->netkey_index, ap… in mesh_generic_level_client_publish_level()
H A Dmesh_crypto.h105 …_calc_aid(btstack_crypto_aes128_cmac_t * request, mesh_transport_key_t * app_key, void (* callback…
H A Dmesh.h89 void mesh_store_app_key(mesh_transport_key_t * app_key);
H A Dmesh_access.c948 mesh_transport_key_t * app_key = mesh_transport_key_get(appkey_index); in mesh_model_publication_publish_now_model() local
949 if (app_key == NULL) return; in mesh_model_publication_publish_now_model()
961 …mesh_upper_transport_setup_access_pdu_header(pdu, app_key->netkey_index, appkey_index, ttl, mesh_a… in mesh_model_publication_publish_now_model()