Home
last modified time | relevance | path

Searched refs:encKeySize (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp_legacy.c247 if (SMP_GetPairMng()->encKeySize < SMP_STK_LEN) { in SMP_LegacyPairMasterStep10()
248 (void)memset_s(SMP_GetPairMng()->STK + SMP_GetPairMng()->encKeySize, in SMP_LegacyPairMasterStep10()
249 (SMP_STK_LEN - SMP_GetPairMng()->encKeySize), in SMP_LegacyPairMasterStep10()
251 (SMP_STK_LEN - SMP_GetPairMng()->encKeySize)); in SMP_LegacyPairMasterStep10()
298 …ermKeyCopy(SMP_GetPairMng()->local.LTK, SMP_GetPairMng()->local.LTK, SMP_GetPairMng()->encKeySize); in SMP_LegacyPairMasterStep14()
623 if (SMP_GetPairMng()->encKeySize < SMP_STK_LEN) { in SMP_LegacyPairSlaveStep11()
624 (void)memset_s(SMP_GetPairMng()->STK + SMP_GetPairMng()->encKeySize, in SMP_LegacyPairSlaveStep11()
625 (SMP_STK_LEN - SMP_GetPairMng()->encKeySize), in SMP_LegacyPairSlaveStep11()
627 (SMP_STK_LEN - SMP_GetPairMng()->encKeySize)); in SMP_LegacyPairSlaveStep11()
673 …ermKeyCopy(SMP_GetPairMng()->local.LTK, SMP_GetPairMng()->local.LTK, SMP_GetPairMng()->encKeySize); in SMP_LegacyPairSlaveStep15()
H A Dsmp_tool.c725 mng->encKeySize = mng->peer.pairParam.maxEncKeySize; in SMP_CalculateEncKeySize()
727 mng->encKeySize = mng->local.pairParam.maxEncKeySize; in SMP_CalculateEncKeySize()
963 void SMP_LongTermKeyCopy(uint8_t *destLtk, const uint8_t *sourceLtk, uint8_t encKeySize) in SMP_LongTermKeyCopy() argument
969 if (encKeySize < SMP_LTK_LEN) { in SMP_LongTermKeyCopy()
970 …(void)memset_s(destLtk + encKeySize, (SMP_LTK_LEN - encKeySize), 0x00, (SMP_LTK_LEN - encKeySize)); in SMP_LongTermKeyCopy()
H A Dsmp.h150 uint8_t encKeySize; member
H A Dsmp_def.h160 uint8_t encKeySize; member
H A Dsmp_tool.h187 void SMP_LongTermKeyCopy(uint8_t *destLtk, const uint8_t *sourceLtk, uint8_t encKeySize);
H A Dsmp_sc_accepter.c1198 SMP_LongTermKeyCopy(SMP_GetPairMng()->local.LTK, tmpLTK, SMP_GetPairMng()->encKeySize); in SMP_ScPairCommonSlaveStep10()
1199 SMP_LongTermKeyCopy(SMP_GetPairMng()->peer.LTK, tmpLTK, SMP_GetPairMng()->encKeySize); in SMP_ScPairCommonSlaveStep10()
H A Dsmp_sc_initiator.c1127 SMP_LongTermKeyCopy(SMP_GetPairMng()->local.LTK, tempLTK, SMP_GetPairMng()->encKeySize); in SMP_ScPairCommonMasterStep9()
1128 SMP_LongTermKeyCopy(SMP_GetPairMng()->peer.LTK, tempLTK, SMP_GetPairMng()->encKeySize); in SMP_ScPairCommonMasterStep9()
H A Dsmp.c1596 pairResult.encKeySize = g_smpPairMng.encKeySize; in SMP_GenPairRetNormal()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
H A Dgap_le_conn.c392 int GAP_LeGetSecurityStatus(const BtAddr *addr, GAP_LeSecurityStatus *status, uint8_t *encKeySize) in GAP_LeGetSecurityStatus() argument
403 *encKeySize = deviceInfo->keySize; in GAP_LeGetSecurityStatus()
408 *encKeySize); in GAP_LeGetSecurityStatus()
H A Dgap_le.h403 int GAP_LeGetSecurityStatus(const BtAddr *addr, GAP_LeSecurityStatus *status, uint8_t *encKeySize);
H A Dgap_le_if.c165 uint8_t *encKeySize; member
1329 info->result = GAP_LeGetSecurityStatus(info->addr, info->status, info->encKeySize); in GapLeGetSecurityStatusTask()
1332 int GAPIF_LeGetSecurityStatus(const BtAddr *addr, GAP_LeSecurityStatus *status, uint8_t *encKeySize) in GAPIF_LeGetSecurityStatus() argument
1344 ctx->encKeySize = encKeySize; in GAPIF_LeGetSecurityStatus()
H A Dgap_sm_receive.c161 result->encKeySize, in GapRecvLePairResult()
H A Dgap_le_sec.c281 keys->remoteEncKey->keySize = result->encKeySize; in GapLePairKeyConvert()
307 keys->localEncKey->keySize = result->encKeySize; in GapLePairKeyConvert()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/include/
H A Dgap_le_if.h802 …t GAPIF_LeGetSecurityStatus(const BtAddr *addr, GAP_LeSecurityStatus *status, uint8_t *encKeySize);
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
H A Dgatt_connection_manager.cpp1164 uint8_t encKeySize = 0; in CheckEncryption() local
1170 if (GAPIF_LeGetSecurityStatus(&addr, &status, &encKeySize) == in CheckEncryption()
1171 BT_SUCCESS && encKeySize != GAP_LE_NO_ENCRYPTION) { in CheckEncryption()