Searched refs:SMP_LTK_LEN (Results 1 - 11 of 11) sorted by relevance
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp.h | 129 #define SMP_LTK_LEN 0x10 macro 153 uint8_t localLTK[SMP_LTK_LEN]; 156 uint8_t peerLTK[SMP_LTK_LEN];
|
H A D | smp_def.h | 143 uint8_t LTK[SMP_LTK_LEN]; 255 uint8_t key[SMP_LTK_LEN]; 297 uint8_t key[SMP_LTK_LEN];
|
H A D | smp.c | 591 (void)memcpy_s(ctx->key, SMP_LTK_LEN, key, SMP_LTK_LEN); in SMP_LongTermKeyRequestReply() 627 (void)memcpy_s(replycmdParam.longTermKey, SMP_LTK_LEN, key, SMP_LTK_LEN); in SMP_LtkReqReplyNormal() 662 (void)memcpy_s(ctx->key, SMP_LTK_LEN, key, SMP_LTK_LEN); in SMP_StartEncryption() 688 (void)memcpy_s(startEncParam.longTermKey, SMP_LTK_LEN, param->key, SMP_LTK_LEN); in SMP_StartEncTask() 1583 (void)memcpy_s(pairResult.localLTK, SMP_LTK_LEN, g_smpPairMng.local.LTK, SMP_LTK_LEN); in SMP_GenPairRetNormal() [all...] |
H A D | smp_receive.c | 647 if (memcpy_s(SMP_GetPairMng()->peer.LTK, SMP_LTK_LEN, (uint8_t *)BufferPtr(buffer), SMP_LTK_LEN) != EOK) { in SMP_RecvEncInfoProcessMaster() 697 if (memcpy_s(SMP_GetPairMng()->peer.LTK, SMP_LTK_LEN, (uint8_t *)BufferPtr(buffer), SMP_LTK_LEN) != EOK) { in SMP_RecvEncInfoProcessSlave()
|
H A D | smp_send.c | 90 uint8_t ltkTemp[SMP_LTK_LEN] = {0x00}; in SMP_SendDistKeysToRemoteEncKey() 95 (void)memcpy_s(ltkTemp, SMP_LTK_LEN, SMP_GetPairMng()->local.LTK, SMP_LTK_LEN); in SMP_SendDistKeysToRemoteEncKey()
|
H A D | smp_tool.c | 966 (void)memcpy_s(destLtk, SMP_LTK_LEN, sourceLtk, SMP_LTK_LEN); in SMP_LongTermKeyCopy() 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_hci_event.c | 874 (void)memcpy_s(replycmdParam.longTermKey, SMP_LTK_LEN, SMP_GetPairMng()->STK, SMP_STK_LEN); in SMP_OnLtkReqLegacyPair() 892 (void)memcpy_s(replycmdParam.longTermKey, SMP_LTK_LEN, SMP_GetPairMng()->local.LTK, SMP_LTK_LEN); in SMP_OnLtkReqScPair()
|
H A D | smp_legacy.c | 256 (void)memcpy_s(startEncParam.longTermKey, SMP_LTK_LEN, SMP_GetPairMng()->STK, SMP_STK_LEN); in SMP_LegacyPairMasterStep10() 279 (void)memcpy_s(SMP_GetPairMng()->local.LTK, SMP_LTK_LEN, returnParam->randomNumber, SMP_RAND_NUM_LEN); in SMP_LegacyPairMasterStep13() local 652 (void)memcpy_s(SMP_GetPairMng()->local.LTK, SMP_LTK_LEN, returnParam->randomNumber, SMP_RAND_NUM_LEN); in SMP_LegacyPairSlaveStep14() local
|
H A D | smp_sc_initiator.c | 1120 uint8_t tempLTK[SMP_LTK_LEN] = {0x00}; in SMP_ScPairCommonMasterStep9() 1126 (void)memcpy_s(tempLTK, SMP_LTK_LEN, encData->encRetParam->encryptedData, SMP_LTK_LEN); in SMP_ScPairCommonMasterStep9() 1308 (void)memcpy_s(startEncParam.longTermKey, SMP_LTK_LEN, SMP_GetPairMng()->local.LTK, SMP_LTK_LEN); in SMP_ScPairCommonMasterStep16()
|
H A D | smp_cmd.c | 219 PacketPayloadWrite(pkt, ltk, offset, SMP_LTK_LEN); in SMP_SendEncryptionInformation()
|
H A D | smp_sc_accepter.c | 1188 uint8_t tmpLTK[SMP_LTK_LEN] = {0x00}; in SMP_ScPairCommonSlaveStep10() 1197 (void)memcpy_s(tmpLTK, SMP_LTK_LEN, returnParam->encryptedData, SMP_LTK_LEN); in SMP_ScPairCommonSlaveStep10()
|
Completed in 15 milliseconds