Home
last modified time | relevance | path

Searched refs:passkey (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-latest/samples/bluetooth/peripheral_hids/
DKconfig7 bool "Enable passkey authentication"
10 Enable the passkey authentication callback and register the GATT
DREADME.rst14 In the default configuration the sample uses passkey authentication (displays a
/Zephyr-latest/subsys/bluetooth/crypto/
Dbt_crypto.c161 uint32_t *passkey) in bt_crypto_g2() argument
184 memcpy(passkey, xs + 12, 4); in bt_crypto_g2()
185 *passkey = sys_be32_to_cpu(*passkey) % 1000000; in bt_crypto_g2()
187 LOG_DBG("passkey %u", *passkey); in bt_crypto_g2()
Dbt_crypto.h99 uint32_t *passkey);
/Zephyr-latest/subsys/bluetooth/host/classic/
Dssp.h10 int bt_ssp_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey);
Dssp.c246 static void ssp_auth(struct bt_conn *conn, uint32_t passkey) in ssp_auth() argument
264 bt_auth->passkey_confirm(conn, passkey); in ssp_auth()
268 bt_auth->passkey_display(conn, passkey); in ssp_auth()
294 static int ssp_passkey_reply(struct bt_conn *conn, unsigned int passkey) in ssp_passkey_reply() argument
308 cp->passkey = sys_cpu_to_le32(passkey); in ssp_passkey_reply()
366 int bt_ssp_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey) in bt_ssp_auth_passkey_entry() argument
374 return ssp_passkey_reply(conn, passkey); in bt_ssp_auth_passkey_entry()
771 ssp_auth(conn, sys_le32_to_cpu(evt->passkey)); in bt_hci_user_confirm_req()
788 ssp_auth(conn, sys_le32_to_cpu(evt->passkey)); in bt_hci_user_passkey_notify()
/Zephyr-latest/samples/bluetooth/peripheral_hids/src/
Dmain.c112 static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) in auth_passkey_display() argument
118 printk("Passkey for %s: %06u\n", addr, passkey); in auth_passkey_display()
/Zephyr-latest/samples/bluetooth/encrypted_advertising/peripheral/src/
Dperipheral_ead.c225 static void auth_passkey_confirm(struct bt_conn *conn, unsigned int passkey) in auth_passkey_confirm() argument
232 snprintk(passkey_str, ARRAY_SIZE(passkey_str), "%06u", passkey); in auth_passkey_confirm()
239 static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) in auth_passkey_display() argument
246 snprintk(passkey_str, ARRAY_SIZE(passkey_str), "%06u", passkey); in auth_passkey_display()
/Zephyr-latest/samples/bluetooth/peripheral_sc_only/src/
Dmain.c93 static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) in auth_passkey_display() argument
99 printk("Passkey for %s: %06u\n", addr, passkey); in auth_passkey_display()
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dmain.c91 static void passkey_display(struct bt_conn *conn, unsigned int passkey) in passkey_display() argument
95 snprintk(buf, sizeof(buf), "Passkey:\n%06u", passkey); in passkey_display()
/Zephyr-latest/samples/bluetooth/encrypted_advertising/central/src/
Dcentral_ead.c371 static void auth_passkey_confirm(struct bt_conn *conn, unsigned int passkey) in auth_passkey_confirm() argument
378 snprintk(passkey_str, ARRAY_SIZE(passkey_str), "%06u", passkey); in auth_passkey_confirm()
385 static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) in auth_passkey_display() argument
392 snprintk(passkey_str, ARRAY_SIZE(passkey_str), "%06u", passkey); in auth_passkey_display()
/Zephyr-latest/tests/bluetooth/tester/src/btp/
Dbtp_gap.h178 uint32_t passkey; member
357 uint32_t passkey; member
368 uint32_t passkey; member
/Zephyr-latest/subsys/bluetooth/host/
Dsmp.c184 uint32_t passkey; member
1985 r = (smp->passkey >> smp->passkey_round) & 0x01; in smp_send_pairing_confirm()
2270 uint32_t passkey; in legacy_request_tk() local
2301 passkey = fixed_passkey; in legacy_request_tk()
2303 if (bt_rand(&passkey, sizeof(passkey))) { in legacy_request_tk()
2307 passkey %= 1000000; in legacy_request_tk()
2311 LOG_INF("Legacy passkey %u", passkey); in legacy_request_tk()
2316 smp_auth_cb->passkey_display(conn, passkey); in legacy_request_tk()
2319 sys_put_le32(passkey, smp->tk); in legacy_request_tk()
2513 static void legacy_passkey_entry(struct bt_smp *smp, unsigned int passkey) in legacy_passkey_entry() argument
[all …]
Dsmp.h148 int bt_smp_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey);
DCMakeLists.txt92 A fixed passkey is easy to deduce during the pairing procedure, do not use in
Dconn.c4018 int bt_conn_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey) in bt_conn_auth_passkey_entry() argument
4021 return bt_smp_auth_passkey_entry(conn, passkey); in bt_conn_auth_passkey_entry()
4029 return bt_ssp_auth_passkey_entry(conn, passkey); in bt_conn_auth_passkey_entry()
/Zephyr-latest/samples/bluetooth/encrypted_advertising/
DREADME.rst58 Confirm passkey by pressing button at gpio@50000000 pin 11...
69 Confirm passkey by pressing button at gpio@50000000 pin 11...
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/
Dmain.c257 static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) in auth_passkey_display() argument
263 printk("Passkey for %s: %06u\n", addr, passkey); in auth_passkey_display()
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/
DREADME.rst32 characteristic. The passkey for the pairing will be shown on the board's
33 display. Enter the passkey in your phone.
/Zephyr-latest/include/zephyr/bluetooth/
Dconn.h2110 int bt_passkey_set(unsigned int passkey);
2229 void (*passkey_display)(struct bt_conn *conn, unsigned int passkey);
2298 void (*passkey_confirm)(struct bt_conn *conn, unsigned int passkey);
2469 int bt_conn_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey);
/Zephyr-latest/samples/bluetooth/peripheral/src/
Dmain.c302 static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) in auth_passkey_display() argument
308 printk("Passkey for %s: %06u\n", addr, passkey); in auth_passkey_display()
/Zephyr-latest/samples/bluetooth/peripheral_esp/src/
Dmain.c433 static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) in auth_passkey_display() argument
439 printk("Passkey for %s: %06u\n", addr, passkey); in auth_passkey_display()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_gap.c1057 static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) argument
1063 ev.passkey = sys_cpu_to_le32(passkey);
1078 static void auth_passkey_confirm(struct bt_conn *conn, unsigned int passkey) argument
1084 ev.passkey = sys_cpu_to_le32(passkey);
1257 err = bt_conn_auth_passkey_entry(conn, sys_le32_to_cpu(cp->passkey));
/Zephyr-latest/subsys/bluetooth/host/shell/
Dbt.c3977 static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) in auth_passkey_display() argument
3984 snprintk(passkey_str, 7, "%06u", passkey); in auth_passkey_display()
4001 static void auth_passkey_confirm(struct bt_conn *conn, unsigned int passkey) in auth_passkey_confirm() argument
4008 snprintk(passkey_str, 7, "%06u", passkey); in auth_passkey_confirm()
4471 unsigned int passkey; in cmd_fixed_passkey() local
4480 passkey = atoi(argv[1]); in cmd_fixed_passkey()
4481 if (passkey > 999999) { in cmd_fixed_passkey()
4486 err = bt_passkey_set(passkey); in cmd_fixed_passkey()
4498 unsigned int passkey; in cmd_auth_passkey() local
4506 passkey = atoi(argv[1]); in cmd_auth_passkey()
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/shell/host/
Dgap.rst321 confirm the passkey on both devices. On the shell side, do it with the command
322 :code:`bt auth-passkey-confirm`.

12