/Zephyr-latest/samples/bluetooth/peripheral_hids/ |
D | Kconfig | 7 bool "Enable passkey authentication" 10 Enable the passkey authentication callback and register the GATT
|
D | README.rst | 14 In the default configuration the sample uses passkey authentication (displays a
|
/Zephyr-latest/subsys/bluetooth/crypto/ |
D | bt_crypto.c | 161 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()
|
D | bt_crypto.h | 99 uint32_t *passkey);
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | ssp.h | 10 int bt_ssp_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey);
|
D | ssp.c | 246 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/ |
D | main.c | 112 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/ |
D | peripheral_ead.c | 225 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/ |
D | main.c | 93 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/ |
D | main.c | 91 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/ |
D | central_ead.c | 371 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/ |
D | btp_gap.h | 178 uint32_t passkey; member 357 uint32_t passkey; member 368 uint32_t passkey; member
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | smp.c | 184 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 …]
|
D | smp.h | 148 int bt_smp_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey);
|
D | CMakeLists.txt | 92 A fixed passkey is easy to deduce during the pairing procedure, do not use in
|
D | conn.c | 4018 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/ |
D | README.rst | 58 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/ |
D | main.c | 257 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/ |
D | README.rst | 32 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/ |
D | conn.h | 2110 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/ |
D | main.c | 302 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/ |
D | main.c | 433 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/ |
D | btp_gap.c | 1057 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/ |
D | bt.c | 3977 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/ |
D | gap.rst | 321 confirm the passkey on both devices. On the shell side, do it with the command 322 :code:`bt auth-passkey-confirm`.
|