Searched refs:ltk (Results 1 – 7 of 7) sorted by relevance
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/ |
D | ble_config.cpp | 325 bool BleConfig::SetLocalLtk(const std::string §ion, const std::string <k) const in SetLocalLtk() 329 bool ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_LTK, ltk); in SetLocalLtk() 397 bool BleConfig::SetPeerLtk(const std::string §ion, const std::string <k) const in SetPeerLtk() 401 bool ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_PEER_LTK, ltk); in SetPeerLtk() 501 std::string ltk; in GetLocalLtk() local 502 bool ret = config_->GetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_LTK, ltk); in GetLocalLtk() 506 return ltk; in GetLocalLtk() 561 std::string ltk; in GetPeerLtk() local 562 bool ret = config_->GetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_PEER_LTK, ltk); in GetPeerLtk() 566 return ltk; in GetPeerLtk()
|
D | ble_security.cpp | 459 std::vector<uint8_t> ltk( in SaveLocalPairKey() local 460 … param.lePairKeyNotify_.localEncKey.ltk, param.lePairKeyNotify_.localEncKey.ltk + GAP_LTK_SIZE); in SaveLocalPairKey() 461 …t &= BleConfig::GetInstance().SetLocalLtk(addr.GetAddress(), BleUtils::ConvertIntToHexString(ltk)); in SaveLocalPairKey() 486 std::vector<uint8_t> ltk( in SavePeerPairKey() local 487 … param.lePairKeyNotify_.remoteEncKey.ltk, param.lePairKeyNotify_.remoteEncKey.ltk + GAP_LTK_SIZE); in SavePeerPairKey() 488 …et &= BleConfig::GetInstance().SetPeerLtk(addr.GetAddress(), BleUtils::ConvertIntToHexString(ltk)); in SavePeerPairKey() 537 std::string ltk = BleConfig::GetInstance().GetLocalLtk(addr.GetAddress()); in GapLeLocalEncryptionKeyReqEvent() local 541 … (ediv.compare(std::to_string(param.leLocalEncryptionKeyReqEvent_.ediv)) == 0) && (!ltk.empty())) { in GapLeLocalEncryptionKeyReqEvent() 544 BleUtils::ConvertHexStringToInt(ltk, vec); in GapLeLocalEncryptionKeyReqEvent() 545 (void)memcpy_s(encKey.ltk, GAP_CSRK_SIZE, &vec[0], vec.size()); in GapLeLocalEncryptionKeyReqEvent() [all …]
|
D | ble_config.h | 66 bool SetLocalLtk(const std::string §ion, const std::string <k) const; 81 bool SetPeerLtk(const std::string §ion, const std::string <k) const;
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
D | smp_cmd.h | 38 int SMP_SendEncryptionInformation(uint16_t handle, const uint8_t *ltk, SMP_SendDataCb cb);
|
D | smp_cmd.c | 207 int SMP_SendEncryptionInformation(uint16_t handle, const uint8_t *ltk, SMP_SendDataCb cb) in SMP_SendEncryptionInformation() argument 219 PacketPayloadWrite(pkt, ltk, offset, SMP_LTK_LEN); in SMP_SendEncryptionInformation()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
D | gap_le_sec.c | 275 (void)memcpy_s(keys->remoteEncKey->ltk, GAP_LTK_SIZE, result->peerLTK, GAP_LTK_SIZE); in GapLePairKeyConvert() 301 (void)memcpy_s(keys->localEncKey->ltk, GAP_LTK_SIZE, result->localLTK, GAP_LTK_SIZE); in GapLePairKeyConvert() 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() 633 ret = SMP_LongTermKeyRequestReply(deviceInfo->handle, true, encKey.ltk); in GAP_LeLocalEncryptionKeyRsp()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
D | gap_le_if.h | 299 uint8_t ltk[GAP_LTK_SIZE]; /// Long Term Key member
|