Home
last modified time | relevance | path

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

12

/ohos5.0/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()
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()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_properties.cpp270 bool BleProperties::SetPasskey(const std::string &passkey) in SetPasskey() argument
272 LOG_DEBUG("[BleProperties] %{public}s:%{public}s", __func__, passkey.c_str()); in SetPasskey()
274 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()
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.h71 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;
H A Dble_adapter.cpp826 bool BleAdapter::SetDevicePasskey(const RawAddress &device, int passkey, bool accept) const in SetDevicePasskey() argument
828 LOG_DEBUG("[BleAdapter] %{public}s:%{public}d %{public}d", __func__, passkey, accept); in SetDevicePasskey()
852 ret = pimpl->bleSecurity_->SetDevicePasskey(device, passkey, GAP_NOT_ACCEPT); in SetDevicePasskey()
854 ret = pimpl->bleSecurity_->SetDevicePasskey(device, passkey, GAP_ACCEPT); in SetDevicePasskey()
H A Dble_security.cpp907 int BleSecurity::SetDevicePasskey(const RawAddress &device, int passkey, int accept) const in SetDevicePasskey() argument
917 int ret = GAPIF_LePairPassKeyRsp(&addr, accept, passkey); in SetDevicePasskey()
/ohos5.0/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()
H A Dclassic_adapter.h197 bool SetDevicePasskey(const RawAddress &device, int passkey, bool accept) const override;
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/include/
H A Dinterface_adapter.h231 virtual bool SetDevicePasskey(const RawAddress &device, int passkey, bool accept) const = 0;
/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_remote_device.h291 bool SetDevicePasskey(int passkey, bool accept);
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_remote_device.cpp302 bool BluetoothRemoteDevice::SetDevicePasskey(int passkey, bool accept) in SetDevicePasskey() argument
308 return hostProxy->SetDevicePasskey(transport_, address_, passkey, accept); in SetDevicePasskey()
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/ipc/include/
H A Dbluetooth_host_proxy.h88 …bool SetDevicePasskey(int32_t transport, const std::string &address, int32_t passkey, bool accept)…
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/ipc/interface/
H A Di_bluetooth_host.h113 …virtual bool SetDevicePasskey(int32_t transport, const std::string &address, int32_t passkey, bool…
/ohos5.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)…
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/
H A Dhci_def_evt.h534 uint32_t passkey; member
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/server/src/
H A Dbluetooth_host_server.cpp1616 …rver::SetDevicePasskey(int32_t transport, const std::string &address, int32_t passkey, bool accept) in SetDevicePasskey() argument
1619 transport, GetEncryptAddr(address).c_str(), passkey, accept); in SetDevicePasskey()
1628 return classicService->SetDevicePasskey(addr, passkey, accept); in SetDevicePasskey()
1630 return bleService->SetDevicePasskey(addr, passkey, accept); in SetDevicePasskey()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/ipc/src/
H A Dbluetooth_host_stub.cpp1104 int32_t passkey; in SetDevicePasskeyInner() local
1105 if (!data.ReadInt32(passkey)) { in SetDevicePasskeyInner()
1114 bool result = SetDevicePasskey(transport, address, passkey, accept); in SetDevicePasskeyInner()
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/ipc/src/
H A Dbluetooth_host_proxy.cpp1238 …roxy::SetDevicePasskey(int32_t transport, const std::string &address, int32_t passkey, bool accept) in SetDevicePasskey() argument
1253 if (!data.WriteInt32(passkey)) { in SetDevicePasskey()

12