Home
last modified time | relevance | path

Searched refs:authType (Results 1 - 25 of 57) sorted by relevance

123

/drivers/peripheral/user_auth/hdi_service/idm/src/
H A 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()
95 ResultCode CheckSpecification(int32_t userId, uint32_t authType) in CheckSpecification() argument
98 SetCredentialConditionAuthType(&condition, authType); in CheckSpecification()
105 uint32_t maxNumber = GetMaxNumber(authType); in CheckSpecification()
107 LOG_ERROR("the enrolled quantity has reached the upper limit, authType is %{public}u", authType); in CheckSpecification()
[all...]
H A Duser_idm_funcs.c38 scheduleParam->authType = param->authType; in SetScheduleParam()
63 ResultCode ret = QueryCollecterMatcher(scheduleParam.authType, scheduleParam.collectorSensorHint, in GenerateIdmSchedule()
72 if (QueryCredentialFunc(param->userId, param->authType, &credList) != RESULT_SUCCESS) { in GenerateIdmSchedule()
115 ret = AssociateCoauthSchedule(enrollSchedule->scheduleId, param->authType, isUpdate); in GenerateCoAuthSchedule()
134 if (!GetEnableStatus(param.userId, param.authType)) { in CheckEnrollPermission()
135 LOG_ERROR("authType is not support %{public}d", param.authType); in CheckEnrollPermission()
149 ret = CheckSpecification(param.userId, param.authType); in CheckEnrollPermission()
151 LOG_ERROR("check specification failed, authType i in CheckEnrollPermission()
389 QueryCredentialFunc(int32_t userId, uint32_t authType, LinkedList **creds) QueryCredentialFunc() argument
[all...]
H A Didm_session.c41 uint32_t authType; member
184 ResultCode AssociateCoauthSchedule(uint64_t scheduleId, uint32_t authType, bool isUpdate) in AssociateCoauthSchedule() argument
190 g_session->authType = authType; in AssociateCoauthSchedule()
207 ResultCode GetEnrollScheduleInfo(uint64_t *scheduleId, uint32_t *authType) in GetEnrollScheduleInfo() argument
209 if (scheduleId == NULL || authType == NULL) { in GetEnrollScheduleInfo()
217 *authType = g_session->authType; in GetEnrollScheduleInfo()
/drivers/peripheral/user_auth/test/unittest/co_auth/
H A Dpool_test.cpp93 constexpr uint32_t authType = 4; in HWTEST_F() local
99 info.authType = authType; in HWTEST_F()
106 constexpr uint32_t authType = 1; in HWTEST_F() local
114 info1->authType = authType; in HWTEST_F()
119 info2->authType = authType; in HWTEST_F()
197 info1.authType = authType1; in HWTEST_F()
202 info2.authType in HWTEST_F()
261 constexpr uint32_t authType = 1; HWTEST_F() local
[all...]
H A Dexecutor_message_test.cpp40 extern Buffer *CreateExecutorMsg(uint32_t authType, uint32_t authPropertyMode,
412 info.authType = authType1; in HWTEST_F()
422 credInfo.authType = authType1; in HWTEST_F()
430 info.authType = authType2; in HWTEST_F()
436 constexpr uint32_t authType = 2; in HWTEST_F() local
440 info.authType = authType; in HWTEST_F()
447 constexpr uint32_t authType = 1; in HWTEST_F() local
460 credInfo->authType = authType; in HWTEST_F()
481 constexpr uint32_t authType = 2; HWTEST_F() local
497 constexpr uint32_t authType = 1; HWTEST_F() local
[all...]
/drivers/peripheral/user_auth/test/unittest/user_auth_test/
H A Dauth_level_test.cpp27 extern ResultCode GetExecutorAslAndAcl(uint32_t authType, uint32_t *asl, uint32_t *acl);
87 constexpr uint32_t authType = 1; in HWTEST_F() local
90 EXPECT_EQ(GetExecutorAslAndAcl(authType, &asl, &acl), RESULT_UNKNOWN); in HWTEST_F()
98 executorInfo.authType = 1; in HWTEST_F()
101 constexpr uint32_t authType = 1; in HWTEST_F() local
104 EXPECT_EQ(GetExecutorAslAndAcl(authType, &asl, &acl), RESULT_SUCCESS); in HWTEST_F()
112 executorInfo.authType = 1; in HWTEST_F()
116 constexpr uint32_t authType = 1; in HWTEST_F() local
119 EXPECT_EQ(GetExecutorAslAndAcl(authType, &asl, &acl), RESULT_SUCCESS); in HWTEST_F()
H A Duser_auth_funcs_test.cpp76 context.authType = 4; in HWTEST_F()
85 EXPECT_EQ(result.authType, 4); in HWTEST_F()
94 constexpr uint32_t authType = 1; in HWTEST_F() local
96 EXPECT_EQ(GetEnrolledStateFunc(userId, authType, &enrolledStateHal), RESULT_NOT_ENROLLED); in HWTEST_F()
109 userAuthTokenCached.tokenDataPlain.authType = 1; in HWTEST_F()
143 userAuthTokenCached.tokenDataPlain.authType = 1; in HWTEST_F()
/drivers/peripheral/user_auth/hdi_service/database/src/
H A Didm_database.c54 IAM_STATIC CredentialInfoHal *QueryCredentialByAuthType(uint32_t authType, LinkedList *credentialList);
141 ResultCode GetEnrolledInfoAuthType(int32_t userId, uint32_t authType, EnrolledInfoHal *enrolledInfo) in GetEnrolledInfoAuthType() argument
160 if (nodeInfo != NULL && nodeInfo->authType == authType) { in GetEnrolledInfoAuthType()
390 IAM_STATIC ResultCode UpdateEnrolledId(LinkedList *enrolledList, uint32_t authType) in UpdateEnrolledId() argument
396 if (nodeData != NULL && nodeData->authType == authType) { in UpdateEnrolledId()
412 enrolledInfo->authType = authType; in UpdateEnrolledId()
428 IAM_STATIC uint32_t GetRealAuthTypeForEnrolledId(uint32_t authType) in GetRealAuthTypeForEnrolledId() argument
593 uint32_t authType = *(const uint32_t *)condition; MatchEnrolledInfoByType() local
762 QueryCredentialByAuthType(uint32_t authType, LinkedList *credentialList) QueryCredentialByAuthType() argument
983 SetCredentialConditionAuthType(CredentialCondition *condition, uint32_t authType) SetCredentialConditionAuthType() argument
1180 GetEnrolledState(int32_t userId, uint32_t authType, EnrolledStateHal *enrolledStateHal) GetEnrolledState() argument
1224 UpdateGlobalConfigArray(GlobalConfigParamHal *param, uint32_t authType) UpdateGlobalConfigArray() argument
1267 CheckAuthType(uint32_t authType) CheckAuthType() argument
1353 GetEnableStatus(int32_t userId, uint32_t authType) GetEnableStatus() argument
[all...]
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Dauth_level.c83 IAM_STATIC ResultCode GetExecutorAslAndAcl(uint32_t authType, uint32_t *asl, uint32_t *acl) in GetExecutorAslAndAcl() argument
88 SetExecutorConditionAuthType(&condition, authType); in GetExecutorAslAndAcl()
124 IAM_STATIC ResultCode GetCredMaxAcl(int32_t userId, uint32_t authType, uint32_t *maxCredAcl) in GetCredMaxAcl() argument
128 SetCredentialConditionAuthType(&condition, authType); in GetCredMaxAcl()
151 ResultCode CheckAtlByExecutorAndCred(int32_t userId, uint32_t authType, uint32_t atl) in CheckAtlByExecutorAndCred() argument
155 ResultCode ret = GetExecutorAslAndAcl(authType, &maxAsl, &maxAcl); in CheckAtlByExecutorAndCred()
162 LOG_ERROR("atl does not support, authType:%{public}d, supportedAtl:%{public}u", authType, supportedAtl); in CheckAtlByExecutorAndCred()
167 ret = GetCredMaxAcl(userId, authType, &maxCredAcl); in CheckAtlByExecutorAndCred()
174 LOG_ERROR("atl does not support, authType in CheckAtlByExecutorAndCred()
[all...]
H A Duser_auth_funcs.c48 if (!GetEnableStatus(param.userId, param.authType)) { in GenerateSolutionFunc()
49 LOG_ERROR("authType is not support %{public}d", param.authType); in GenerateSolutionFunc()
90 result->authType = context->authType; in SetAuthResult()
131 if (GetEnrolledState(context->userId, context->authType, &enrolledState) == RESULT_SUCCESS) { in HandleAuthSuccessResult()
135 if (result->result == RESULT_SUCCESS && context->authType == PIN_AUTH && in HandleAuthSuccessResult()
301 ResultCode GetEnrolledStateFunc(int32_t userId, uint32_t authType, EnrolledStateHal *enrolledStateHal) in GetEnrolledStateFunc() argument
303 if (!GetEnableStatus(userId, authType)) { in GetEnrolledStateFunc()
304 LOG_ERROR("authType i in GetEnrolledStateFunc()
424 GetAvailableStatusFunc(int32_t userId, int32_t authType, uint32_t authTrustLevel) GetAvailableStatusFunc() argument
480 GetExecutorInfoLinkedList(uint32_t authType, uint32_t executorRole, LinkedList *allExecutorInfoList) GetExecutorInfoLinkedList() argument
[all...]
/drivers/peripheral/user_auth/hdi_service/coauth/inc/
H A Dpool.h39 uint32_t authType; member
61 uint32_t authType; member
74 ResultCode QueryCollecterMatcher(uint32_t authType, uint32_t executorSensorHint, uint32_t *matcher);
75 uint64_t QueryCredentialExecutorIndex(uint32_t authType, uint32_t executorSensorHint);
79 void SetExecutorConditionAuthType(ExecutorCondition *condition, uint32_t authType);
H A Dcoauth.h37 uint32_t authType; member
51 uint32_t authType; member
62 uint32_t authType; member
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/
H A Duser_auth_funcs.h34 uint32_t authType; member
57 int32_t authType; member
76 ResultCode GetEnrolledStateFunc(int32_t userId, uint32_t authType, EnrolledStateHal *enrolledStateHal);
79 ResultCode GetAvailableStatusFunc(int32_t userId, int32_t authType, uint32_t authTrustLevel);
83 ResultCode GetExecutorInfoLinkedList(uint32_t authType, uint32_t executorRole, LinkedList *allExecutorInfoList);
H A Dcontext_manager.h33 uint32_t authType; member
48 uint32_t authType; member
60 uint32_t authType; member
/drivers/peripheral/user_auth/hdi_service/coauth/src/
H A Dpool.c63 executorInfo->authType == executorIndex->authType && in IsExecutorNodeMatch()
140 SetExecutorConditionAuthType(&condition, executorInfo->authType); in QueryRepeatExecutor()
233 condition->authType != credentialInfo->authType) { in IsExecutorMatch()
298 ResultCode QueryCollecterMatcher(uint32_t authType, uint32_t executorSensorHint, uint32_t *matcher) in QueryCollecterMatcher() argument
320 if (executorInfo->authType == authType && executorInfo->executorSensorHint == executorSensorHint && in QueryCollecterMatcher()
333 uint64_t QueryCredentialExecutorIndex(uint32_t authType, uint32_t executorSensorHint) in QueryCredentialExecutorIndex() argument
351 if (executorInfo->authType in QueryCredentialExecutorIndex()
373 SetExecutorConditionAuthType(ExecutorCondition *condition, uint32_t authType) SetExecutorConditionAuthType() argument
[all...]
/drivers/peripheral/user_auth/test/unittest/service_test/src/
H A Duser_auth_interface_service_test.cpp68 int32_t DoOnceExecutorRegister(const std::shared_ptr<UserAuthInterfaceService> &service, AuthType authType, in DoOnceExecutorRegister() argument
72 info.authType = authType; in DoOnceExecutorRegister()
96 void DoOnceEnroll(const std::shared_ptr<UserAuthInterfaceService> &service, int32_t userId, AuthType authType, in DoOnceEnroll() argument
100 enrollParam.authType = authType; in DoOnceEnroll()
120 void DoOnceAuth(const std::shared_ptr<UserAuthInterfaceService> &service, int32_t userId, AuthType authType, in DoOnceAuth() argument
127 authParam.authType = authType; in DoOnceAuth()
204 info.authType in HWTEST_F()
530 AuthType authType = AuthType::PIN; HWTEST_F() local
674 AuthType authType = AuthType::PIN; HWTEST_F() local
718 AuthType authType = AuthType::PIN; HWTEST_F() local
753 AuthType authType = AuthType::PIN; HWTEST_F() local
770 AuthType authType = AuthType::FACE; HWTEST_F() local
797 AuthType authType = AuthType::FACE; HWTEST_F() local
852 AuthType authType = AuthType::FACE; HWTEST_F() local
916 AuthType authType = AuthType::FACE; HWTEST_F() local
940 AuthType authType = AuthType::PIN; HWTEST_F() local
956 AuthType authType = AuthType::PIN; HWTEST_F() local
988 AuthType authType = AuthType::PIN; HWTEST_F() local
1040 AuthType authType = AuthType::PIN; HWTEST_F() local
1087 AuthType authType = AuthType::PIN; HWTEST_F() local
1115 AuthType authType = AuthType::PIN; HWTEST_F() local
1131 AuthType authType = AuthType::PIN; HWTEST_F() local
1163 AuthType authType = AuthType::PIN; HWTEST_F() local
1198 AuthType authType = AuthType::PIN; HWTEST_F() local
1232 AuthType authType = AuthType::PIN; HWTEST_F() local
1261 AuthType authType = AuthType::PIN; HWTEST_F() local
[all...]
/drivers/peripheral/user_auth/test/unittest/idm_test/
H A Duser_idm_funcs_test.cpp33 uint32_t authType; member
82 info.authType = PIN_AUTH; in HWTEST_F()
87 param.authType = PIN_AUTH; in HWTEST_F()
110 param.authType = FACE_AUTH; in HWTEST_F()
123 param.authType = FACE_AUTH; in HWTEST_F()
127 param.authType = PIN_AUTH; in HWTEST_F()
144 param.authType = PIN_AUTH; in HWTEST_F()
153 credInfo.authType = PIN_AUTH; in HWTEST_F()
176 session.authType = FACE_AUTH; in HWTEST_F()
215 token.tokenDataPlain.authType in HWTEST_F()
[all...]
H A Denroll_specification_check_test.cpp30 uint32_t authType; member
74 token.tokenDataPlain.authType = FACE_AUTH; in HWTEST_F()
82 token.tokenDataPlain.authType = PIN_AUTH; in HWTEST_F()
101 constexpr uint32_t authType = 1; in HWTEST_F() local
110 token.tokenDataPlain.authType = authType; in HWTEST_F()
155 constexpr uint32_t authType = 1; in HWTEST_F() local
156 EXPECT_EQ(CheckSpecification(userId, authType), RESULT_UNKNOWN); in HWTEST_F()
/drivers/peripheral/user_auth/test/unittest/database/
H A Didm_database_test.cpp36 extern ResultCode UpdateEnrolledId(LinkedList *enrolledList, uint32_t authType);
42 extern CredentialInfoHal *QueryCredentialByAuthType(uint32_t authType, LinkedList *credentialList);
114 constexpr uint32_t authType = 1; in HWTEST_F() local
115 EXPECT_EQ(GetEnrolledInfoAuthType(userId, authType, nullptr), RESULT_BAD_PARAM); in HWTEST_F()
117 EXPECT_EQ(GetEnrolledInfoAuthType(userId, authType, &info), RESULT_NOT_FOUND); in HWTEST_F()
126 constexpr uint32_t authType = 1; in HWTEST_F() local
131 EXPECT_EQ(GetEnrolledInfoAuthType(userId, authType, &info), RESULT_NOT_FOUND); in HWTEST_F()
146 enrolledInfo.authType = authType2; in HWTEST_F()
281 info1.authType = authType1; in HWTEST_F()
284 info2.authType in HWTEST_F()
334 constexpr uint32_t authType = 1; HWTEST_F() local
362 constexpr uint32_t authType = 1; HWTEST_F() local
421 constexpr uint32_t authType = 2; HWTEST_F() local
678 constexpr uint32_t authType = 2; HWTEST_F() local
719 constexpr uint32_t authType = 1; HWTEST_F() local
737 constexpr uint32_t authType = 1; HWTEST_F() local
831 uint32_t authType = 1; HWTEST_F() local
[all...]
/drivers/peripheral/user_auth/hdi_service/database/inc/
H A Didm_database.h48 uint32_t authType; member
56 ResultCode GetEnrolledInfoAuthType(int32_t userId, uint32_t authType, EnrolledInfoHal *enrolledInfo);
70 void SetCredentialConditionAuthType(CredentialCondition *condition, uint32_t authType);
77 ResultCode GetEnrolledState(int32_t userId, uint32_t authType, EnrolledStateHal *enrolledStateHal);
80 bool GetEnableStatus(int32_t userId, uint32_t authType);
H A Didm_common.h35 uint32_t authType; member
43 uint32_t authType; member
94 uint32_t authType; member
/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp119 out->authType = static_cast<AuthType>(in->authType); in CopyScheduleInfo()
184 if (SetAttributeUint32(attribute, ATTR_TYPE, paramHal.authType) != RESULT_SUCCESS) { in SetAttributeToCollectorExecMsg()
185 IAM_LOGE("SetAttributeUint32 authType failed"); in SetAttributeToCollectorExecMsg()
225 int32_t ret = QueryCredentialFunc(userId, info.authType, &credList); in GetCapabilityLevel()
434 out->authType = static_cast<AuthType>(in->authType); in CopyAuthScheduleInfo()
466 paramHal.authType = static_cast<int32_t>(param.authType); in CopyAuthParamToHal()
680 if (authResult.authType ! in UpdateAuthenticationResultInner()
711 BeginIdentification(uint64_t contextId, int32_t authType, const std::vector<uint8_t> &challenge, uint32_t executorSensorHint, HdiScheduleInfo &scheduleInfo) BeginIdentification() argument
791 GetAvailableStatus(int32_t userId, int32_t authType, uint32_t authTrustLevel, int32_t &checkResult) GetAvailableStatus() argument
1066 GetCredential(int32_t userId, int32_t authType, std::vector<CredentialInfo> &infos) GetCredential() argument
1234 ObtainReconciliationData(uint32_t authType, uint32_t sensorHint, std::vector<uint64_t> &templateIds) ObtainReconciliationData() argument
1339 GetEnrolledState(int32_t userId, int32_t authType, HdiEnrolledState &enrolledState) GetEnrolledState() argument
[all...]
/drivers/peripheral/user_auth/hdi_service/idm/inc/
H A Didm_session.h33 ResultCode AssociateCoauthSchedule(uint64_t scheduleId, uint32_t authType, bool isUpdate);
41 ResultCode GetEnrollScheduleInfo(uint64_t *scheduleId, uint32_t *authType);
H A Duser_idm_funcs.h30 uint32_t authType; member
54 ResultCode QueryCredentialFunc(int32_t userId, uint32_t authType, LinkedList **creds);
/drivers/peripheral/user_auth/test/fuzztest/user_auth/userauthhdi_fuzzer/
H A Duser_auth_hdi_fuzzer.cpp54 executorRegisterInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzExecutorRegisterInfo()
79 scheduleInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzScheduleInfo()
111 authParam.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzAuthParam()
171 info.authType = parcel.ReadInt32(); in FillFuzzReuseUnlockInfo()
186 enrollParam.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzEnrollParam()
208 credentialInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzCredentialInfo()
227 enrolledInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillFuzzEnrolledInfo()
340 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); in FuzzGetCredential() local
343 g_service.GetCredential(userId, authType, infos); in FuzzGetCredential()
421 AuthType authType in FuzzBeginIdentification() local
455 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); FuzzGetAvailableStatus() local
479 AuthType authType = static_cast<AuthType>(parcel.ReadInt32()); FuzzGetEnrolledState() local
[all...]

Completed in 16 milliseconds

123