Home
last modified time | relevance | path

Searched refs:scheduleId (Results 1 – 25 of 47) sorted by relevance

12

/drivers/peripheral/pin_auth/hdi_service/service/src/
Dexecutor_impl.cpp130 int32_t ExecutorImpl::Enroll(uint64_t scheduleId, const std::vector<uint8_t> &extraInfo, in Enroll() argument
145 int32_t result = scheduleMap_.AddScheduleInfo(scheduleId, ENROLL_PIN, callbackObj, 0, salt); in Enroll()
151 result = callbackObj->OnGetData(scheduleId, salt, 0); in Enroll()
155 if (scheduleMap_.DeleteScheduleId(scheduleId) != HDF_SUCCESS) { in Enroll()
164 int32_t ExecutorImpl::EnrollV1_1(uint64_t scheduleId, const std::vector<uint8_t> &extraInfo, in EnrollV1_1() argument
168 static_cast<void>(scheduleId); in EnrollV1_1()
175 int32_t ExecutorImpl::Authenticate(uint64_t scheduleId, uint64_t templateId, const std::vector<uint… in Authenticate() argument
196 result = scheduleMap_.AddScheduleInfo(scheduleId, AUTH_PIN, callbackObj, templateId, salt); in Authenticate()
214 result = callbackObj->OnGetData(scheduleId, salt, 0); in Authenticate()
218 if (scheduleMap_.DeleteScheduleId(scheduleId) != HDF_SUCCESS) { in Authenticate()
[all …]
/drivers/peripheral/user_auth/test/unittest/idm_test/
Duser_idm_funcs_test.cpp35 uint64_t scheduleId; member
46 extern int32_t CheckResultValid(uint64_t scheduleId, int32_t userId);
107 uint64_t scheduleId = 0; variable
108 EXPECT_EQ(CheckEnrollPermission(param, &scheduleId), RESULT_GENERAL_ERROR);
110 EXPECT_EQ(CheckEnrollPermission(param, &scheduleId), RESULT_VERIFY_TOKEN_FAIL);
121 uint64_t scheduleId = 0; variable
122 EXPECT_EQ(CheckUpdatePermission(param, &scheduleId), RESULT_BAD_PARAM);
124 EXPECT_EQ(CheckUpdatePermission(param, &scheduleId), RESULT_GENERAL_ERROR);
140 uint64_t scheduleId = 0; variable
141 EXPECT_EQ(CheckUpdatePermission(param, &scheduleId), RESULT_SUCCESS);
[all …]
Didm_session_test.cpp31 uint64_t scheduleId; member
114 uint64_t scheduleId = 0; variable
115 EXPECT_EQ(GetEnrollScheduleInfo(&scheduleId, nullptr), RESULT_BAD_PARAM);
121 uint64_t scheduleId = 0; 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/pin_auth/hdi_service/service/inc/
Dexecutor_impl.h41 …int32_t OnSetData(uint64_t scheduleId, uint64_t authSubType, const std::vector<uint8_t> &data) ove…
42 int32_t Enroll(uint64_t scheduleId, const std::vector<uint8_t> &extraInfo,
44 int32_t EnrollV1_1(uint64_t scheduleId, const std::vector<uint8_t> &extraInfo,
46 …int32_t Authenticate(uint64_t scheduleId, uint64_t templateId, const std::vector<uint8_t> &extraIn…
48 …int32_t AuthenticateV1_1(uint64_t scheduleId, uint64_t templateId, const std::vector<uint8_t> &ext…
51 int32_t Cancel(uint64_t scheduleId) override;
60 uint32_t AddScheduleInfo(const uint64_t scheduleId, const uint32_t commandId,
62 …uint32_t GetScheduleInfo(const uint64_t scheduleId, uint32_t &commandId, sptr<IExecutorCallback> &…
64 uint32_t DeleteScheduleId(const uint64_t scheduleId);
81 int32_t AuthPin(uint64_t scheduleId, uint64_t templateId,
/drivers/peripheral/pin_auth/test/uinttest/pin_auth/service/src/
Dexecutor_impl_test.cpp72 uint64_t scheduleId = 0; variable
73 result = impl->Enroll(scheduleId, extraInfo, nullptr);
76 result = impl->Authenticate(scheduleId, templateId, extraInfo, nullptr);
81 result = impl->OnSetData(scheduleId, authSubType, pinData);
87 result = impl->Cancel(scheduleId);
129 uint64_t scheduleId = 0; variable
130 result = impl->Enroll(scheduleId, extraInfo, nullptr);
133 result = impl->Authenticate(scheduleId, templateId, extraInfo, nullptr);
138 result = impl->OnSetData(scheduleId, authSubType, pinData);
144 result = impl->Cancel(scheduleId);
/drivers/peripheral/user_auth/hdi_service/idm/src/
Didm_session.c44 uint64_t scheduleId; member
173 ResultCode AssociateCoauthSchedule(uint64_t scheduleId, uint32_t authType, bool isUpdate) in AssociateCoauthSchedule() argument
178 g_session->scheduleId = scheduleId; in AssociateCoauthSchedule()
191 RemoveCoAuthSchedule(g_session->scheduleId); in BreakOffCoauthSchedule()
196 ResultCode GetEnrollScheduleInfo(uint64_t *scheduleId, uint32_t *authType) in GetEnrollScheduleInfo() argument
198 if (scheduleId == NULL || authType == NULL) { in GetEnrollScheduleInfo()
205 *scheduleId = g_session->scheduleId; in GetEnrollScheduleInfo()
Duser_idm_funcs.c81 …ResultCode GenerateCoAuthSchedule(PermissionCheckParam *param, bool isUpdate, uint64_t *scheduleId) in GenerateCoAuthSchedule() argument
93 ret = AssociateCoauthSchedule(enrollSchedule->scheduleId, param->authType, isUpdate); in GenerateCoAuthSchedule()
96 RemoveCoAuthSchedule(enrollSchedule->scheduleId); in GenerateCoAuthSchedule()
99 *scheduleId = enrollSchedule->scheduleId; in GenerateCoAuthSchedule()
106 ResultCode CheckEnrollPermission(PermissionCheckParam param, uint64_t *scheduleId) in CheckEnrollPermission() argument
108 if (scheduleId == NULL) { in CheckEnrollPermission()
130 return GenerateCoAuthSchedule(&param, false, scheduleId); in CheckEnrollPermission()
133 ResultCode CheckUpdatePermission(PermissionCheckParam param, uint64_t *scheduleId) in CheckUpdatePermission() argument
135 if (scheduleId == NULL || param.authType != PIN_AUTH) { in CheckUpdatePermission()
155 return GenerateCoAuthSchedule(&param, true, scheduleId); in CheckUpdatePermission()
[all …]
/drivers/peripheral/fingerprint_auth/hdi_service/src/
Dexecutor_impl.cpp76 …uint64_t scheduleId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbac… in Enroll() argument
79 static_cast<void>(scheduleId); in Enroll()
94 int32_t ExecutorImpl::Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, in Authenticate() argument
98 return AuthenticateV1_1(scheduleId, templateIdList, true, extraInfo, callbackObj); in Authenticate()
101 int32_t ExecutorImpl::AuthenticateV1_1(uint64_t scheduleId, const std::vector<uint64_t> &templateId… in AuthenticateV1_1() argument
105 static_cast<void>(scheduleId); in AuthenticateV1_1()
123 …uint64_t scheduleId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbac… in Identify() argument
126 static_cast<void>(scheduleId); in Identify()
149 int32_t ExecutorImpl::Cancel(uint64_t scheduleId) in Cancel() argument
152 static_cast<void>(scheduleId); in Cancel()
/drivers/peripheral/user_auth/hdi_service/coauth/src/
Dcoauth.c140 uint64_t scheduleId = *(uint64_t *)condition; in IsScheduleMatch() local
142 return (coAuthSchedule->scheduleId == scheduleId); in IsScheduleMatch()
145 ResultCode RemoveCoAuthSchedule(uint64_t scheduleId) in RemoveCoAuthSchedule() argument
151 return g_scheduleList->remove(g_scheduleList, (void *)&scheduleId, IsScheduleMatch, true); in RemoveCoAuthSchedule()
154 const CoAuthSchedule *GetCoAuthSchedule(uint64_t scheduleId) in GetCoAuthSchedule() argument
172 if (schedule->scheduleId != scheduleId) { in GetCoAuthSchedule()
183 IAM_STATIC bool IsScheduleIdDuplicate(uint64_t scheduleId) in IsScheduleIdDuplicate() argument
189 if (schedule != NULL && schedule->scheduleId == scheduleId) { in IsScheduleIdDuplicate()
198 IAM_STATIC ResultCode GenerateValidScheduleId(uint64_t *scheduleId) in GenerateValidScheduleId() argument
212 *scheduleId = tempRandom; in GenerateValidScheduleId()
[all …]
/drivers/peripheral/fingerprint_auth/hdi_service/include/
Dexecutor_impl.h39 int32_t Enroll(uint64_t scheduleId, const std::vector<uint8_t> &extraInfo,
42 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList,
45 …int32_t AuthenticateV1_1(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, bool en…
48 int32_t Identify(uint64_t scheduleId, const std::vector<uint8_t> &extraInfo,
53 int32_t Cancel(uint64_t scheduleId) override;
/drivers/peripheral/face_auth/hdi_service/src/
Dexecutor_impl.cpp77 …uint64_t scheduleId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbac… in Enroll() argument
80 static_cast<void>(scheduleId); in Enroll()
95 int32_t ExecutorImpl::Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, in Authenticate() argument
99 static_cast<void>(scheduleId); in Authenticate()
116 …uint64_t scheduleId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbac… in Identify() argument
119 static_cast<void>(scheduleId); in Identify()
142 int32_t ExecutorImpl::Cancel(uint64_t scheduleId) in Cancel() argument
145 static_cast<void>(scheduleId); in Cancel()
/drivers/peripheral/user_auth/test/unittest/co_auth/
Dco_auth_test.cpp27 extern bool IsScheduleIdDuplicate(uint64_t scheduleId);
28 extern ResultCode GenerateValidScheduleId(uint64_t *scheduleId);
117 uint64_t scheduleId = 32565; variable
118 EXPECT_EQ(RemoveCoAuthSchedule(scheduleId), RESULT_NEED_INIT);
124 uint64_t scheduleId = 32565; variable
125 EXPECT_EQ(GetCoAuthSchedule(scheduleId), nullptr);
128 schedule1.scheduleId = 32565;
131 schedule2.scheduleId = 3200;
134 EXPECT_NE(GetCoAuthSchedule(scheduleId), nullptr);
140 uint64_t scheduleId = 36163; variable
[all …]
/drivers/peripheral/pin_auth/test/fuzztest/pin_auth/pinauthhdi_fuzzer/
Dpin_auth_hdi_fuzzer.cpp52 …int32_t OnGetData(uint64_t scheduleId, const std::vector<uint8_t> &salt, uint64_t authSubType) ove… in OnGetData() argument
55 scheduleId, salt.size(), authSubType); in OnGetData()
156 uint64_t scheduleId = parcel.ReadUint64(); in FuzzOnSetData() local
160 g_executorImpl.OnSetData(scheduleId, authSubType, data); in FuzzOnSetData()
167 uint64_t scheduleId = parcel.ReadUint64(); in FuzzEnroll() local
172 g_executorImpl.Enroll(scheduleId, extraInfo, callbackObj); in FuzzEnroll()
179 uint64_t scheduleId = parcel.ReadUint64(); in FuzzAuthenticate() local
185 g_executorImpl.Authenticate(scheduleId, templateId, extraInfo, callbackObj); in FuzzAuthenticate()
200 uint64_t scheduleId = parcel.ReadUint64(); in FuzzCancel() local
201 g_executorImpl.Cancel(scheduleId); in FuzzCancel()
/drivers/peripheral/face_auth/hdi_service/include/
Dexecutor_impl.h40 int32_t Enroll(uint64_t scheduleId, const std::vector<uint8_t> &extraInfo,
43 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList,
46 int32_t Identify(uint64_t scheduleId, const std::vector<uint8_t> &extraInfo,
51 int32_t Cancel(uint64_t scheduleId) override;
/drivers/peripheral/user_auth/hdi_service/coauth/inc/
Dcoauth.h47 uint64_t scheduleId; member
62 ResultCode RemoveCoAuthSchedule(uint64_t scheduleId);
63 const CoAuthSchedule *GetCoAuthSchedule(uint64_t scheduleId);
/drivers/peripheral/fingerprint_auth/test/fuzztest/fingerprint_auth/fingerprintauthhdi_fuzzer/
Dfingerprint_auth_hdi_fuzzer.cpp186 uint64_t scheduleId = parcel.ReadUint64(); in FuzzEnroll() local
191 g_executorImpl.Enroll(scheduleId, extraInfo, callbackObj); in FuzzEnroll()
198 uint64_t scheduleId = parcel.ReadUint64(); in FuzzAuthenticate() local
205 g_executorImpl.Authenticate(scheduleId, templateIdList, extraInfo, callbackObj); in FuzzAuthenticate()
212 uint64_t scheduleId = parcel.ReadUint64(); in FuzzAuthenticateV1_1() local
220 …g_executorImpl.AuthenticateV1_1(scheduleId, templateIdList, endAfterFirstFail, extraInfo, callback… in FuzzAuthenticateV1_1()
227 uint64_t scheduleId = parcel.ReadUint64(); in FuzzIdentify() local
232 g_executorImpl.Identify(scheduleId, extraInfo, callbackObj); in FuzzIdentify()
248 uint64_t scheduleId = parcel.ReadUint64(); in FuzzCancel() local
249 g_executorImpl.Cancel(scheduleId); in FuzzCancel()
/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.h40 ResultCode CheckEnrollPermission(PermissionCheckParam param, uint64_t *scheduleId);
41 ResultCode CheckUpdatePermission(PermissionCheckParam param, uint64_t *scheduleId);
/drivers/peripheral/face_auth/test/fuzztest/face_auth/faceauthhdi_fuzzer/
Dface_auth_hdi_fuzzer.cpp186 uint64_t scheduleId = parcel.ReadUint64(); in FuzzEnroll() local
191 g_executorImpl.Enroll(scheduleId, extraInfo, callbackObj); in FuzzEnroll()
198 uint64_t scheduleId = parcel.ReadUint64(); in FuzzAuthenticate() local
205 g_executorImpl.Authenticate(scheduleId, templateIdList, extraInfo, callbackObj); in FuzzAuthenticate()
212 uint64_t scheduleId = parcel.ReadUint64(); in FuzzIdentify() local
217 g_executorImpl.Identify(scheduleId, extraInfo, callbackObj); in FuzzIdentify()
233 uint64_t scheduleId = parcel.ReadUint64(); in FuzzCancel() local
234 g_executorImpl.Cancel(scheduleId); in FuzzCancel()
/drivers/peripheral/user_auth/test/unittest/user_auth_test/
Dcontext_manager_test.cpp237 schedule.scheduleId = 10;
244 uint64_t scheduleId = 10; variable
245 EXPECT_EQ(ScheduleOnceFinish(nullptr, scheduleId), RESULT_BAD_PARAM);
248 EXPECT_EQ(ScheduleOnceFinish(&context, scheduleId), RESULT_BAD_PARAM);
289 info.scheduleId = 2135;
298 schedule.scheduleId = 2135;
305 info.scheduleId = 2135;
314 schedule.scheduleId = 2135;
329 info.scheduleId = 2135;
338 schedule.scheduleId = 2135;
[all …]
/drivers/peripheral/pin_auth/hdi_service/main/src/
Dpin_func.c42 … ret = GenerateRetTlv(RESULT_SUCCESS, pinEnrollParam->scheduleId, templateId, retTlv, rootSecret); in DoEnrollPin()
106 …ret = GenerateRetTlv(*compareRet, pinAuthParam->scheduleId, pinAuthParam->templateId, retTlv, root… in DoAuthPin()
221 static Buffer *GetDataTlvContent(uint32_t result, uint64_t scheduleId, uint64_t templateId, const B… in GetDataTlvContent() argument
237 …WriteTlv(AUTH_SCHEDULE_ID, sizeof(scheduleId), (const uint8_t *)&scheduleId, ret) != RESULT_SUCCES… in GetDataTlvContent()
254 ResultCode GenerateRetTlv(uint32_t result, uint64_t scheduleId, uint64_t templatedId, Buffer *retTl… in GenerateRetTlv() argument
261 Buffer *dataContent = GetDataTlvContent(result, scheduleId, templatedId, rootSecret); in GenerateRetTlv()
Dpin_auth.cpp83 int32_t PinAuth::EnrollPin(uint64_t scheduleId, uint64_t subType, std::vector<uint8_t> &salt, in EnrollPin() argument
93 pinEnrollParam.scheduleId = scheduleId; in EnrollPin()
143 int32_t PinAuth::AuthPin(uint64_t scheduleId, uint64_t templateId, const std::vector<uint8_t> &pinD… in AuthPin() argument
154 pinAuthParam.scheduleId = scheduleId; in AuthPin()
/drivers/peripheral/user_auth/test/unittest/service_test/src/
Dsignature_operation.cpp134 static Buffer *GetDataTlvContent(uint32_t result, uint64_t scheduleId, uint64_t subType, uint64_t t… in GetDataTlvContent() argument
150 …WriteTlv(AUTH_SCHEDULE_ID, sizeof(scheduleId), (const uint8_t *)&scheduleId, ret) != RESULT_SUCCES… in GetDataTlvContent()
174 IAM_LOGI("scheduleId %{public}s", GET_MASKED_STRING(para.scheduleId).c_str()); in GenerateRetTlv()
175 …Buffer *dataContent = GetDataTlvContent(para.result, para.scheduleId, para.subType, para.templateI… in GenerateRetTlv()
/drivers/interface/pin_auth/v1_0/
DIExecutor.idl88 * @param scheduleId Indicates the schedule ID of enrollment.
95 …OnSetData([in] unsigned long scheduleId, [in] unsigned long authSubType, [in] unsigned char[] data…
99 * @param scheduleId Indicates the schedule ID of enrollment.
106 …Enroll([in] unsigned long scheduleId, [in] unsigned char[] extraInfo, [in] IExecutorCallback callb…
110 * @param scheduleId Indicates the schedule ID of authentication.
118 …Authenticate([in] unsigned long scheduleId, [in] unsigned long templateId, [in] unsigned char[] ex…
131 * @param scheduleId Indicates the schedule ID of the operation to cancel.
136 Cancel([in] unsigned long scheduleId);
/drivers/interface/fingerprint_auth/v1_0/
DIExecutor.idl87 * @param scheduleId Indicates schedule id of enroll.
94 …Enroll([in] unsigned long scheduleId, [in] unsigned char[] extraInfo, [in] IExecutorCallback callb…
98 * @param scheduleId Indicates schedule id of authenticate.
108 …Authenticate([in] unsigned long scheduleId, [in] unsigned long[] templateIdList, [in] unsigned cha…
112 * @param scheduleId Indicates schedule id of identify.
119 …Identify([in] unsigned long scheduleId, [in] unsigned char[] extraInfo, [in] IExecutorCallback cal…
132 * @param scheduleId Indicates schedule id of operation to cancel.
137 Cancel([in] unsigned long scheduleId);

12