Home
last modified time | relevance | path

Searched refs:peerUdid (Results 1 - 13 of 13) sorted by relevance

/drivers/peripheral/user_auth/hdi_service/key_mgr/src/
H A Dhmac_key.c28 static Buffer *GenerateHmacKey(const Buffer *peerUdid) in GenerateHmacKey() argument
30 if (!CheckBufferWithSize(peerUdid, UDID_LEN)) { in GenerateHmacKey()
44 if (memcmp(localUdidBuf.buf, peerUdid->buf, UDID_LEN) < 0) { in GenerateHmacKey()
45 salt = MergeBuffers(&localUdidBuf, peerUdid); in GenerateHmacKey()
47 salt = MergeBuffers(peerUdid, &localUdidBuf); in GenerateHmacKey()
54 ResultCode result = (ResultCode)GetDistributeKey(peerUdid, salt, &key); in GenerateHmacKey()
75 Buffer peerUdidBuf = GetTmpBuffer(signParam.peerUdid.data, signParam.peerUdid.len, signParam.peerUdid.len); in HmacSign()
107 Buffer peerUdidBuf = GetTmpBuffer(signParam.peerUdid in HmacVerify()
[all...]
/drivers/peripheral/user_auth/hdi_service/coauth/inc/
H A Dexecutor_message.h55 ResultCode CreateScheduleInfo(const Buffer *tlv, Uint8Array peerUdid, ScheduleInfoParam *scheduleInfo);
58 Buffer *GetExecutorInfoTlv(Uint8Array attrsTlv, Uint8Array peerUdid);
/drivers/peripheral/user_auth/hdi_service/key_mgr/inc/
H A Dsign_param.h36 Uint8Array peerUdid; member
/drivers/peripheral/user_auth/hdi_service/coauth/src/
H A Dexecutor_message.c704 IAM_STATIC ResultCode GetRemoteExecutorInfo(const Buffer *msg, Uint8Array peerUdid, Uint8Array *subMsgs, int *subMsgSize) in GetRemoteExecutorInfo() argument
707 SignParam signParam = { .needSignature = true, .keyType = KEY_TYPE_CROSS_DEVICE, .peerUdid = peerUdid}; in GetRemoteExecutorInfo()
751 Uint8Array peerUdid = { infoToCheck->deviceUdid, sizeof(infoToCheck->deviceUdid) }; in CheckRemoteExecutorInfo() local
754 ResultCode result = GetRemoteExecutorInfo(msg, peerUdid, &subMsgs[0], &subMsgSize); in CheckRemoteExecutorInfo()
787 LOG_ERROR("SetAttributeUint8Array for peerUdid fail"); in SetExecutorCollectMsgToAttribute()
965 ResultCode CreateScheduleInfo(const Buffer *tlv, Uint8Array peerUdid, ScheduleInfoParam *scheduleInfo) in CreateScheduleInfo() argument
967 if (!IsBufferValid(tlv) || IS_ARRAY_NULL(peerUdid) || (scheduleInfo == NULL)) { in CreateScheduleInfo()
973 SignParam signParam = { .needSignature = true, .keyType = KEY_TYPE_CROSS_DEVICE, .peerUdid = peerUdid }; in CreateScheduleInfo()
1034 Uint8Array peerUdid = { .data = authResultInfo->remoteUdid, .len = UDID_LEN }; CreateAuthResultInfo() local
1105 GetExecutorInfoTlv(Uint8Array attrsTlv, Uint8Array peerUdid) GetExecutorInfoTlv() argument
[all...]
/drivers/peripheral/user_auth/hdi_service/adaptor/inc/
H A Dadaptor_algorithm.h58 int32_t GetDistributeKey(const Buffer *peerUdid, const Buffer *salt, Buffer **key);
/drivers/peripheral/pin_auth/hdi_service/main/src/
H A Dcollector_func.c36 Buffer *peerUdid; member
109 DestroyBuffer(g_collectorSchedule->peerUdid); in DestroyCollectorSchedule()
129 g_collectorSchedule->peerUdid = GetBufferFromAttribute(attribute, ATTR_PEER_UDID, CONST_FWK_UDID_SIZE); in GetCollectInfoFromSchedule()
130 if (g_collectorSchedule->peerUdid == NULL) { in GetCollectInfoFromSchedule()
335 if (GetDistributeKey(g_collectorSchedule->peerUdid, g_collectorSchedule->salt, &(aesGcmParam->key)) != in GetAesGcmParam()
H A Dverifier_func.c39 Buffer *peerUdid; member
111 DestroyBuffer(g_verifierSchedule->peerUdid); in DestroyVerifierSchedule()
142 g_verifierSchedule->peerUdid = GetBufferFromAttribute(attribute, ATTR_PEER_UDID, CONST_FWK_UDID_SIZE); in GetAuthInfoFromSchedule()
143 if (g_verifierSchedule->peerUdid == NULL) { in GetAuthInfoFromSchedule()
410 if (GetDistributeKey(g_verifierSchedule->peerUdid, g_verifierSchedule->salt, &(aesGcmParam->key)) != in GetAesGcmParam()
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Duser_auth_funcs.c214 .peerUdid = collectorUdid in GenerateRemoteAuthResultMsg()
528 static Buffer *GetSignExecutorInfoFuncInner(Uint8Array peerUdid, LinkedList *executorList, in GetSignExecutorInfoFuncInner() argument
556 return GetExecutorInfoTlv(executorInfoTlvMsg, peerUdid); in GetSignExecutorInfoFuncInner()
559 Buffer *GetSignExecutorInfoFunc(Uint8Array peerUdid, LinkedList *executorList) in GetSignExecutorInfoFunc() argument
561 if (IS_ARRAY_NULL(peerUdid) || executorList == NULL) { in GetSignExecutorInfoFunc()
590 signedExecutorInfo = GetSignExecutorInfoFuncInner(peerUdid, executorList, in GetSignExecutorInfoFunc()
/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/
H A Dadaptor_algorithm.h69 int32_t GetDistributeKey(const Buffer *peerUdid, const Buffer *salt, Buffer **key);
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/
H A Duser_auth_funcs.h84 Buffer *GetSignExecutorInfoFunc(Uint8Array peerUdid, LinkedList *executorList);
/drivers/peripheral/user_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c489 int32_t GetDistributeKey(const Buffer *peerUdid, const Buffer *salt, Buffer **key) in GetDistributeKey() argument
491 if (!IsBufferValid(peerUdid) || !IsBufferValid(salt) || (key == NULL)) { in GetDistributeKey()
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c359 int32_t GetDistributeKey(const Buffer *peerUdid, const Buffer *salt, Buffer **key) in GetDistributeKey() argument
361 if (!IsBufferValid(peerUdid) || !IsBufferValid(salt) || (key == NULL)) { in GetDistributeKey()
/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp157 IAM_LOGE("SetAttributeUint8Array peerUdid failed"); in SetAttributeToCoAuthExecMsg()
208 .peerUdid = { paramHal.collectorUdid, sizeof(paramHal.collectorUdid) } in SetAttributeToCollectorExecMsg()

Completed in 10 milliseconds