Home
last modified time | relevance | path

Searched refs:csrk (Results 1 - 10 of 10) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_config.cpp320 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Set ble local csrk failed!"); in SetLocalIrk()
363 bool BleConfig::SetLocalCsrk(const std::string &section, const std::string &csrk) const in SetLocalCsrk()
367 bool ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_CSRK, csrk); in SetLocalCsrk()
369 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Set ble local csrk failed!"); in SetLocalCsrk()
462 bool BleConfig::SetPeerCsrk(const std::string &section, const std::string &csrk) const in SetPeerCsrk()
466 bool ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_PEER_CSRK, csrk); in SetPeerCsrk()
468 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Set ble peer csrk failed!"); in SetPeerCsrk()
537 std::string csrk; in GetLocalCsrk() local
538 bool ret = config_->GetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_CSRK, csrk); in GetLocalCsrk()
540 LOG_DEBUG("[BleConfig] %{public}s:%{public}s", __func__, "Get ble local csrk faile in GetLocalCsrk()
621 std::string csrk; GetPeerCsrk() local
[all...]
H A Dble_config.h69 bool SetLocalCsrk(const std::string &section, const std::string &csrk) const;
86 bool SetPeerCsrk(const std::string &section, const std::string &csrk) const;
H A Dble_security.cpp468 std::vector<uint8_t> csrk( in SaveLocalPairKey()
469 param.lePairKeyNotify_.localSignKey.csrk, param.lePairKeyNotify_.localSignKey.csrk + GAP_LTK_SIZE); in SaveLocalPairKey()
470 ret &= BleConfig::GetInstance().SetLocalCsrk(addr.GetAddress(), BleUtils::ConvertIntToHexString(csrk)); in SaveLocalPairKey()
504 std::vector<uint8_t> csrk( in SavePeerPairKey()
505 param.lePairKeyNotify_.remoteSignKey.csrk, param.lePairKeyNotify_.remoteSignKey.csrk + GAP_LTK_SIZE); in SavePeerPairKey()
506 ret &= BleConfig::GetInstance().SetPeerCsrk(addr.GetAddress(), BleUtils::ConvertIntToHexString(csrk)); in SavePeerPairKey()
616 (void)memcpy_s(localKey.csrk, GAP_CSRK_SIZE, &vec[0], vec.size()); in GapRequestSigningAlgorithmInfoEvt()
626 (void)memcpy_s(remoteKey.csrk, GAP_CSRK_SIZ in GapRequestSigningAlgorithmInfoEvt()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp_cmd.h42 int SMP_SendSigningInformation(uint16_t handle, const uint8_t *csrk, SMP_SendDataCb cb);
H A Dsmp_cmd.c310 int SMP_SendSigningInformation(uint16_t handle, const uint8_t *csrk, SMP_SendDataCb cb) in SMP_SendSigningInformation() argument
322 PacketPayloadWrite(pkt, csrk, offset, SMP_CSRK_LEN); in SMP_SendSigningInformation()
H A Dsmp.h247 * @param csrk Connection Signature Resolving Key.
253 int SMP_GenerateSignature(const uint8_t *csrk, uint32_t counter, const uint8_t *data, uint16_t dataLen);
H A Dsmp_def.h245 uint8_t csrk[SMP_CSRK_LEN]; member
H A Dsmp.c753 int SMP_GenerateSignature(const uint8_t *csrk, uint32_t counter, const uint8_t *data, uint16_t dataLen) in SMP_GenerateSignature() argument
763 (void)memcpy_s(ctx->csrk, SMP_CSRK_LEN, csrk, SMP_CSRK_LEN); in SMP_GenerateSignature()
794 (void)memcpy_s(encCmd->key, sizeof(encCmd->key), param->csrk, sizeof(encCmd->key)); in SMP_GenSignTask()
796 (void)memcpy_s(encryptParam.key, SMP_CSRK_LEN, param->csrk, SMP_CSRK_LEN); in SMP_GenSignTask()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
H A Dgap_le_sec.c294 (void)memcpy_s(keys->remoteSignKey->csrk, GAP_CSRK_SIZE, result->peerCSRK, GAP_CSRK_SIZE); in GapLePairKeyConvert()
313 (void)memcpy_s(keys->localSignKey->csrk, GAP_CSRK_SIZE, result->localCSRK, GAP_CSRK_SIZE); in GapLePairKeyConvert()
349 (void)memcpy_s(deviceInfo->localSigningInfo.csrk, GAP_CSRK_SIZE, result->localCSRK, GAP_CSRK_SIZE); in GapSetLeSigningInfo()
356 (void)memcpy_s(deviceInfo->remoteSigningInfo.csrk, GAP_CSRK_SIZE, result->peerCSRK, GAP_CSRK_SIZE); in GapSetLeSigningInfo()
1164 ret = SMP_GenerateSignature(deviceInfo->localSigningInfo.csrk, counter, dataInfo.data, dataInfo.dataLen); in GAP_LeDataSignatureGeneration()
1208 SMP_GenerateSignature(deviceInfo->remoteSigningInfo.csrk, counter, dataInfo.data, dataInfo.dataLen); in GAP_LeDataSignatureConfirmation()
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/
H A Dgap_le_if.h317 uint8_t csrk[GAP_CSRK_SIZE]; /// Connection Signature Resolving Key member

Completed in 13 milliseconds