Lines Matching refs:passkey
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
2515 passkey = sys_cpu_to_le32(passkey); in legacy_passkey_entry()
2516 memcpy(smp->tk, &passkey, sizeof(passkey)); in legacy_passkey_entry()
3404 memcpy(r, &smp->passkey, sizeof(smp->passkey)); in compute_and_send_central_dhcheck()
3449 memcpy(r, &smp->passkey, sizeof(smp->passkey)); in compute_and_check_and_send_periph_dhcheck()
3620 r = (smp->passkey >> smp->passkey_round) & 0x01; in sc_smp_check_confirm()
3692 uint32_t passkey; in smp_pairing_random() local
3716 &passkey)) { in smp_pairing_random()
3722 smp_auth_cb->passkey_confirm(smp->chan.chan.conn, passkey); in smp_pairing_random()
3760 if (bt_crypto_g2(smp->pkey, sc_public_key, smp->rrnd, smp->prnd, &passkey)) { in smp_pairing_random()
3765 smp_auth_cb->passkey_confirm(smp->chan.chan.conn, passkey); in smp_pairing_random()
4208 smp->passkey = fixed_passkey; in display_passkey()
4210 if (bt_rand(&smp->passkey, sizeof(smp->passkey))) { in display_passkey()
4214 smp->passkey %= 1000000; in display_passkey()
4221 smp_auth_cb->passkey_display(conn, smp->passkey); in display_passkey()
4224 smp->passkey = sys_cpu_to_le32(smp->passkey); in display_passkey()
4428 memcpy(r, &smp->passkey, sizeof(smp->passkey)); in smp_dhkey_check()
5536 int bt_smp_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey) in bt_smp_auth_passkey_entry() argument
5552 legacy_passkey_entry(smp, passkey); in bt_smp_auth_passkey_entry()
5557 smp->passkey = sys_cpu_to_le32(passkey); in bt_smp_auth_passkey_entry()
5894 int bt_passkey_set(unsigned int passkey) in bt_passkey_set() argument
5896 if (passkey == BT_PASSKEY_INVALID) { in bt_passkey_set()
5901 if (passkey > 999999) { in bt_passkey_set()
5905 fixed_passkey = passkey; in bt_passkey_set()