Home
last modified time | relevance | path

Searched refs:enrolledInfo (Results 1 – 18 of 18) sorted by relevance

/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/useridm/src/
Dhks_useridm_api_wrap.cpp91 if (info.enrolledInfo.size() > g_maxEnrolledLen || info.enrolledInfo.size() == 0) { in OnSecUserInfo()
92 … HKS_LOG_E("invalid num of enrolledInfo %" LOG_PUBLIC "u", (uint32_t)info.enrolledInfo.size()); in OnSecUserInfo()
102 (*outSecInfo)->enrolledInfo = static_cast<struct EnrolledInfoWrap *>( in OnSecUserInfo()
103 HksMalloc(sizeof(struct EnrolledInfoWrap) * info.enrolledInfo.size())); in OnSecUserInfo()
104 if ((*outSecInfo)->enrolledInfo == NULL) { in OnSecUserInfo()
111 (**outSecInfo).enrolledInfoLen = info.enrolledInfo.size(); in OnSecUserInfo()
114 ret = ConvertToHksAuthType(info.enrolledInfo[i].authType, &authType); in OnSecUserInfo()
117 (**outSecInfo).enrolledInfo[i].authType = authType; in OnSecUserInfo()
119 (**outSecInfo).enrolledInfo[i].enrolledId = info.enrolledInfo[i].enrolledId; in OnSecUserInfo()
124 HKS_FREE((*outSecInfo)->enrolledInfo); in OnSecUserInfo()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/systemapi_wrap/useridm_test/user_iam_api_mock/
Duser_idm_client.cpp81 g_userInfo.enrolledInfo.push_back(pinInfo); in ConstructSecUserInfo()
82 g_userInfo.enrolledInfo.push_back(faceInfo); in ConstructSecUserInfo()
83 g_userInfo.enrolledInfo.push_back(fingetPrintInfo); in ConstructSecUserInfo()
85 g_userInfo.enrolledInfo.clear(); in ConstructSecUserInfo()
Duser_iam_define.h43 std::vector<EnrolledInfo> enrolledInfo {};
/base/useriam/user_auth_framework/test/unittest/inner_api/src/
Duser_idm_callback_service_test.cpp142 EXPECT_EQ(info.enrolledInfo.size(), 2); in __anon5e154aee0402()
143 EXPECT_EQ(info.enrolledInfo[0].authType, FACE); in __anon5e154aee0402()
144 EXPECT_EQ(info.enrolledInfo[0].enrolledId, 10); in __anon5e154aee0402()
145 EXPECT_EQ(info.enrolledInfo[1].authType, FINGERPRINT); in __anon5e154aee0402()
146 EXPECT_EQ(info.enrolledInfo[1].enrolledId, 20); in __anon5e154aee0402()
155 secUserInfo.enrolledInfo = {{FACE, 10}, {FINGERPRINT, 20}};
Duser_idm_callback_proxy_test.cpp133 EXPECT_EQ(secUserInfo.enrolledInfo.size(), 2); in __anondcd1665f0502()
134 EXPECT_EQ(secUserInfo.enrolledInfo[0].authType, FACE); in __anondcd1665f0502()
135 EXPECT_EQ(secUserInfo.enrolledInfo[0].enrolledId, 10); in __anondcd1665f0502()
136 EXPECT_EQ(secUserInfo.enrolledInfo[1].authType, FINGERPRINT); in __anondcd1665f0502()
137 EXPECT_EQ(secUserInfo.enrolledInfo[1].enrolledId, 20); in __anondcd1665f0502()
156 secUserInfo.enrolledInfo = {{FACE, 10}, {FINGERPRINT, 20}};
Duser_idm_callback_stub_test.cpp146 EXPECT_EQ(secUserInfo.enrolledInfo.size(), 0); in __anon582ac0fb0302()
170 EXPECT_EQ(secUserInfo.enrolledInfo.size(), 0); in __anon582ac0fb0402()
/base/security/huks/services/huks_standard/huks_service/main/systemapi_mock/src/
Dhks_useridm_api_mock.cpp85 (*outSecInfo)->enrolledInfo = static_cast<struct EnrolledInfoWrap *>( in HksUserIdmGetSecInfo()
87 if ((*outSecInfo)->enrolledInfo == NULL) { in HksUserIdmGetSecInfo()
94 (*outSecInfo)->enrolledInfo[i] = EnrolledInfoParams[g_ParamsId][i]; in HksUserIdmGetSecInfo()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/systemapi_wrap/useridm_test/src/
Dhks_useridm_api_wrap_test.cpp225 EXPECT_EQ(secInfo->enrolledInfo[0].authType, HKS_USER_AUTH_TYPE_PIN);
226 EXPECT_EQ(secInfo->enrolledInfo[0].enrolledId, g_enrolledIdForPin);
228 HKS_FREE(secInfo->enrolledInfo);
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_client_service.c498 static int32_t ConstructEnrolledInfoBlob(struct SecInfoWrap *secInfo, struct HksBlob *enrolledInfo, in ConstructEnrolledInfoBlob() argument
501 (void)memset_s(enrolledInfo->data, enrolledInfo->size, 0, enrolledInfo->size); in ConstructEnrolledInfoBlob()
504 if (memcpy_s(enrolledInfo->data, enrolledInfo->size, &secInfo->enrolledInfoLen, in ConstructEnrolledInfoBlob()
511 uint32_t authTypeInt = (uint32_t)secInfo->enrolledInfo[i].authType; in ConstructEnrolledInfoBlob()
512 if (memcpy_s(enrolledInfo->data + index, enrolledInfo->size - index, &authTypeInt, in ConstructEnrolledInfoBlob()
518 if (memcpy_s(enrolledInfo->data + index, enrolledInfo->size - index, in ConstructEnrolledInfoBlob()
519 &((secInfo->enrolledInfo[i]).enrolledId), sizeof(uint64_t)) != EOK) { in ConstructEnrolledInfoBlob()
523 index += sizeof(secInfo->enrolledInfo[i].enrolledId); in ConstructEnrolledInfoBlob()
527 outParam->blob = *enrolledInfo; in ConstructEnrolledInfoBlob()
536 static int32_t AddEnrolledInfoInParamSet(struct SecInfoWrap *secInfo, struct HksBlob *enrolledInfo, in AddEnrolledInfoInParamSet() argument
[all …]
/base/useriam/user_auth_framework/interfaces/inner_api/
Duser_idm_client_defines.h66 std::vector<EnrolledInfo> enrolledInfo {};
/base/useriam/user_auth_framework/frameworks/native/ipc/src/
Duser_idm_callback_stub.cpp194 secUserInfo.enrolledInfo.resize(enrolledInfoLen); in ReadSecureUserInfo()
206 secUserInfo.enrolledInfo[i] = {static_cast<AuthType>(authType), enrolledId}; in ReadSecureUserInfo()
219 secUserInfo.enrolledInfo.clear(); in OnSecureUserInfoStub()
Duser_idm_callback_proxy.cpp175 uint32_t enrolledInfoLen = secUserInfo.enrolledInfo.size(); in WriteSecureUserInfo()
181 for (const auto &info : secUserInfo.enrolledInfo) { in WriteSecureUserInfo()
/base/useriam/user_auth_framework/services/core/src/
Duser_idm_database_impl.cpp54 auto enrolledInfo = Common::MakeShared<EnrolledInfoImpl>(userId, info); in GetSecUserInfo() local
55 if (enrolledInfo == nullptr) { in GetSecUserInfo()
59 infoRet.emplace_back(enrolledInfo); in GetSecUserInfo()
/base/useriam/user_auth_framework/services/ipc/src/
Duser_idm_service.cpp171 for (const auto &enrolledInfo : enrolledInfos) { in GetSecInfoInner() local
172 if (enrolledInfo == nullptr) { in GetSecInfoInner()
176 EnrolledInfo info = {enrolledInfo->GetAuthType(), enrolledInfo->GetEnrolledId()}; in GetSecInfoInner()
177 secUserInfo.enrolledInfo.push_back(info); in GetSecInfoInner()
195 secUserInfo.enrolledInfo.clear(); in GetSecInfo()
527 auto enrolledInfo = userInfo->GetEnrolledInfo(); in Dump() local
528 for (auto &info : enrolledInfo) { in Dump()
/base/useriam/user_auth_framework/frameworks/native/client/src/
Duser_idm_callback_service.cpp116 IAM_LOGI("start, enrolled info vector size:%{public}zu", secUserInfo.enrolledInfo.size()); in OnSecureUserInfo()
/base/account/os_account/services/accountmgr/src/account_iam/
Daccount_iam_callback.cpp428 …auto it = std::find_if(info.enrolledInfo.begin(), info.enrolledInfo.end(), [this](const auto& item… in OnSecUserInfo()
431 if (it != info.enrolledInfo.end()) { in OnSecUserInfo()
/base/useriam/user_auth_framework/test/fuzztest/clients/useridmclient_fuzzer/
Duser_idm_client_fuzzer.cpp227 secUserInfo.enrolledInfo = {info}; in FuzzCallbackServiceOnSecureUserInfo()
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhks_type.h864 struct EnrolledInfoWrap *enrolledInfo; member