/drivers/peripheral/user_auth/hdi_service/key_mgr/src/ |
H A D | hmac_key.c | 28 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 D | executor_message.h | 55 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 D | sign_param.h | 36 Uint8Array peerUdid; member
|
/drivers/peripheral/user_auth/hdi_service/coauth/src/ |
H A D | executor_message.c | 704 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 D | adaptor_algorithm.h | 58 int32_t GetDistributeKey(const Buffer *peerUdid, const Buffer *salt, Buffer **key);
|
/drivers/peripheral/pin_auth/hdi_service/main/src/ |
H A D | collector_func.c | 36 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 D | verifier_func.c | 39 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 D | user_auth_funcs.c | 214 .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 D | adaptor_algorithm.h | 69 int32_t GetDistributeKey(const Buffer *peerUdid, const Buffer *salt, Buffer **key);
|
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/ |
H A D | user_auth_funcs.h | 84 Buffer *GetSignExecutorInfoFunc(Uint8Array peerUdid, LinkedList *executorList);
|
/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
H A D | adaptor_algorithm.c | 489 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 D | adaptor_algorithm.c | 359 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 D | user_auth_interface_service.cpp | 157 IAM_LOGE("SetAttributeUint8Array peerUdid failed");
in SetAttributeToCoAuthExecMsg() 208 .peerUdid = { paramHal.collectorUdid, sizeof(paramHal.collectorUdid) }
in SetAttributeToCollectorExecMsg()
|