Searched refs:SMP_IRK_LEN (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_privacy.c | 27 static uint8_t g_smpLocalIRK[SMP_IRK_LEN] = { 106 (void)memcpy_s(g_smpLocalIRK, SMP_IRK_LEN, irk, size); in SMP_SetLocalIrk() 117 (void)memcpy_s(irk, SMP_IRK_LEN, g_smpLocalIRK, size); in SMP_GetLocalIrk() 122 (void)memcpy_s(addr, SMP_IRK_LEN, &g_smpLocalIdentAddr, sizeof(BtAddr)); in SMP_GetLocalIdentAddr()
|
H A D | smp_def.h | 146 uint8_t IRK[SMP_IRK_LEN]; 214 uint8_t irk[SMP_IRK_LEN]; 223 uint8_t irk[SMP_IRK_LEN]; 228 uint8_t irk[SMP_IRK_LEN]; 232 uint8_t irk[SMP_IRK_LEN];
|
H A D | smp.h | 126 #define SMP_IRK_LEN 0x10 macro 159 uint8_t localIRK[SMP_IRK_LEN]; 161 uint8_t peerIRK[SMP_IRK_LEN];
|
H A D | smp.c | 816 ret = SMP_Aes128(irk, SMP_IRK_LEN, message, sizeof(message), encryptedData); in SMP_ResolveRPA() 842 (void)memcpy_s(ctx->irk, sizeof(ctx->irk), irk, SMP_IRK_LEN); in SMP_AsyncResolveRPA() 865 (void)memcpy_s(encCmd->key, sizeof(encCmd->key), param->irk, SMP_IRK_LEN); in SMP_AsyncResoRpaTask() 887 (void)memcpy_s(ctx->irk, sizeof(ctx->irk), irk, SMP_IRK_LEN); in SMP_GenerateRPA() 972 (void)memcpy_s(ctx->irk, sizeof(ctx->irk), irk, SMP_IRK_LEN); in SMP_SetIRK() 984 SMP_SetLocalIrk(param->irk, SMP_IRK_LEN); in SMP_SetIrkTask() 1590 (void)memcpy_s(pairResult.localIRK, SMP_IRK_LEN, g_smpPairMng.local.IRK, SMP_IRK_LEN); in SMP_GenPairRetNormal() 1592 (void)memcpy_s(pairResult.peerIRK, SMP_IRK_LEN, g_smpPairMng.peer.IRK, SMP_IRK_LEN); in SMP_GenPairRetNormal()
|
H A D | smp_send.c | 119 uint8_t irkTemp[SMP_IRK_LEN] = {0x00}; in SMP_SendDistKeysToRemoteIdKey() 125 (void)memcpy_s(irkTemp, SMP_IRK_LEN, SMP_GetPairMng()->local.IRK, SMP_IRK_LEN); in SMP_SendDistKeysToRemoteIdKey()
|
H A D | smp_receive.c | 791 …if (memcpy_s(SMP_GetPairMng()->peer.IRK, SMP_IRK_LEN, (uint8_t *)BufferPtr(buffer), SMP_IRK_LEN) !… in SMP_RecvIdentInfoProcessMaster() 843 …if (memcpy_s(SMP_GetPairMng()->peer.IRK, SMP_IRK_LEN, (uint8_t *)BufferPtr(buffer), SMP_IRK_LEN) !… in SMP_RecvIdentInfoProcessSlave()
|
H A D | smp_cmd.c | 272 PacketPayloadWrite(pkt, irk, offset, SMP_IRK_LEN); in SMP_SendIdentityInformation()
|