Home
last modified time | relevance | path

Searched refs:authType (Results 1 – 25 of 56) sorted by relevance

123

/drivers/peripheral/user_auth/test/unittest/user_auth_test/
Dauth_level_test.cpp27 extern ResultCode GetAsl(uint32_t authType, uint32_t *asl);
28 extern ResultCode GetAcl(int32_t userId, uint32_t authType, uint32_t *acl);
86 uint32_t authType = 1; variable
88 EXPECT_EQ(GetAsl(authType, &asl), RESULT_UNKNOWN);
96 executorInfo.authType = 1;
99 uint32_t authType = 1; variable
101 EXPECT_EQ(GetAsl(authType, &asl), RESULT_GENERAL_ERROR);
109 executorInfo.authType = 1;
113 uint32_t authType = 1; variable
115 EXPECT_EQ(GetAsl(authType, &asl), RESULT_SUCCESS);
[all …]
Duser_auth_funcs_test.cpp21 …extern int32_t SetAuthResult(uint32_t authType, const ExecutorResultInfo *info, AuthResult *result…
49 uint32_t authType = 1; variable
54 EXPECT_EQ(SetAuthResult(authType, &info, &result), RESULT_NO_MEMORY);
/drivers/peripheral/user_auth/hdi_service/idm/src/
Denroll_specification_check.c29 AuthType authType; member
39 IAM_STATIC uint32_t GetMaxNumber(uint32_t authType) in GetMaxNumber() argument
42 if (g_specificationMap[i].authType == authType) { in GetMaxNumber()
61 if (tokenPlain.tokenDataPlain.authType != PIN_AUTH) { in CheckIdmOperationToken()
89 ResultCode CheckSpecification(int32_t userId, uint32_t authType) in CheckSpecification() argument
92 SetCredentialConditionAuthType(&condition, authType); in CheckSpecification()
99 uint32_t maxNumber = GetMaxNumber(authType); in CheckSpecification()
101 … LOG_ERROR("the erolled quantity has reached the upper limit, authType is %{public}u", authType); in CheckSpecification()
Duser_idm_funcs.c37 scheduleParam.authType = param->authType; in GenerateIdmSchedule()
41 … ResultCode ret = QueryCollecterMatcher(scheduleParam.authType, scheduleParam.collectorSensorHint, in GenerateIdmSchedule()
50 if (QueryCredentialFunc(param->userId, param->authType, &credList) != RESULT_SUCCESS) { in GenerateIdmSchedule()
93 ret = AssociateCoauthSchedule(enrollSchedule->scheduleId, param->authType, isUpdate); in GenerateCoAuthSchedule()
117 ResultCode ret = CheckSpecification(param.userId, param.authType); in CheckEnrollPermission()
119 …RROR("check specification failed, authType is %{public}u, ret is %{public}d", param.authType, ret); in CheckEnrollPermission()
122 if (param.authType != PIN_AUTH) { in CheckEnrollPermission()
135 if (scheduleId == NULL || param.authType != PIN_AUTH) { in CheckUpdatePermission()
143 ResultCode ret = CheckSpecification(param.userId, param.authType); in CheckUpdatePermission()
145 … LOG_ERROR("no pin or exception, authType is %{public}u, ret is %{public}d", param.authType, ret); in CheckUpdatePermission()
[all …]
Didm_session.c40 uint32_t authType; member
173 ResultCode AssociateCoauthSchedule(uint64_t scheduleId, uint32_t authType, bool isUpdate) in AssociateCoauthSchedule() argument
179 g_session->authType = authType; in AssociateCoauthSchedule()
196 ResultCode GetEnrollScheduleInfo(uint64_t *scheduleId, uint32_t *authType) in GetEnrollScheduleInfo() argument
198 if (scheduleId == NULL || authType == NULL) { in GetEnrollScheduleInfo()
206 *authType = g_session->authType; in GetEnrollScheduleInfo()
/drivers/peripheral/user_auth/hdi_service/coauth/inc/
Dpool.h37 uint32_t authType; member
56 uint32_t authType; member
68 ResultCode QueryCollecterMatcher(uint32_t authType, uint32_t executorSensorHint, uint32_t *matcher);
69 uint64_t QueryCredentialExecutorIndex(uint32_t authType, uint32_t executorSensorHint);
73 void SetExecutorConditionAuthType(ExecutorCondition *condition, uint32_t authType);
Dcoauth.h37 uint32_t authType; member
48 uint32_t authType; member
/drivers/peripheral/user_auth/test/unittest/service_test/src/
Duser_auth_interface_service_test.cpp66 …DoOnceExecutorRegister(const std::shared_ptr<UserAuthInterfaceService> &service, AuthType authType, in DoOnceExecutorRegister() argument
70 info.authType = authType; in DoOnceExecutorRegister()
94 …Enroll(const std::shared_ptr<UserAuthInterfaceService> &service, int32_t userId, AuthType authType, in DoOnceEnroll() argument
98 enrollParam.authType = authType; in DoOnceEnroll()
117 …ceAuth(const std::shared_ptr<UserAuthInterfaceService> &service, int32_t userId, AuthType authType, in DoOnceAuth() argument
124 authParam.authType = authType; in DoOnceAuth()
195 info.authType = AuthType::FACE;
216 info.authType = AuthType::FACE;
310 param.authType = AuthType::PIN;
330 info.authType = AuthType::PIN;
[all …]
/drivers/peripheral/user_auth/hdi_service/coauth/src/
Dpool.c63 executorInfo->authType == executorIndex->authType && in IsExecutorNodeMatch()
139 SetExecutorConditionAuthType(&condition, executorInfo->authType); in QueryRepeatExecutor()
230 condition->authType != credentialInfo->authType) { in IsExecutorMatch()
291 ResultCode QueryCollecterMatcher(uint32_t authType, uint32_t executorSensorHint, uint32_t *matcher) in QueryCollecterMatcher() argument
313 …if (executorInfo->authType == authType && executorInfo->executorSensorHint == executorSensorHint && in QueryCollecterMatcher()
326 uint64_t QueryCredentialExecutorIndex(uint32_t authType, uint32_t executorSensorHint) in QueryCredentialExecutorIndex() argument
344 …if (executorInfo->authType == authType && executorInfo->executorSensorHint == executorSensorHint && in QueryCredentialExecutorIndex()
366 void SetExecutorConditionAuthType(ExecutorCondition *condition, uint32_t authType) in SetExecutorConditionAuthType() argument
372 condition->authType = authType; in SetExecutorConditionAuthType()
/drivers/peripheral/user_auth/hdi_service/service/
Duser_auth_interface_service.cpp79 out->authType = static_cast<AuthType>(in->authType); in CopyScheduleInfoV1_1()
88 temp.info.authType = static_cast<AuthType>(in->executors[i].authType); in CopyScheduleInfoV1_1()
147 int32_t ret = QueryCredentialFunc(userId, info.authType, &credList); in GetCapabilityLevel()
193 out.authType = in.authType; in CopyScheduleInfoV1_1ToV1_0()
199 outInfo.info.authType = inInfo.info.authType; in CopyScheduleInfoV1_1ToV1_0()
236 solutionIn.authType = static_cast<uint32_t>(param.authType); in BeginAuthenticationV1_1()
384 if (authTokenHal.tokenDataPlain.authType != PIN_AUTH) { in UpdateAuthenticationResult()
399 int32_t UserAuthInterfaceService::BeginIdentification(uint64_t contextId, AuthType authType, in BeginIdentification() argument
404 …int32_t ret = BeginIdentificationV1_1(contextId, authType, challenge, executorSensorHint, infoV1_1… in BeginIdentification()
409 int32_t UserAuthInterfaceService::BeginIdentificationV1_1(uint64_t contextId, AuthType authType, in BeginIdentificationV1_1() argument
[all …]
/drivers/peripheral/user_auth/test/unittest/idm_test/
Duser_idm_funcs_test.cpp31 uint32_t authType; member
78 info.authType = 1;
83 param.authType = 1;
106 param.authType = FACE_AUTH;
119 param.authType = 2;
123 param.authType = 1;
138 param.authType = 1;
147 credInfo.authType = 1;
169 session.authType = 2;
207 token.tokenDataPlain.authType = 4;
[all …]
Denroll_specification_check_test.cpp30 uint32_t authType; member
74 token.tokenDataPlain.authType = FACE_AUTH;
82 token.tokenDataPlain.authType = PIN_AUTH;
96 token.tokenDataPlain.authType = 1;
137 uint32_t authType = 1; variable
138 EXPECT_EQ(CheckSpecification(userId, authType), RESULT_UNKNOWN);
Didm_session_test.cpp27 uint32_t authType; member
122 uint32_t authType = 1; variable
123 EXPECT_EQ(GetEnrollScheduleInfo(&scheduleId, &authType), RESULT_NEED_INIT);
127 EXPECT_EQ(GetEnrollScheduleInfo(&scheduleId, &authType), RESULT_NEED_INIT);
129 EXPECT_EQ(GetEnrollScheduleInfo(&scheduleId, &authType), RESULT_SUCCESS);
/drivers/peripheral/user_auth/test/unittest/co_auth/
Dpool_test.cpp98 info.authType = 4;
110 info1->authType = 1;
115 info2->authType = 1;
188 info1.authType = 1;
193 info2.authType = 1;
198 info3.authType = 1;
201 info4.authType = 4;
215 info1.authType = 1;
221 info2.authType = 1;
226 info3.authType = 1;
[all …]
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
Duser_auth_funcs.c58 IAM_STATIC ResultCode SetAuthResult(uint32_t authType, const ExecutorResultInfo *info, AuthResult *… in SetAuthResult() argument
60 result->authType = authType; in SetAuthResult()
64 if (result->result == RESULT_SUCCESS && authType == PIN_AUTH) { in SetAuthResult()
116 ret = SetAuthResult(userAuthContext->authType, executorResultInfo, result); in RequestAuthResultFunc()
Dauth_level.c83 IAM_STATIC ResultCode GetAsl(uint32_t authType, uint32_t *asl) in GetAsl() argument
87 SetExecutorConditionAuthType(&condition, authType); in GetAsl()
119 IAM_STATIC ResultCode GetAcl(int32_t userId, uint32_t authType, uint32_t *acl) in GetAcl() argument
122 SetCredentialConditionAuthType(&condition, authType); in GetAcl()
146 ResultCode SingleAuthTrustLevel(int32_t userId, uint32_t authType, uint32_t *atl) in SingleAuthTrustLevel() argument
153 ResultCode ret = GetAsl(authType, &authSecureLevel); in SingleAuthTrustLevel()
160 ret = GetAcl(userId, authType, &authCapabilityLevel); in SingleAuthTrustLevel()
Dcontext_manager.c74 context->authType = params.authType; in InitAuthContext()
127 scheduleParam.authType = context->authType; in CreateIdentifySchedule()
153 context->authType = params->authType; in InitIdentifyContext()
259 SetCredentialConditionAuthType(&condition, context->authType); in GetAuthCredentialList()
263 …ResultCode ret = QueryCollecterMatcher(context->authType, context->collectorSensorHint, &executorM… in GetAuthCredentialList()
352 scheduleParam.authType = context->authType; in CreateAuthSchedule()
543 SetCredentialConditionAuthType(&condition, context->authType); in FillInContext()
/drivers/peripheral/user_auth/hdi_service/database/src/
Didm_database.c47 IAM_STATIC CredentialInfoHal *QueryCredentialByAuthType(uint32_t authType, LinkedList *credentialLi…
119 ResultCode GetEnrolledInfoAuthType(int32_t userId, uint32_t authType, EnrolledInfoHal *enrolledInfo) in GetEnrolledInfoAuthType() argument
138 if (nodeInfo != NULL && nodeInfo->authType == authType) { in GetEnrolledInfoAuthType()
366 IAM_STATIC ResultCode UpdateEnrolledId(LinkedList *enrolledList, uint32_t authType) in UpdateEnrolledId() argument
372 if (nodeData != NULL && nodeData->authType == authType) { in UpdateEnrolledId()
388 enrolledInfo->authType = authType; in UpdateEnrolledId()
416 ResultCode ret = UpdateEnrolledId(enrolledList, credentialInfo->authType); in AddCredentialToUser()
492 if (user == NULL && credentialInfo->authType == PIN_AUTH) { in AddCredentialInfo()
508 if (credentialInfo->authType == PIN_AUTH) { in AddCredentialInfo()
555 uint32_t authType = *(uint32_t *)condition; in MatchEnrolledInfoByType() local
[all …]
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/
Dcontext_manager.h33 uint32_t authType; member
43 uint32_t authType; member
51 uint32_t authType; member
/drivers/peripheral/user_auth/hdi_service/database/inc/
Didm_common.h32 uint32_t authType; member
39 uint32_t authType; member
Didm_database.h47 uint32_t authType; member
55 ResultCode GetEnrolledInfoAuthType(int32_t userId, uint32_t authType, EnrolledInfoHal *enrolledInfo…
68 void SetCredentialConditionAuthType(CredentialCondition *condition, uint32_t authType);
/drivers/peripheral/user_auth/hdi_service/idm/inc/
Didm_session.h31 ResultCode AssociateCoauthSchedule(uint64_t scheduleId, uint32_t authType, bool isUpdate);
39 ResultCode GetEnrollScheduleInfo(uint64_t *scheduleId, uint32_t *authType);
Duser_idm_funcs.h30 uint32_t authType; member
44 ResultCode QueryCredentialFunc(int32_t userId, uint32_t authType, LinkedList **creds);
Denroll_specification_check.h33 ResultCode CheckSpecification(int32_t userId, uint32_t authType);
/drivers/peripheral/user_auth/test/fuzztest/user_auth/userauthhdi_fuzzer/
Duser_auth_hdi_fuzzer.cpp53 executorRegisterInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzExecutorRegisterInfo()
83 scheduleInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzScheduleInfo()
104 scheduleInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzScheduleInfoV1_1()
126 authSolution.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzAuthSolution()
169 enrollParam.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzEnrollParam()
179 credentialInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzCredentialInfo()
198 enrolledInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzEnrolledInfo()
327 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetCredential() local
330 g_service.GetCredential(userId, authType, infos); in FuzzGetCredential()
416 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzBeginIdentification() local
[all …]

123