/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_legacy.c | 247 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 D | smp_tool.c | 725 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 D | smp.h | 150 uint8_t encKeySize; member
|
H A D | smp_def.h | 160 uint8_t encKeySize; member
|
H A D | smp_tool.h | 187 void SMP_LongTermKeyCopy(uint8_t *destLtk, const uint8_t *sourceLtk, uint8_t encKeySize);
|
H A D | smp_sc_accepter.c | 1198 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 D | smp_sc_initiator.c | 1127 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 D | smp.c | 1596 pairResult.encKeySize = g_smpPairMng.encKeySize; in SMP_GenPairRetNormal()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_le_conn.c | 392 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 D | gap_le.h | 403 int GAP_LeGetSecurityStatus(const BtAddr *addr, GAP_LeSecurityStatus *status, uint8_t *encKeySize);
|
H A D | gap_le_if.c | 165 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 D | gap_sm_receive.c | 161 result->encKeySize, in GapRecvLePairResult()
|
H A D | gap_le_sec.c | 281 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 D | gap_le_if.h | 802 …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 D | gatt_connection_manager.cpp | 1164 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()
|