Home
last modified time | relevance | path

Searched refs:ediv (Results 1 - 17 of 17) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_config.cpp347 bool BleConfig::SetLocalEdivRand(const std::string &section, 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 &section, 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 Dble_security.cpp107 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 Dble_config.h68 bool SetLocalEdivRand(const std::string &section, const std::string &ediv, const std::string &rand) const;
83 bool SetPeerEdivRand(const std::string &section, const std::string &ediv, const std::string &rand) const;
H A Dble_security.h72 static void LeLocalEncryptionKeyReqEvent(const BtAddr *addr, uint64_t rand, uint16_t ediv, void *context);
H A Dble_defs.h297 uint16_t ediv; member
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
H A Dgap_sm_receive.c56 uint16_t ediv; member
271 GapLeLongTermKeyRequest(param->handle, (uint8_t *)&param->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 Dgap_le_sec.c280 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 Dgap_internal.h187 void GapLeLongTermKeyRequest(uint16_t handle, const uint8_t *random, uint16_t ediv);
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp_cmd.h39 int SMP_SendMasterIdentification(uint16_t handle, uint16_t ediv, const uint8_t *rand, SMP_SendDataCb cb);
H A Dsmp_common.h41 void SMP_NotifyCbLtkReq(uint16_t handle, const uint8_t *random, uint16_t ediv);
H A Dsmp_cmd.c231 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 Dsmp.h176 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 Dsmp_hci_event.c907 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 Dsmp.c650 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 Dsmp_def.h254 uint16_t ediv; member
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/
H A Dgap_le_if.h301 uint16_t ediv; /// Encrypted Diversifier member
342 void (*leLocalEncryptionKeyReqEvent)(const BtAddr *addr, uint64_t rand, uint16_t ediv, void *context);
H A Dbtm.h544 uint16_t ediv; member

Completed in 18 milliseconds