/Zephyr-latest/subsys/bluetooth/mesh/ |
D | app_keys.c | 50 struct app_key { struct 62 static struct app_key apps[CONFIG_BT_MESH_APP_KEY_COUNT] = { argument 69 static struct app_key *app_get(uint16_t app_idx) in app_get() 96 const struct app_key *app; in store_app_key() 179 static void app_key_evt(struct app_key *app, enum bt_mesh_key_evt evt) in app_key_evt() 186 static struct app_key *app_key_alloc(uint16_t app_idx) in app_key_alloc() 188 struct app_key *app = NULL; in app_key_alloc() 204 static void app_key_del(struct app_key *app) in app_key_del() 221 static void app_key_revoke(struct app_key *app) in app_key_revoke() 242 struct app_key *app; in bt_mesh_app_key_add() [all …]
|
D | cdb.c | 36 app_key:1, /* 1 if this is an AppKey, 0 if a NetKey */ member 391 bt_mesh_key_assign(&app->keys[0].app_key, &tmp[0]); in cdb_app_key_set() 392 bt_mesh_key_assign(&app->keys[1].app_key, &tmp[1]); in cdb_app_key_set() 531 memcpy(&key.val[0], &app->keys[0].app_key, sizeof(struct bt_mesh_key)); in store_cdb_app_key() 532 memcpy(&key.val[1], &app->keys[1].app_key, sizeof(struct bt_mesh_key)); in store_cdb_app_key() 623 static struct key_update *cdb_key_update_find(bool app_key, uint16_t key_idx, in cdb_key_update_find() argument 640 if (update->app_key != app_key) { in cdb_key_update_find() 678 free_slot->app_key = 0U; in update_cdb_subnet_settings() 711 free_slot->app_key = 1U; in update_cdb_app_key_settings() 1066 bt_mesh_key_destroy(&key->keys[0].app_key); in bt_mesh_cdb_app_key_del() [all …]
|
D | app_keys.h | 44 const struct bt_mesh_key **app_key, uint8_t *aid);
|
D | crypto.h | 86 static inline int bt_mesh_app_id(const uint8_t app_key[16], uint8_t app_id[1]) in bt_mesh_app_id() 88 return bt_mesh_k4(app_key, app_id); in bt_mesh_app_id()
|
D | cfg_cli.c | 1408 uint16_t key_app_idx, const uint8_t app_key[16], uint8_t *status) in bt_mesh_cfg_cli_app_key_add() 1426 net_buf_simple_add_mem(&msg, app_key, 16); in bt_mesh_cfg_cli_app_key_add() 1432 uint16_t key_app_idx, const uint8_t app_key[16], uint8_t *status) in bt_mesh_cfg_cli_app_key_update() 1450 net_buf_simple_add_mem(&msg, app_key, 16); in bt_mesh_cfg_cli_app_key_update()
|
/Zephyr-latest/samples/subsys/lorawan/fuota/src/ |
D | main.c | 60 uint8_t app_key[] = LORAWAN_APP_KEY; in main() local 86 join_cfg.otaa.app_key = app_key; in main() 87 join_cfg.otaa.nwk_key = app_key; in main()
|
/Zephyr-latest/samples/subsys/lorawan/class_a/src/ |
D | main.c | 54 uint8_t app_key[] = LORAWAN_APP_KEY; in main() local 91 join_cfg.otaa.app_key = app_key; in main() 92 join_cfg.otaa.nwk_key = app_key; in main()
|
/Zephyr-latest/samples/bluetooth/mesh_provisioner/src/ |
D | main.c | 75 uint8_t app_key[16]; in setup_cdb() local 84 bt_rand(app_key, 16); in setup_cdb() 86 err = bt_mesh_cdb_app_key_import(key, 0, app_key); in setup_cdb() 100 uint8_t app_key[16]; in configure_self() local 112 err = bt_mesh_cdb_app_key_export(key, 0, app_key); in configure_self() 120 app_key, &status); in configure_self() 149 uint8_t app_key[16]; in configure_node() local 162 err = bt_mesh_cdb_app_key_export(key, 0, app_key); in configure_node() 169 err = bt_mesh_cfg_cli_app_key_add(net_idx, node->addr, net_idx, app_idx, app_key, &status); in configure_node()
|
/Zephyr-latest/samples/bluetooth/mesh_demo/src/ |
D | main.c | 33 static const uint8_t app_key[16] = { variable 123 bt_mesh_cfg_cli_app_key_add(net_idx, addr, net_idx, app_idx, app_key, NULL); in configure()
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | shell.c | 1286 uint8_t app_key[16]; in cdb_print_app_keys() local 1296 if (bt_mesh_cdb_app_key_export(key, 0, app_key)) { in cdb_print_app_keys() 1302 bin2hex(app_key, 16, key_hex_str, sizeof(key_hex_str)); in cdb_print_app_keys() 1479 uint8_t app_key[16]; in cmd_cdb_app_key_add() local 1491 bt_rand(app_key, 16); in cmd_cdb_app_key_add() 1493 len = hex2bin(argv[3], strlen(argv[3]), app_key, in cmd_cdb_app_key_add() 1494 sizeof(app_key)); in cmd_cdb_app_key_add() 1495 memset(app_key + len, 0, sizeof(app_key) - len); in cmd_cdb_app_key_add() 1504 if (bt_mesh_cdb_app_key_import(key, 0, app_key)) { in cmd_cdb_app_key_add()
|
D | cfg.c | 723 struct bt_mesh_cdb_app_key *app_key; in cmd_app_key_add() local 725 app_key = bt_mesh_cdb_app_key_get(key_app_idx); in cmd_app_key_add() 726 if (app_key) { in cmd_app_key_add() 732 if (bt_mesh_cdb_app_key_export(app_key, 0, key_val)) { in cmd_app_key_add() 738 app_key = bt_mesh_cdb_app_key_alloc(key_net_idx, key_app_idx); in cmd_app_key_add() 739 if (!app_key) { in cmd_app_key_add() 744 if (bt_mesh_cdb_app_key_import(app_key, 0, key_val)) { in cmd_app_key_add() 749 bt_mesh_cdb_app_key_store(app_key); in cmd_app_key_add()
|
/Zephyr-latest/include/zephyr/lorawan/ |
D | lorawan.h | 128 uint8_t *app_key; member
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | cdb.h | 60 struct bt_mesh_key app_key; member
|
D | cfg_cli.h | 843 uint16_t key_app_idx, const uint8_t app_key[16], uint8_t *status); 1529 uint16_t key_app_idx, const uint8_t app_key[16],
|
/Zephyr-latest/samples/bluetooth/mesh/src/ |
D | main.c | 343 static uint8_t app_key[16]; in button_pressed() local 361 err = bt_mesh_app_key_add(0, 0, app_key); in button_pressed()
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_cdp1.c | 48 static uint8_t app_key[16] = {0xaa}; variable 301 err = bt_mesh_cfg_cli_app_key_add(0, cfg.addr, 0, 0, app_key, &status); in provision_and_configure()
|
D | test_suspend.c | 33 static uint8_t app_key[16] = {0xaa}; variable 168 err = bt_mesh_cfg_cli_app_key_add(0, cfg.addr, 0, 0, app_key, &status); in provision_and_configure()
|
D | test_transport.c | 274 uint8_t app_key[16] = { 0xba, 0xd0, 0x11, 0x22}; in test_tx_unknown_app() local 279 ASSERT_OK_MSG(bt_mesh_cfg_cli_app_key_add(0, cfg->addr, 0, 1, app_key, &status), in test_tx_unknown_app()
|
D | test_access.c | 53 static uint8_t app_key[16] = { 0xaa }; variable 327 err = bt_mesh_cfg_cli_app_key_add(0, addr, 0, 0, app_key, &status); in common_configure()
|
D | test_blob.c | 129 static uint8_t app_key[16] = { 0xaa }; variable 307 err = bt_mesh_cfg_cli_app_key_add(0, addr, 0, 0, app_key, &status); in common_configure()
|
D | test_beacon.c | 91 const uint8_t app_key[16] = { 4, 5, 6 }; variable
|
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/ |
D | mesh.c | 583 static const uint8_t app_key[16] = { in provision_and_configure() local 615 app_key, NULL); in provision_and_configure()
|
/Zephyr-latest/tests/bluetooth/tester/src/btp/ |
D | btp_mesh.h | 344 uint8_t app_key[16]; member 581 uint8_t app_key[16]; member
|
/Zephyr-latest/subsys/lorawan/ |
D | lorawan.c | 272 mib_req.Param.AppKey = join_cfg->otaa.app_key; in lorawan_join_otaa()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 3082 sys_le16_to_cpu(cp->app_key), in config_appkey_add() 3110 sys_le16_to_cpu(cp->app_key), in config_appkey_update()
|