Home
last modified time | relevance | path

Searched refs:algoParam (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/drivers/peripheral/pin_auth/hdi_service/main/src/
H A Dcollector_func.c232 static int32_t GetAlgoParam(const Attribute *data, AlgoParamOut *algoParam) in GetAlgoParam() argument
234 int32_t result = GetAttributeUint64(data, ATTR_PIN_SUB_TYPE, &(algoParam->subType)); in GetAlgoParam()
239 result = GetAttributeUint32(data, PIN_ATTR_ALGO_VERSION, &(algoParam->algoVersion)); in GetAlgoParam()
245 .data = algoParam->algoParameter, in GetAlgoParam()
246 .len = sizeof(algoParam->algoParameter), in GetAlgoParam()
253 if (uint8Array.len != sizeof(algoParam->algoParameter)) { in GetAlgoParam()
257 if (memcpy_s(algoParam->challenge, sizeof(algoParam->challenge), in GetAlgoParam()
265 …sageToCollector(uint64_t scheduleId, const uint8_t *msg, uint32_t msgSize, AlgoParamOut *algoParam) in DoSendMessageToCollector() argument
269 (msg == NULL) || (msgSize == 0) || (algoParam == NULL)) { in DoSendMessageToCollector()
294 result = GetAlgoParam(data, algoParam); in DoSendMessageToCollector()
H A Dverifier_func.c196 Buffer *algoParam = CreateBufferBySize(CONST_SALT_LEN); in SetVerifyAckDataPinParam() local
197 if (algoParam == NULL) { in SetVerifyAckDataPinParam()
201 algoParam->contentSize = algoParam->maxSize; in SetVerifyAckDataPinParam()
204 g_verifierSchedule->templateId, algoParam->buf, &(algoParam->contentSize), &algoVersion); in SetVerifyAckDataPinParam()
207 DestroyBuffer(algoParam); in SetVerifyAckDataPinParam()
210 if (SetBufferToAttribute(attribute, PIN_ATTR_ALGO_PARAM, algoParam) != RESULT_SUCCESS) { in SetVerifyAckDataPinParam()
212 DestroyBuffer(algoParam); in SetVerifyAckDataPinParam()
215 DestroyBuffer(algoParam); in SetVerifyAckDataPinParam()
H A Dall_in_one_func.c79 const uint8_t *extraInfo, uint32_t extraInfoSize, AlgoParamOut *algoParam) in DoAllInOneAuth() argument
82 …= NULL) || (extraInfoSize == 0) || (extraInfoSize > MAX_EXECUTOR_MSG_LEN) || (algoParam == NULL)) { in DoAllInOneAuth()
87 ResultCode result = GetSubType(templateId, &(algoParam->subType)); in DoAllInOneAuth()
93 …result = DoGetAlgoParameter(templateId, algoParam->algoParameter, &algoParameterSize, &(algoParam-… in DoAllInOneAuth()
H A Dpin_auth.cpp414 AlgoParamOut algoParam = {}; in SendMessageToCollector() local
415 int32_t result = DoSendMessageToCollector(scheduleId, msg.data(), msg.size(), &algoParam); in SendMessageToCollector()
420 pinAlgoParam.algoVersion = algoParam.algoVersion; in SendMessageToCollector()
421 pinAlgoParam.subType = algoParam.subType; in SendMessageToCollector()
422 …result = SetVectorByBuffer(pinAlgoParam.algoParameter, algoParam.algoParameter, sizeof(algoParam.a… in SendMessageToCollector()
427 …result = SetVectorByBuffer(pinAlgoParam.challenge, algoParam.challenge, sizeof(algoParam.challenge… in SendMessageToCollector()
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/main/inc/
H A Dcollector_func.h32 …ageToCollector(uint64_t scheduleId, const uint8_t *msg, uint32_t msgSize, AlgoParamOut *algoParam);
H A Dall_in_one_func.h42 const uint8_t *extraInfo, uint32_t extraInfoSize, AlgoParamOut *algoParam);