Home
last modified time | relevance | path

Searched refs:templateIdList (Results 1 - 23 of 23) sorted by relevance

/drivers/peripheral/pin_auth/test/unittest/pin_auth/service/src/
H A Dall_in_one_impl_test.cpp63 std::vector<uint64_t> templateIdList; in HWTEST_F() local
66 result = impl->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in HWTEST_F()
73 result = impl->Authenticate(scheduleId, templateIdList, extraInfo, nullptr); in HWTEST_F()
90 result = impl->GetProperty(templateIdList, propertyTypes, property); in HWTEST_F()
116 std::vector<uint64_t> templateIdList; in HWTEST_F() local
119 result = impl->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in HWTEST_F()
131 result = impl->Authenticate(scheduleId, templateIdList, extraInfo, nullptr); in HWTEST_F()
148 result = impl->GetProperty(templateIdList, propertyTypes, property); in HWTEST_F()
151 templateIdList.push_back(1); in HWTEST_F()
152 result = impl->GetProperty(templateIdList, propertyType in HWTEST_F()
[all...]
/drivers/peripheral/face_auth/test/fuzztest/face_auth/faceauthallinoneexecutor_fuzzer/
H A Dall_in_one_executor_fuzzer.cpp150 std::vector<uint64_t> templateIdList; in FuzzOnRegisterFinish() local
151 FillFuzzUint64Vector(parcel, templateIdList); in FuzzOnRegisterFinish()
156 g_executorImpl.OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in FuzzOnRegisterFinish()
176 std::vector<uint64_t> templateIdList; in FuzzAuthenticate() local
177 FillFuzzUint64Vector(parcel, templateIdList); in FuzzAuthenticate()
182 g_executorImpl.Authenticate(scheduleId, templateIdList, extraInfo, callbackObj); in FuzzAuthenticate()
201 std::vector<uint64_t> templateIdList; in FuzzDelete() local
202 FillFuzzUint64Vector(parcel, templateIdList); in FuzzDelete()
203 g_executorImpl.Delete(templateIdList); in FuzzDelete()
230 std::vector<uint64_t> templateIdList; in FuzzGetProperty() local
244 std::vector<uint64_t> templateIdList; FuzzSetCachedTemplates() local
[all...]
/drivers/peripheral/fingerprint_auth/test/fuzztest/fingerprint_auth/fingerprintauthallinoneexecutor_fuzzer/
H A Dall_in_one_executor_fuzzer.cpp150 std::vector<uint64_t> templateIdList; in FuzzOnRegisterFinish() local
151 FillFuzzUint64Vector(parcel, templateIdList); in FuzzOnRegisterFinish()
156 g_executorImpl.OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in FuzzOnRegisterFinish()
176 std::vector<uint64_t> templateIdList; in FuzzAuthenticate() local
177 FillFuzzUint64Vector(parcel, templateIdList); in FuzzAuthenticate()
183 g_executorImpl.Authenticate(scheduleId, templateIdList, endAfterFirstFail, extraInfo, callbackObj); in FuzzAuthenticate()
202 std::vector<uint64_t> templateIdList; in FuzzDelete() local
203 FillFuzzUint64Vector(parcel, templateIdList); in FuzzDelete()
204 g_executorImpl.Delete(templateIdList); in FuzzDelete()
231 std::vector<uint64_t> templateIdList; in FuzzGetProperty() local
245 std::vector<uint64_t> templateIdList; FuzzSetCachedTemplates() local
[all...]
/drivers/peripheral/face_auth/hdi_service/include/
H A Dall_in_one_executor_impl.h34 int32_t OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
40 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList,
46 int32_t Delete(const std::vector<uint64_t> &templateIdList) override;
53 int32_t GetProperty(const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes,
56 int32_t SetCachedTemplates(const std::vector<uint64_t> &templateIdList) override;
/drivers/peripheral/fingerprint_auth/hdi_service/include/
H A Dall_in_one_executor_impl.h34 int32_t OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
40 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, bool endAfterFirstFail,
46 int32_t Delete(const std::vector<uint64_t> &templateIdList) override;
53 int32_t GetProperty(const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes,
56 int32_t SetCachedTemplates(const std::vector<uint64_t> &templateIdList) override;
/drivers/peripheral/face_auth/hdi_service/src/
H A Dall_in_one_executor_impl.cpp60 int32_t AllInOneExecutorImpl::OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() argument
64 static_cast<void>(templateIdList); in OnRegisterFinish()
90 int32_t AllInOneExecutorImpl::Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, in Authenticate() argument
95 static_cast<void>(templateIdList); in Authenticate()
129 int32_t AllInOneExecutorImpl::Delete(const std::vector<uint64_t> &templateIdList) in Delete() argument
132 static_cast<void>(templateIdList); in Delete()
192 const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, Property &property) in GetProperty()
200 int32_t AllInOneExecutorImpl::SetCachedTemplates(const std::vector<uint64_t> &templateIdList) in SetCachedTemplates() argument
191 GetProperty( const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, Property &property) GetProperty() argument
/drivers/peripheral/fingerprint_auth/hdi_service/src/
H A Dall_in_one_executor_impl.cpp59 int32_t AllInOneExecutorImpl::OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() argument
63 static_cast<void>(templateIdList); in OnRegisterFinish()
89 int32_t AllInOneExecutorImpl::Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, in Authenticate() argument
94 static_cast<void>(templateIdList); in Authenticate()
129 int32_t AllInOneExecutorImpl::Delete(const std::vector<uint64_t> &templateIdList) in Delete() argument
132 static_cast<void>(templateIdList); in Delete()
192 const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, Property &property) in GetProperty()
200 int32_t AllInOneExecutorImpl::SetCachedTemplates(const std::vector<uint64_t> &templateIdList) in SetCachedTemplates() argument
191 GetProperty( const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, Property &property) GetProperty() argument
/drivers/peripheral/pin_auth/test/fuzztest/pin_auth/pinauthhdi_fuzzer/
H A Dpin_auth_hdi_fuzzer.cpp127 std::vector<uint64_t> templateIdList; in FuzzOnRegisterFinish() local
128 FillFuzzUint64Vector(parcel, templateIdList); in FuzzOnRegisterFinish()
133 g_executorImpl.OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in FuzzOnRegisterFinish()
165 std::vector<uint64_t> templateIdList; in FuzzAuthenticate() local
166 FillFuzzUint64Vector(parcel, templateIdList); in FuzzAuthenticate()
171 g_executorImpl.Authenticate(scheduleId, templateIdList, extraInfo, callbackObj); in FuzzAuthenticate()
194 std::vector<uint64_t> templateIdList; in FuzzGetProperty() local
195 FillFuzzUint64Vector(parcel, templateIdList); in FuzzGetProperty()
200 g_executorImpl.GetProperty(templateIdList, propertyTypes, property); in FuzzGetProperty()
/drivers/peripheral/pin_auth/hdi_service/service/src/
H A Dverifier_impl.cpp63 int32_t VerifierImpl::OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() argument
67 static_cast<void>(templateIdList); in OnRegisterFinish()
169 int32_t VerifierImpl::Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, in Authenticate() argument
177 if ((pinHdi_ == nullptr) || (templateIdList.size() != 1)) { in Authenticate()
178 IAM_LOGE("pinHdi_ is nullptr or templateIdList size not 1"); in Authenticate()
183 [this, id = scheduleId, templateId = templateIdList, extra = extraInfo, callback = callbackObj]() { in Authenticate()
H A Dall_in_one_impl.cpp73 int32_t AllInOneImpl::OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() argument
82 int32_t result = pinHdi_->SetAllInOneFwkParam(templateIdList, frameworkPublicKey); in OnRegisterFinish()
193 int32_t AllInOneImpl::Authenticate(uint64_t scheduleId, const std::vector<uint64_t>& templateIdList, in Authenticate() argument
201 if (pinHdi_ == nullptr || templateIdList.size() != 1) { in Authenticate()
202 IAM_LOGE("pinHdi_ is nullptr or templateIdList size not 1"); in Authenticate()
207 int32_t result = pinHdi_->AllInOneAuth(scheduleId, templateIdList[0], extraInfo, pinAlgoParam); in Authenticate()
216 scheduleId, templateIdList[0], pinAlgoParam.algoParameter, callbackObj); in Authenticate()
325 const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, HdiProperty &property) in GetProperty()
333 if (templateIdList.size() != 1) { in GetProperty()
334 IAM_LOGE("templateIdList siz in GetProperty()
324 GetProperty( const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, HdiProperty &property) GetProperty() argument
[all...]
H A Dcollector_impl.cpp62 int32_t CollectorImpl::OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() argument
66 static_cast<void>(templateIdList); in OnRegisterFinish()
/drivers/peripheral/pin_auth/test/unittest/pin_auth/main/src/
H A Dall_in_one_func_test.cpp162 std::vector<uint64_t> templateIdList = {1, 0}; in HWTEST_F() local
169 result = DoSetAllInOneFwkParam(templateIdList.data(), templateIdListLen, nullptr, 0); in HWTEST_F()
172 result = DoSetAllInOneFwkParam(templateIdList.data(), templateIdListLen, fwkPubKey.data(), 0); in HWTEST_F()
175 result = DoSetAllInOneFwkParam(templateIdList.data(), templateIdListLen, fwkPubKey.data(), fwkPubKeyLen); in HWTEST_F()
H A Dpin_auth_test.cpp96 std::vector<uint64_t> templateIdList; in HWTEST_F() local
98 result = pinAuth->SetAllInOneFwkParam(templateIdList, fwkPubKey); in HWTEST_F()
189 std::vector<uint64_t> templateIdList = {}; in HWTEST_F() local
192 int32_t result = pinAuth->SetAllInOneFwkParam(templateIdList, fwkPubKey); in HWTEST_F()
196 result = pinAuth->SetAllInOneFwkParam(templateIdList, fwkPubKey); in HWTEST_F()
256 std::vector<uint64_t> templateIdList; in HWTEST_F() local
258 int32_t result = pinAuth->SetAllInOneFwkParam(templateIdList, frameworkPublicKey); in HWTEST_F()
/drivers/peripheral/pin_auth/hdi_service/service/inc/
H A Dall_in_one_impl.h38 int32_t OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
46 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t>& templateIdList,
49 int32_t GetProperty(const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes,
H A Dverifier_impl.h37 int32_t OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
41 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList,
H A Dcollector_impl.h38 int32_t OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
/drivers/peripheral/pin_auth/hdi_service/main/src/
H A Dall_in_one_func.c194 const uint64_t *templateIdList, uint32_t templateIdListLen, const uint8_t *fwkPubKey, uint32_t fwkPubKeySize) in DoSetAllInOneFwkParam()
196 if (((templateIdListLen != 0) && (templateIdList == NULL)) || in DoSetAllInOneFwkParam()
198 LOG_ERROR("templateIdList should be not null, when templateIdListLen is not zero"); in DoSetAllInOneFwkParam()
207 ResultCode ret = VerifyTemplateDataPin(templateIdList, templateIdListLen); in DoSetAllInOneFwkParam()
193 DoSetAllInOneFwkParam( const uint64_t *templateIdList, uint32_t templateIdListLen, const uint8_t *fwkPubKey, uint32_t fwkPubKeySize) DoSetAllInOneFwkParam() argument
H A Dpin_auth.cpp322 const std::vector<uint64_t> &templateIdList, const std::vector<uint8_t> &frameworkPublicKey) in SetAllInOneFwkParam()
326 uint32_t templateIdListLen = templateIdList.size(); in SetAllInOneFwkParam()
332 &templateIdList[0], templateIdListLen, frameworkPublicKey.data(), frameworkPublicKey.size()); in SetAllInOneFwkParam()
321 SetAllInOneFwkParam( const std::vector<uint64_t> &templateIdList, const std::vector<uint8_t> &frameworkPublicKey) SetAllInOneFwkParam() argument
/drivers/peripheral/pin_auth/hdi_service/main/inc/
H A Dall_in_one_func.h48 const uint64_t *templateIdList, uint32_t templateIdListLen, const uint8_t *fwkPubKey, uint32_t fwkPubKeySize);
H A Dpin_auth.h54 const std::vector<uint64_t> &templateIdList, const std::vector<uint8_t> &frameworkPublicKey);
/drivers/peripheral/pin_auth/hdi_service/database/inc/
H A Dpin_db.h54 ResultCode VerifyTemplateDataPin(const uint64_t *templateIdList, uint32_t templateIdListLen);
/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db.c1038 static bool FindTemplateIdFromList(uint64_t storeTemplateId, const uint64_t *templateIdList, uint32_t templateIdListLen) in FindTemplateIdFromList() argument
1041 if (templateIdList[i] == storeTemplateId) { in FindTemplateIdFromList()
1049 ResultCode VerifyTemplateDataPin(const uint64_t *templateIdList, uint32_t templateIdListLen) in VerifyTemplateDataPin() argument
1051 if (templateIdListLen != 0 && templateIdList == NULL) { in VerifyTemplateDataPin()
1052 LOG_ERROR("templateIdList should be not null, when templateIdListLen is not zero"); in VerifyTemplateDataPin()
1061 if (FindTemplateIdFromList(g_pinDbOp->pinIndex[i].pinInfo.templateId, templateIdList, templateIdListLen)) { in VerifyTemplateDataPin()
/drivers/peripheral/pin_auth/test/unittest/pin_auth/database/src/
H A Dpin_db_test.cpp334 std::vector<uint64_t> templateIdList = {1, 0}; in HWTEST_F() local
336 uint32_t result = VerifyTemplateDataPin(&templateIdList[0], templateIdListLen); in HWTEST_F()

Completed in 12 milliseconds