/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/useridm/src/ |
D | hks_useridm_api_wrap.cpp | 91 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/ |
D | user_idm_client.cpp | 81 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()
|
D | user_iam_define.h | 43 std::vector<EnrolledInfo> enrolledInfo {};
|
/base/useriam/user_auth_framework/test/unittest/inner_api/src/ |
D | user_idm_callback_service_test.cpp | 142 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}};
|
D | user_idm_callback_proxy_test.cpp | 133 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}};
|
D | user_idm_callback_stub_test.cpp | 146 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/ |
D | hks_useridm_api_mock.cpp | 85 (*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/ |
D | hks_useridm_api_wrap_test.cpp | 225 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/ |
D | hks_client_service.c | 498 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/ |
D | user_idm_client_defines.h | 66 std::vector<EnrolledInfo> enrolledInfo {};
|
/base/useriam/user_auth_framework/frameworks/native/ipc/src/ |
D | user_idm_callback_stub.cpp | 194 secUserInfo.enrolledInfo.resize(enrolledInfoLen); in ReadSecureUserInfo() 206 secUserInfo.enrolledInfo[i] = {static_cast<AuthType>(authType), enrolledId}; in ReadSecureUserInfo() 219 secUserInfo.enrolledInfo.clear(); in OnSecureUserInfoStub()
|
D | user_idm_callback_proxy.cpp | 175 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/ |
D | user_idm_database_impl.cpp | 54 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/ |
D | user_idm_service.cpp | 171 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/ |
D | user_idm_callback_service.cpp | 116 IAM_LOGI("start, enrolled info vector size:%{public}zu", secUserInfo.enrolledInfo.size()); in OnSecureUserInfo()
|
/base/account/os_account/services/accountmgr/src/account_iam/ |
D | account_iam_callback.cpp | 428 …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/ |
D | user_idm_client_fuzzer.cpp | 227 secUserInfo.enrolledInfo = {info}; in FuzzCallbackServiceOnSecureUserInfo()
|
/base/security/huks/interfaces/inner_api/huks_standard/main/include/ |
D | hks_type.h | 864 struct EnrolledInfoWrap *enrolledInfo; member
|