/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/ |
H A D | ble_config.cpp | 347 bool BleConfig::SetLocalEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const in SetLocalEdivRand() argument 351 bool ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_EDIV, ediv); in SetLocalEdivRand() 353 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Set ble local ediv failed!"); in SetLocalEdivRand() 419 bool BleConfig::SetPeerEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const in SetPeerEdivRand() argument 423 bool ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_PEER_EDIV, ediv); in SetPeerEdivRand() 425 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Set ble peer ediv failed!"); in SetPeerEdivRand() 513 std::string ediv; in GetLocalEdiv() local 514 bool ret = config_->GetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_EDIV, ediv); in GetLocalEdiv() 516 LOG_DEBUG("[BleConfig] %{public}s:%{public}s", __func__, "Get ble local ediv failed!"); in GetLocalEdiv() 518 return ediv; in GetLocalEdiv() 573 std::string ediv; GetPeerEdiv() local [all...] |
H A D | ble_security.cpp | 107 void BleSecurity::LeLocalEncryptionKeyReqEvent(const BtAddr *addr, uint64_t rand, uint16_t ediv, void *context) in LeLocalEncryptionKeyReqEvent() argument 119 gapCallbackParam.leLocalEncryptionKeyReqEvent_.ediv = ediv; in LeLocalEncryptionKeyReqEvent() 458 std::to_string(param.lePairKeyNotify_.localEncKey.ediv), in SaveLocalPairKey() 485 std::to_string(param.lePairKeyNotify_.remoteEncKey.ediv), in SavePeerPairKey() 540 std::string ediv = BleConfig::GetInstance().GetLocalEdiv(addr.GetAddress()); in GapLeLocalEncryptionKeyReqEvent() local 542 (ediv.compare(std::to_string(param.leLocalEncryptionKeyReqEvent_.ediv)) == 0) && (!ltk.empty())) { in GapLeLocalEncryptionKeyReqEvent() 548 encKey.ediv = std::stoull(ediv); in GapLeLocalEncryptionKeyReqEvent() 569 std::string ediv = BleConfig::GetInstance().GetPeerEdiv(addr.GetAddress()); GapLeRemoteEncryptionKeyReqEvent() local [all...] |
H A D | ble_config.h | 68 bool SetLocalEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const; 83 bool SetPeerEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const;
|
H A D | ble_security.h | 72 static void LeLocalEncryptionKeyReqEvent(const BtAddr *addr, uint64_t rand, uint16_t ediv, void *context);
|
H A D | ble_defs.h | 297 uint16_t ediv; member
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_sm_receive.c | 56 uint16_t ediv; member 271 GapLeLongTermKeyRequest(param->handle, (uint8_t *)¶m->random, param->ediv); in GapLeLongTermKeyRequestTask() 274 static void GapRecvLeLongTermKeyRequest(uint16_t handle, const uint8_t *random, uint16_t ediv) in GapRecvLeLongTermKeyRequest() argument 285 smParam->ediv = ediv; in GapRecvLeLongTermKeyRequest()
|
H A D | gap_le_sec.c | 280 keys->remoteEncKey->ediv = result->peerEdiv; in GapLePairKeyConvert() 306 keys->localEncKey->ediv = result->localEdiv; in GapLePairKeyConvert() 495 void GapLeLongTermKeyRequest(uint16_t handle, const uint8_t *random, uint16_t ediv) in GapLeLongTermKeyRequest() argument 508 &addr, *(uint64_t *)random, ediv, g_leSecurityCallback.context); in GapLeLongTermKeyRequest() 597 ret = SMP_StartEncryption(deviceInfo->handle, (uint8_t *)&encKey.rand, encKey.ediv, encKey.ltk); in GAP_LeRemoteEncryptionKeyRsp() 603 ret = SMP_StartEncryption(deviceInfo->handle, (uint8_t *)&encKey.rand, encKey.ediv, encKey.ltk); in GAP_LeRemoteEncryptionKeyRsp()
|
H A D | gap_internal.h | 187 void GapLeLongTermKeyRequest(uint16_t handle, const uint8_t *random, uint16_t ediv);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_cmd.h | 39 int SMP_SendMasterIdentification(uint16_t handle, uint16_t ediv, const uint8_t *rand, SMP_SendDataCb cb);
|
H A D | smp_common.h | 41 void SMP_NotifyCbLtkReq(uint16_t handle, const uint8_t *random, uint16_t ediv);
|
H A D | smp_cmd.c | 231 int SMP_SendMasterIdentification(uint16_t handle, uint16_t ediv, const uint8_t *rand, SMP_SendDataCb cb) in SMP_SendMasterIdentification() argument 236 uint8_t edivBuf[sizeof(ediv)] = {0x00}; in SMP_SendMasterIdentification() 244 edivBuf[0] = (uint8_t)(ediv & 0x00FFu); in SMP_SendMasterIdentification() 245 edivBuf[1] = (uint8_t)((ediv >> 0x08) & 0x00FFu); in SMP_SendMasterIdentification()
|
H A D | smp.h | 176 void (*SMP_CallbackLongTermKeyRequest)(uint16_t handle, const uint8_t *random, uint16_t ediv); 260 * @param ediv Saved peer ediv. 264 int SMP_StartEncryption(uint16_t handle, const uint8_t *random, uint16_t ediv, const uint8_t *key);
|
H A D | smp_hci_event.c | 907 uint16_t ediv; in SMP_OnLtkReqEncProc() local 908 uint8_t edivTemp[sizeof(ediv)] = {0x00}; in SMP_OnLtkReqEncProc() 913 ediv = *((uint16_t *)edivTemp); in SMP_OnLtkReqEncProc() 915 SMP_NotifyCbLtkReq(eventParam->connectionHandle, randomTemp, ediv); in SMP_OnLtkReqEncProc()
|
H A D | smp.c | 650 int SMP_StartEncryption(uint16_t handle, const uint8_t *random, uint16_t ediv, const uint8_t *key) in SMP_StartEncryption() argument 661 ctx->ediv = ediv; in SMP_StartEncryption() 682 uint8_t edivTemp[sizeof(param->ediv)] = {0x00}; in SMP_StartEncTask() 684 edivTemp[0x00] = ((uint8_t)((param->ediv) & 0xFF)); in SMP_StartEncTask() 685 edivTemp[0x01] = ((uint8_t)(((param->ediv) >> 0x08) & 0xFF)); in SMP_StartEncTask() 1779 void SMP_NotifyCbLtkReq(uint16_t handle, const uint8_t *random, uint16_t ediv) in SMP_NotifyCbLtkReq() argument 1782 g_smpCallBack.SMP_CallbackLongTermKeyRequest(handle, random, ediv); in SMP_NotifyCbLtkReq()
|
H A D | smp_def.h | 254 uint16_t ediv; member
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
H A D | gap_le_if.h | 301 uint16_t ediv; /// Encrypted Diversifier member 342 void (*leLocalEncryptionKeyReqEvent)(const BtAddr *addr, uint64_t rand, uint16_t ediv, void *context);
|
H A D | btm.h | 544 uint16_t ediv; member
|