Home
last modified time | relevance | path

Searched refs:passkey (Results 1 - 25 of 43) sorted by relevance

12

/kernel/linux/linux-6.6/fs/smb/server/mgmt/
H A Duser_config.c43 user->passkey = kmalloc(resp->hash_sz, GFP_KERNEL); in ksmbd_alloc_user()
44 if (user->passkey) in ksmbd_alloc_user()
45 memcpy(user->passkey, resp->hash, resp->hash_sz); in ksmbd_alloc_user()
47 if (!user->name || !user->passkey) { in ksmbd_alloc_user()
49 kfree(user->passkey); in ksmbd_alloc_user()
60 kfree(user->passkey); in ksmbd_free_user()
75 if (memcmp(u1->passkey, u2->passkey, u1->passkey_sz)) in ksmbd_compare_user()
H A Duser_config.h20 char *passkey; member
44 return user->passkey; in user_passkey()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp_legacy.c32 uint32_t passkey; in SMP_LegacyPairMasterStep1() local
38 passkey = *((uint32_t *)returnParam->randomNumber); in SMP_LegacyPairMasterStep1()
39 passkey = passkey % (SMP_MAX_PASSKEY_VALUE + 0x01); in SMP_LegacyPairMasterStep1()
43 SMP_NotifyCbAuthReq(handle, pairMethod, (uint8_t *)&passkey); in SMP_LegacyPairMasterStep1()
398 uint32_t passkey; in SMP_LegacyPairSlaveStep1() local
404 passkey = *((uint32_t *)returnParam->randomNumber); in SMP_LegacyPairSlaveStep1()
405 passkey = passkey % (SMP_MAX_PASSKEY_VALUE + 0x01); in SMP_LegacyPairSlaveStep1()
409 SMP_NotifyCbAuthReq(handle, pairMethod, (uint8_t *)&passkey); in SMP_LegacyPairSlaveStep1()
[all...]
H A Dsmp_sc_accepter.c453 uint32_t passkey; in SMP_ScPairPasskeyEntrySlaveStep4() local
459 passkey = *((uint32_t *)returnParam->randomNumber); in SMP_ScPairPasskeyEntrySlaveStep4()
460 passkey = passkey % (SMP_MAX_PASSKEY_VALUE + 0x01); in SMP_ScPairPasskeyEntrySlaveStep4()
464 SMP_NotifyCbAuthReq(handle, pairMethod, (uint8_t *)&passkey); in SMP_ScPairPasskeyEntrySlaveStep4()
H A Dsmp_sc_initiator.c425 uint32_t passkey; in SMP_ScPairPasskeyEntryMasterStep4() local
431 passkey = *((uint32_t *)returnParam->randomNumber); in SMP_ScPairPasskeyEntryMasterStep4()
432 passkey = passkey % (SMP_MAX_PASSKEY_VALUE + 0x01); in SMP_ScPairPasskeyEntryMasterStep4()
436 SMP_NotifyCbAuthReq(handle, pairMethod, (uint8_t *)&passkey); in SMP_ScPairPasskeyEntryMasterStep4()
H A Dsmp_tool.c356 uint32_t passkey = 0x00; in SMP_ConstituteF4Param() local
358 SMP_MemoryReverseCopy((uint8_t *)(&passkey), (SMP_GetPairMng()->TK + 0x0C), sizeof(uint32_t)); in SMP_ConstituteF4Param()
359 if (((uint32_t)(1 << SMP_GetPairMng()->scConfirmCheckCounter)) & passkey) { in SMP_ConstituteF4Param()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_properties.cpp238 bool BleProperties::SetPasskey(const std::string &passkey) in SetPasskey() argument
240 LOG_DEBUG("[BleProperties] %{public}s:%{public}s", __func__, passkey.c_str()); in SetPasskey()
242 return BleConfig::GetInstance().SetPasskey(passkey); in SetPasskey()
H A Dble_config.cpp118 std::string passkey = ""; in GetLoaclPasskey() local
119 bool ret = config_->GetValue(SECTION_HOST, PROPERTY_LOCAL_PASSKEY, passkey); in GetLoaclPasskey()
121 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Get local passkey failed!"); in GetLoaclPasskey()
123 return passkey; in GetLoaclPasskey()
149 bool BleConfig::SetPasskey(const std::string &passkey) const in SetPasskey()
153 bool ret = config_->SetValue(SECTION_HOST, PROPERTY_LOCAL_PASSKEY, passkey); in SetPasskey()
H A Dble_properties.h69 static bool SetPasskey(const std::string &passkey);
H A Dble_security.h49 int SetDevicePasskey(const RawAddress &device, int passkey, int accept) const;
H A Dble_config.h56 bool SetPasskey(const std::string &passkey) const;
H A Dble_adapter.h113 bool SetDevicePasskey(const RawAddress &device, int passkey, bool accept) const override;
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/
H A Dclassic_config.cpp140 std::string passkey = ""; in GetLocalPasskey() local
141 if (!config_->GetValue(SECTION_HOST, PROPERTY_LOCAL_PASSKEY, passkey)) { in GetLocalPasskey()
145 return passkey; in GetLocalPasskey()
H A Dclassic_adapter.cpp1240 std::string passkey = adapterProperties_.GetPasskey(); in UserConfirmAutoReply() local
1241 HILOGI("PAIR_CONFIRM_TYPE_PIN_CODE, value = %{public}s", passkey.c_str()); in UserConfirmAutoReply()
1242 std::vector<uint8_t> pinCode(passkey.begin(), passkey.end()); in UserConfirmAutoReply()
1252 int passkey = 0; in UserConfirmAutoReply() local
1253 SetDevicePasskey(device, passkey, accept); in UserConfirmAutoReply()
1960 bool ClassicAdapter::SetDevicePasskey(const RawAddress &device, int passkey, bool accept) const in SetDevicePasskey() argument
1978 ret = (GAPIF_UserPasskeyRsp(&btAddr, GAP_NOT_ACCEPT, passkey) == BT_SUCCESS); in SetDevicePasskey()
1980 ret = (GAPIF_UserPasskeyRsp(&btAddr, GAP_ACCEPT, passkey) == BT_SUCCESS); in SetDevicePasskey()
/foundation/communication/bluetooth_service/services/bluetooth/service/include/
H A Dinterface_adapter.h222 * @brief Set device pair passkey.
225 * @param passkey Device passkey.
231 virtual bool SetDevicePasskey(const RawAddress &device, int passkey, bool accept) const = 0;
/kernel/linux/linux-5.10/net/bluetooth/
H A Dsmp.c856 u32 passkey = 0; in tk_request() local
893 passkey, 1); in tk_request()
914 * Confirms and the responder Enters the passkey. in tk_request()
923 /* Generate random passkey. */ in tk_request()
926 get_random_bytes(&passkey, sizeof(passkey)); in tk_request()
927 passkey %= 1000000; in tk_request()
928 put_unaligned_le32(passkey, smp->tk); in tk_request()
929 bt_dev_dbg(hcon->hdev, "PassKey: %d", passkey); in tk_request()
939 passkey, in tk_request()
1590 sc_user_reply(struct smp_chan *smp, u16 mgmt_op, __le32 passkey) sc_user_reply() argument
1632 smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey) smp_user_confirm_reply() argument
2140 u32 passkey; smp_cmd_pairing_random() local
[all...]
H A Dsmp.h189 int smp_user_confirm_reply(struct hci_conn *conn, u16 mgmt_op, __le32 passkey);
/kernel/linux/linux-6.6/net/bluetooth/
H A Dsmp.c857 u32 passkey = 0; in tk_request() local
894 passkey, 1); in tk_request()
915 * Confirms and the responder Enters the passkey. in tk_request()
924 /* Generate random passkey. */ in tk_request()
927 get_random_bytes(&passkey, sizeof(passkey)); in tk_request()
928 passkey %= 1000000; in tk_request()
929 put_unaligned_le32(passkey, smp->tk); in tk_request()
930 bt_dev_dbg(hcon->hdev, "PassKey: %u", passkey); in tk_request()
940 passkey, in tk_request()
1596 sc_user_reply(struct smp_chan *smp, u16 mgmt_op, __le32 passkey) sc_user_reply() argument
1638 smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey) smp_user_confirm_reply() argument
2146 u32 passkey; smp_cmd_pairing_random() local
[all...]
H A Dsmp.h189 int smp_user_confirm_reply(struct hci_conn *conn, u16 mgmt_op, __le32 passkey);
/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_remote_device.h283 * @brief Set device pair passkey.
285 * @param passkey Device passkey.
291 bool SetDevicePasskey(int passkey, bool accept);
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_remote_device.cpp299 bool BluetoothRemoteDevice::SetDevicePasskey(int passkey, bool accept) in SetDevicePasskey() argument
305 return hostProxy->SetDevicePasskey(transport_, address_, passkey, accept); in SetDevicePasskey()
/foundation/communication/bluetooth/frameworks/inner/ipc/interface/
H A Di_bluetooth_host.h115 virtual bool SetDevicePasskey(int32_t transport, const std::string &address, int32_t passkey, bool accept) = 0;
/foundation/communication/bluetooth_service/services/bluetooth/server/include/
H A Dbluetooth_host_server.h109 bool SetDevicePasskey(int32_t transport, const std::string &address, int32_t passkey, bool accept) override;
/foundation/communication/bluetooth/frameworks/inner/ipc/include/
H A Dbluetooth_host_proxy.h90 bool SetDevicePasskey(int32_t transport, const std::string &address, int32_t passkey, bool accept) override;
/kernel/linux/linux-5.10/include/net/bluetooth/
H A Dmgmt.h299 __le32 passkey; member
920 __le32 passkey; member

Completed in 27 milliseconds

12