/Zephyr-latest/subsys/bluetooth/host/ |
D | keys.c | 90 struct bt_keys *keys; in bt_keys_get_addr() local 99 keys = &key_pool[i]; in bt_keys_get_addr() 101 if (keys->id == id && bt_addr_le_eq(&keys->addr, addr)) { in bt_keys_get_addr() 102 return keys; in bt_keys_get_addr() 105 bt_addr_le_eq(&keys->addr, BT_ADDR_LE_ANY)) { in bt_keys_get_addr() 143 keys = &key_pool[first_free_slot]; in bt_keys_get_addr() 144 keys->id = id; in bt_keys_get_addr() 145 bt_addr_le_copy(&keys->addr, addr); in bt_keys_get_addr() 147 keys->aging_counter = ++aging_counter_val; in bt_keys_get_addr() 148 last_keys_updated = keys; in bt_keys_get_addr() [all …]
|
D | smp.c | 381 if (!conn->le.keys) { in smp_keys_check() 382 conn->le.keys = bt_keys_find(BT_KEYS_LTK_P256, in smp_keys_check() 384 if (!conn->le.keys) { in smp_keys_check() 385 conn->le.keys = bt_keys_find(BT_KEYS_LTK, in smp_keys_check() 391 if (!conn->le.keys || in smp_keys_check() 392 !(conn->le.keys->keys & (BT_KEYS_LTK | BT_KEYS_LTK_P256))) { in smp_keys_check() 397 !(conn->le.keys->flags & BT_KEYS_AUTHENTICATED)) { in smp_keys_check() 402 !((conn->le.keys->flags & BT_KEYS_AUTHENTICATED) && in smp_keys_check() 403 (conn->le.keys->keys & BT_KEYS_LTK_P256) && in smp_keys_check() 404 (conn->le.keys->enc_size == BT_SMP_MAX_ENC_KEY_SIZE))) { in smp_keys_check() [all …]
|
D | keys.h | 72 uint16_t keys; member 103 void bt_keys_foreach_type(enum bt_keys_type type, void (*func)(struct bt_keys *keys, void *data), 181 void bt_keys_add_type(struct bt_keys *keys, enum bt_keys_type type); 188 void bt_keys_clear(struct bt_keys *keys); 198 int bt_keys_store(struct bt_keys *keys); 200 static inline int bt_keys_store(struct bt_keys *keys) in bt_keys_store() argument 238 void bt_keys_show_sniffer_info(struct bt_keys *keys, void *data);
|
D | id.c | 56 struct bt_keys *keys; in bt_lookup_id_addr() local 58 keys = bt_keys_find_irk(id, addr); in bt_lookup_id_addr() 59 if (keys) { in bt_lookup_id_addr() 60 LOG_DBG("Identity %s matched RPA %s", bt_addr_le_str(&keys->addr), in bt_lookup_id_addr() 62 return &keys->addr; in bt_lookup_id_addr() 904 static void pending_id_update(struct bt_keys *keys, void *data) in pending_id_update() argument 906 if (keys->state & BT_KEYS_ID_PENDING_ADD) { in pending_id_update() 907 keys->state &= ~BT_KEYS_ID_PENDING_ADD; in pending_id_update() 908 bt_id_add(keys); in pending_id_update() 912 if (keys->state & BT_KEYS_ID_PENDING_DEL) { in pending_id_update() [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_del/src/ |
D | main.c | 57 struct bt_keys keys = {0}; in ZTEST() local 63 keys.state |= BT_KEYS_ID_ADDED; in ZTEST() 65 bt_id_del(&keys); in ZTEST() 70 zassert_false(keys.state & BT_KEYS_ID_ADDED, "Incorrect key state"); in ZTEST() 86 struct bt_keys keys = {0}; in ZTEST() local 92 keys.state |= BT_KEYS_ID_ADDED; in ZTEST() 94 bt_id_del(&keys); in ZTEST() 99 zassert_false(keys.state & BT_KEYS_ID_ADDED, "Incorrect key state"); in ZTEST() 117 struct bt_keys keys = {0}; in ZTEST() local 126 bt_id_del(&keys); in ZTEST() [all …]
|
D | test_suite_invalid_inputs.c | 46 struct bt_keys keys = {0}; in ZTEST() local 52 bt_id_del(&keys); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_add/src/ |
D | main.c | 54 struct bt_keys keys = {0}; in ZTEST() local 61 bt_id_add(&keys); in ZTEST() 66 zassert_true((keys.state & BT_KEYS_ID_ADDED) == BT_KEYS_ID_ADDED, "Incorrect key state"); in ZTEST() 81 struct bt_keys keys = {0}; in ZTEST() local 88 bt_id_add(&keys); in ZTEST() 93 zassert_true((keys.state & BT_KEYS_ID_ADDED) == BT_KEYS_ID_ADDED, "Incorrect key state"); in ZTEST() 111 struct bt_keys keys = {0}; in ZTEST() local 120 bt_id_add(&keys); in ZTEST() 125 zassert_true((keys.state & BT_KEYS_ID_PENDING_ADD) == BT_KEYS_ID_PENDING_ADD, in ZTEST() 163 struct bt_keys keys = {0}; in ZTEST() local [all …]
|
/Zephyr-latest/tests/posix/common/src/ |
D | key.c | 17 static pthread_key_t keys[N_KEY]; variable 43 zassert_ok(pthread_setspecific(keys[i], value), "pthread_setspecific failed"); in thread_func() 44 zassert_equal(pthread_getspecific(keys[i]), value, in thread_func() 59 zassert_ok(pthread_key_create(&keys[i], NULL), in make_keys() 112 zassert_ok(pthread_key_delete(keys[i]), "attempt to delete keys[%d] failed", i); in ZTEST() 130 pthread_key_t keys[CONFIG_POSIX_THREAD_KEYS_MAX]; in ZTEST() local 132 for (size_t i = 0; i < ARRAY_SIZE(keys); ++i) { in ZTEST() 133 zassert_ok(pthread_key_create(&keys[i], NULL), "failed to create key %zu", i); in ZTEST() 136 key = keys[j]; in ZTEST() 137 zassert_ok(pthread_key_delete(keys[j])); in ZTEST() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | app_keys.c | 57 } keys[2]; member 112 memcpy(&key.val[0], &app->keys[0].val, sizeof(struct bt_mesh_key)); in store_app_key() 113 memcpy(&key.val[1], &app->keys[1].val, sizeof(struct bt_mesh_key)); in store_app_key() 216 bt_mesh_key_destroy(&app->keys[0].val); in app_key_del() 217 bt_mesh_key_destroy(&app->keys[1].val); in app_key_del() 218 memset(app->keys, 0, sizeof(app->keys)); in app_key_del() 227 bt_mesh_key_destroy(&app->keys[0].val); in app_key_revoke() 228 memcpy(&app->keys[0], &app->keys[1], sizeof(app->keys[0])); in app_key_revoke() 229 memset(&app->keys[1], 0, sizeof(app->keys[1])); in app_key_revoke() 260 if (bt_mesh_key_compare(key, &app->keys[0].val)) { in bt_mesh_app_key_add() [all …]
|
D | subnet.c | 108 memcpy(&key.val[0], &sub->keys[0].net, sizeof(struct bt_mesh_key)); in store_subnet() 109 memcpy(&key.val[1], &sub->keys[1].net, sizeof(struct bt_mesh_key)); in store_subnet() 234 subnet_keys_destroy(&sub->keys[0]); in key_refresh() 235 memcpy(&sub->keys[0], &sub->keys[1], sizeof(sub->keys[0])); in key_refresh() 236 sub->keys[1].valid = 0U; in key_refresh() 288 for (int i = 0; i < ARRAY_SIZE(sub->keys); i++) { in subnet_del() 289 if (sub->keys[i].valid) { in subnet_del() 290 subnet_keys_destroy(&sub->keys[i]); in subnet_del() 307 static int net_keys_create(struct bt_mesh_subnet_keys *keys, bool import, const uint8_t key[16]) in net_keys_create() argument 312 err = msg_cred_create(&keys->msg, &p, 1, key); in net_keys_create() [all …]
|
D | beacon.c | 142 struct bt_mesh_subnet_keys *keys; in secure_beacon_create() local 146 keys = &sub->keys[SUBNET_KEY_TX_IDX(sub)]; in secure_beacon_create() 151 net_buf_simple_add_mem(buf, keys->net_id, 8); in secure_beacon_create() 159 bt_hex(keys->net_id, 8)); in secure_beacon_create() 199 struct bt_mesh_subnet_keys *keys = &sub->keys[SUBNET_KEY_TX_IDX(sub)]; in private_beacon_update() local 203 err = bt_mesh_beacon_encrypt(&keys->priv_beacon, flags, bt_mesh.iv_index, in private_beacon_update() 522 static bool auth_match(struct bt_mesh_subnet_keys *keys, in auth_match() argument 527 if (memcmp(params->net_id, keys->net_id, 8)) { in auth_match() 531 if (bt_mesh_beacon_auth(&keys->beacon, params->flags, keys->net_id, params->iv_index, in auth_match() 549 for (int i = 0; i < ARRAY_SIZE(sub->keys); i++) { in secure_beacon_authenticate() [all …]
|
D | cdb.c | 320 bt_mesh_key_assign(&sub->keys[0].net_key, &tmp[0]); in cdb_subnet_set() 321 bt_mesh_key_assign(&sub->keys[1].net_key, &tmp[1]); in cdb_subnet_set() 333 bt_mesh_key_assign(&sub->keys[0].net_key, &tmp[0]); in cdb_subnet_set() 334 bt_mesh_key_assign(&sub->keys[1].net_key, &tmp[1]); in cdb_subnet_set() 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() 490 bt_hex(&sub->keys[0].net_key, sizeof(struct bt_mesh_key))); in store_cdb_subnet() 492 memcpy(&key.val[0], &sub->keys[0].net_key, sizeof(struct bt_mesh_key)); in store_cdb_subnet() 493 memcpy(&key.val[1], &sub->keys[1].net_key, sizeof(struct bt_mesh_key)); in store_cdb_subnet() 531 memcpy(&key.val[0], &app->keys[0].app_key, sizeof(struct bt_mesh_key)); in store_cdb_app_key() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/ |
D | leshan.py | 282 keys = [int(key) for key in path.lstrip("/").split('/')] 283 if len(keys) == 1: 285 elif len(keys) == 2: 286 if keys[0] not in data: 287 data[keys[0]] = {} 288 data[keys[0]].update(cls._decode_obj_inst(content)) 289 elif len(keys) == 3: 290 if keys[0] not in data: 291 data[keys[0]] = {} 292 if keys[1] not in data[keys[0]]: [all …]
|
/Zephyr-latest/scripts/net/ |
D | enumerate_http_status.py | 44 keys = sorted(codes2.keys()) variable 45 for key in keys:
|
/Zephyr-latest/samples/subsys/display/lvgl/boards/ |
D | native_posix.overlay | 24 keys: keys { 25 compatible = "gpio-keys"; 60 input = <&keys>; 73 input = <&keys>;
|
/Zephyr-latest/tests/bluetooth/host/keys/mocks/ |
D | id_expects.c | 12 void expect_single_call_bt_id_del(struct bt_keys *keys) in expect_single_call_bt_id_del() argument 19 zassert_equal(bt_id_del_fake.arg0_val, keys, in expect_single_call_bt_id_del()
|
D | keys_help_utils.c | 75 struct bt_keys *keys, *key_pool; in check_key_pool_is_empty() local 79 keys = &key_pool[i]; in check_key_pool_is_empty() 80 if (bt_addr_le_cmp(&keys->addr, BT_ADDR_LE_ANY)) { in check_key_pool_is_empty()
|
/Zephyr-latest/boards/nxp/imx93_evk/dts/ |
D | imx93_evk_mimx9352_exp_btn.overlay | 15 /* Remove default keys */ 20 keys { 21 compatible = "gpio-keys";
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_add_type/src/ |
D | main.c | 40 zassert_true(key_ref.keys == type, in ZTEST() 65 zassert_true(key_ref.keys == expected_value, in ZTEST() 90 zassert_true(key_ref.keys == expected_value, in ZTEST()
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | kscan.rst | 16 configuration in order to sense several keys. This allows interfacing to 17 many keys through fewer physical pins. Keyboard matrix 20 There is no correlation between the physical and electrical layout of keys. 21 For, example, the physical layout may be one array of 16 or fewer keys, which
|
/Zephyr-latest/samples/subsys/usb/hid-keyboard/ |
D | README.rst | 17 :ref:`input` API. There must be a :dtcompatible:`gpio-keys` group of buttons 18 or keys defined at the board level that can generate input events. 19 At least one key is required and up to four can be used. The first three keys 21 report HID keys 1, 2, 3 and the right Alt modifier at once.
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_add_type/ |
D | CMakeLists.txt | 10 add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) 20 ${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find_irk/ |
D | CMakeLists.txt | 10 add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) 20 ${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_foreach_bond/ |
D | CMakeLists.txt | 10 add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) 20 ${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find/ |
D | CMakeLists.txt | 10 add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) 20 ${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
|