Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 655) sorted by relevance

12345678910>>...27

/Zephyr-latest/subsys/bluetooth/host/
Dkeys.c90 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 …]
Dsmp.c381 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 …]
Dkeys.h72 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);
Did.c56 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/
Dmain.c57 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 …]
Dtest_suite_invalid_inputs.c46 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/
Dmain.c54 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/
Dkey.c17 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/
Dapp_keys.c57 } 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 …]
Dsubnet.c108 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 …]
Dbeacon.c142 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 …]
Dcdb.c320 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/
Dleshan.py282 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/
Denumerate_http_status.py44 keys = sorted(codes2.keys()) variable
45 for key in keys:
/Zephyr-latest/samples/subsys/display/lvgl/boards/
Dnative_posix.overlay24 keys: keys {
25 compatible = "gpio-keys";
60 input = <&keys>;
73 input = <&keys>;
/Zephyr-latest/tests/bluetooth/host/keys/mocks/
Did_expects.c12 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()
Dkeys_help_utils.c75 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/
Dimx93_evk_mimx9352_exp_btn.overlay15 /* Remove default keys */
20 keys {
21 compatible = "gpio-keys";
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_add_type/src/
Dmain.c40 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/
Dkscan.rst16 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/
DREADME.rst17 :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/
DCMakeLists.txt10 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/
DCMakeLists.txt10 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/
DCMakeLists.txt10 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/
DCMakeLists.txt10 add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks)
20 ${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c

12345678910>>...27