/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_legacy.c | 32 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 D | smp_sc_accepter.c | 453 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 D | smp_sc_initiator.c | 425 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 D | smp_tool.c | 356 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 D | ble_properties.cpp | 270 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 D | ble_config.cpp | 118 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 D | ble_properties.h | 71 static bool SetPasskey(const std::string &passkey);
|
H A D | ble_security.h | 49 int SetDevicePasskey(const RawAddress &device, int passkey, int accept) const;
|
H A D | ble_config.h | 56 bool SetPasskey(const std::string &passkey) const;
|
H A D | ble_adapter.h | 113 bool SetDevicePasskey(const RawAddress &device, int passkey, bool accept) const override;
|
H A D | ble_adapter.cpp | 826 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 D | ble_security.cpp | 907 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 D | classic_config.cpp | 140 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 D | classic_adapter.cpp | 1240 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 D | classic_adapter.h | 197 bool SetDevicePasskey(const RawAddress &device, int passkey, bool accept) const override;
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/include/ |
H A D | interface_adapter.h | 231 virtual bool SetDevicePasskey(const RawAddress &device, int passkey, bool accept) const = 0;
|
/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_remote_device.h | 291 bool SetDevicePasskey(int passkey, bool accept);
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_remote_device.cpp | 302 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 D | bluetooth_host_proxy.h | 88 …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 D | i_bluetooth_host.h | 113 …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 D | bluetooth_host_server.h | 109 …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 D | hci_def_evt.h | 534 uint32_t passkey; member
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_host_server.cpp | 1616 …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 D | bluetooth_host_stub.cpp | 1104 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 D | bluetooth_host_proxy.cpp | 1238 …roxy::SetDevicePasskey(int32_t transport, const std::string &address, int32_t passkey, bool accept) in SetDevicePasskey() argument 1253 if (!data.WriteInt32(passkey)) { in SetDevicePasskey()
|