/base/security/device_security_level/oem_property/ohos/lite/impl/ |
D | dslm_ohos_init.c | 27 int32_t InitOhosDslmCred(DslmCredInfo *credInfo) in InitOhosDslmCred() argument 37 ret = VerifyDslmCredential(credStr, credInfo, NULL); in InitOhosDslmCred() 42 credInfo->credType = CRED_TYPE_SMALL; in InitOhosDslmCred() 44 SECURITY_LOG_INFO("success, self security level is %{public}d", credInfo->credLevel); in InitOhosDslmCred()
|
D | dslm_ohos_init.h | 27 int32_t InitOhosDslmCred(DslmCredInfo *credInfo);
|
/base/security/device_security_level/oem_property/ohos/standard/impl/ |
D | dslm_ohos_init.c | 27 int32_t InitOhosDslmCred(DslmCredInfo *credInfo) in InitOhosDslmCred() argument 37 ret = VerifyDslmCredential(credStr, credInfo, NULL); in InitOhosDslmCred() 42 credInfo->credType = CRED_TYPE_STANDARD; in InitOhosDslmCred() 44 SECURITY_LOG_INFO("success, self security level is %{public}d", credInfo->credLevel); in InitOhosDslmCred()
|
D | dslm_ohos_init.h | 27 int32_t InitOhosDslmCred(DslmCredInfo *credInfo);
|
/base/security/device_security_level/oem_property/ohos/common/ |
D | dslm_ohos_verify.c | 209 …fySmallDslmCred(const DeviceIdentify *device, const DslmCredBuff *credBuff, DslmCredInfo *credInfo) in VerifySmallDslmCred() argument 216 int32_t ret = VerifyDslmCredential(credStr, credInfo, NULL); in VerifySmallDslmCred() 222 ret = CheckCredInfo(device, credInfo, CRED_MAX_LEVEL_TYPE_SMALL); in VerifySmallDslmCred() 232 DslmCredInfo *credInfo) in VerifyStandardDslmCred() argument 257 ret = VerifyDslmCredential(resultInfo.credStr, credInfo, NULL); in VerifyStandardDslmCred() 262 ret = CheckCredInfo(device, credInfo, CRED_MAX_LEVEL_TYPE_STANDARD); in VerifyStandardDslmCred() 271 SECURITY_LOG_INFO("success, cred level = %{public}d", credInfo->credLevel); in VerifyStandardDslmCred() 277 DslmCredInfo *credInfo) in VerifyOhosDslmCred() argument 279 if (device == NULL || credBuff == NULL || credInfo == NULL) { in VerifyOhosDslmCred() 284 credInfo->credType = credBuff->type; in VerifyOhosDslmCred() [all …]
|
D | dslm_ohos_verify.h | 29 DslmCredInfo *credInfo);
|
/base/account/os_account/services/accountmgr/test/unittest/account_iam/ |
D | account_iam_callback_test.cpp | 208 CredentialParameters credInfo = {}; variable 210 …auto idmAuthCallback = std::make_shared<IDMAuthCallback>(TEST_USER_ID, credInfo, 0, extraInfo, nul… 224 CredentialParameters credInfo = {}; variable 226 …auto idmAuthCallback = std::make_shared<IDMAuthCallback>(TEST_USER_ID, credInfo, 0, extraInfo, cal… 245 CredentialParameters credInfo = {}; variable 247 …auto idmAuthCallback = std::make_shared<IDMAuthCallback>(TEST_USER_ID, credInfo, 0, extraInfo, cal… 262 CredentialParameters credInfo = {}; variable 264 auto addCredCallback = std::make_shared<AddCredCallback>(TEST_USER_ID, credInfo, nullptr); 278 CredentialParameters credInfo = {}; variable 279 credInfo.authType = AuthType::PIN; [all …]
|
/base/security/device_security_level/services/dslm/ |
D | dslm_hievent.c | 52 event.secLevel = (int32_t)info->credInfo.credLevel; in ReportHiEventInfoSync() 55 …if (memcpy_s(event.targetModel, MODEL_MAX_LEN, info->credInfo.model, CRED_INFO_MODEL_LEN) != EOK) { in ReportHiEventInfoSync() 59 event.credType = info->credInfo.credType; in ReportHiEventInfoSync() 77 event.secLevel = (int32_t)info->credInfo.credLevel; in ReportHiEventAppInvoke() 80 …if (memcpy_s(event.targetModel, MODEL_MAX_LEN, info->credInfo.model, CRED_INFO_MODEL_LEN) != EOK) { in ReportHiEventAppInvoke()
|
D | dslm_credential.h | 31 DslmCredInfo *credInfo); 33 int32_t DefaultInitDslmCred(DslmCredInfo *credInfo);
|
D | dslm_credential.c | 57 DslmCredInfo *credInfo) in DefaultVerifyDslmCred() argument 62 return verify(device, challenge, credBuff, credInfo); in DefaultVerifyDslmCred() 68 int32_t DefaultInitDslmCred(DslmCredInfo *credInfo) in DefaultInitDslmCred() argument 73 return init(credInfo); in DefaultInitDslmCred()
|
D | dslm_core_process.c | 129 if (deviceInfo->credInfo.credLevel != 0) { in OnMsgSendResultNotifier() 222 if (info->credInfo.credLevel > 0) { in InitSelfDeviceSecureLevel() 229 int32_t ret = DefaultInitDslmCred(&info->credInfo); in InitSelfDeviceSecureLevel() 230 if (ret == SUCCESS && info->credInfo.credLevel > 0) { in InitSelfDeviceSecureLevel()
|
/base/security/device_security_level/services/dfx/ |
D | dslm_hidumper.c | 107 switch (info->credInfo.credType) { in GetCreadType() 186 dprintf(fd, "DEVICE_VERIFIED_LEVEL : %u" END_LINE, info->credInfo.credLevel); in DumpDeviceDetails() 191 dprintf(fd, "CRED_RELEASE_TYPE : %s" END_LINE, info->credInfo.releaseType); in DumpDeviceDetails() 192 dprintf(fd, "CRED_SIGN_TIME : %s" END_LINE, info->credInfo.signTime); in DumpDeviceDetails() 193 dprintf(fd, "CRED_MANUFACTURE : %s" END_LINE, info->credInfo.manufacture); in DumpDeviceDetails() 194 dprintf(fd, "CRED_BAND : %s" END_LINE, info->credInfo.brand); in DumpDeviceDetails() 195 dprintf(fd, "CRED_MODEL : %s" END_LINE, info->credInfo.model); in DumpDeviceDetails() 196 dprintf(fd, "CRED_SOFTWARE_VERSION : %s" END_LINE, info->credInfo.softwareVersion); in DumpDeviceDetails() 197 dprintf(fd, "CRED_SECURITY_LEVEL : %s" END_LINE, info->credInfo.securityLevel); in DumpDeviceDetails() 198 dprintf(fd, "CRED_VERSION : %s" END_LINE, info->credInfo.version); in DumpDeviceDetails()
|
/base/security/device_security_level/oem_property/common/ |
D | dslm_credential_utils.c | 86 static void CredentialCbToDslmCredInfo(CredentialCb *credCb, DslmCredInfo *credInfo, bool verified); 479 static void CredentialCbToDslmCredInfo(CredentialCb *credCb, DslmCredInfo *credInfo, bool verified) in CredentialCbToDslmCredInfo() argument 481 if (credCb == NULL || credInfo == NULL) { in CredentialCbToDslmCredInfo() 485 CredType credType = credInfo->credType; in CredentialCbToDslmCredInfo() 486 (void)memset_s(credInfo, sizeof(DslmCredInfo), 0, sizeof(DslmCredInfo)); in CredentialCbToDslmCredInfo() 487 credInfo->credType = credType; in CredentialCbToDslmCredInfo() 501 (void)GetDataFromJson(json, CRED_KEY_TYPE, credInfo->releaseType, CRED_INFO_TYPE_LEN); in CredentialCbToDslmCredInfo() 502 (void)GetDataFromJson(json, CRED_KEY_MANUFACTURE, credInfo->manufacture, CRED_INFO_MANU_LEN); in CredentialCbToDslmCredInfo() 503 (void)GetDataFromJson(json, CRED_KEY_BRAND, credInfo->brand, CRED_INFO_BRAND_LEN); in CredentialCbToDslmCredInfo() 504 (void)GetDataFromJson(json, CRED_KEY_MODEL_NAME, credInfo->model, CRED_INFO_MODEL_LEN); in CredentialCbToDslmCredInfo() [all …]
|
/base/account/os_account/services/accountmgr/src/account_iam/ |
D | inner_account_iam_manager.cpp | 72 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in AddCredential() argument 78 auto idmCallback = std::make_shared<AddCredCallback>(userId, credInfo, callback); in AddCredential() 79 UserIDMClient::GetInstance().AddCredential(userId, credInfo, idmCallback); in AddCredential() 83 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in UpdateCredential() argument 89 if (credInfo.token.empty()) { in UpdateCredential() 95 auto idmCallback = std::make_shared<UpdateCredCallback>(userId, credInfo, callback); in UpdateCredential() 96 UserIDMClient::GetInstance().UpdateCredential(userId, credInfo, idmCallback); in UpdateCredential() 434 AccountCredentialInfo credInfo; in RestoreUserKey() local 438 credInfo = it->second; in RestoreUserKey() 440 if (credentialId != 0 && credInfo.credentialId != credentialId) { in RestoreUserKey() [all …]
|
D | account_iam_service.cpp | 51 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in AddCredential() argument 58 InnerAccountIAMManager::GetInstance().AddCredential(userId, credInfo, callback); in AddCredential() 61 void AccountIAMService::UpdateCredential(int32_t userId, const CredentialParameters &credInfo, in UpdateCredential() argument 69 InnerAccountIAMManager::GetInstance().UpdateCredential(userId, credInfo, callback); in UpdateCredential()
|
/base/security/device_auth/services/session_manager/inc/session/v2/ |
D | dev_session_util.h | 33 int32_t GetRealPkInfoStr(int32_t osAccountId, const CJson *credInfo, char **returnPkInfoStr, bool *… 34 int32_t AddPkInfoWithPdid(const CJson *context, CJson *credInfo, const char *realPkInfoStr);
|
/base/account/os_account/interfaces/innerkits/account_iam/native/include/ |
D | account_iam_mgr_proxy.h | 34 …int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) override; 35 void UpdateCredential(int32_t userId, const CredentialParameters &credInfo, 55 void AddOrUpdateCredential(int32_t userId, const CredentialParameters &credInfo,
|
D | iaccount_iam.h | 34 … int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) = 0; 35 virtual void UpdateCredential(int32_t userId, const CredentialParameters &credInfo,
|
/base/account/os_account/test/fuzztest/iamaccount/addcredential_fuzzer/ |
D | addcredential_fuzzer.cpp | 47 CredentialParameters credInfo = { in AddCredentialFuzzTest() local 53 AccountIAMClient::GetInstance().AddCredential(userId, credInfo, callback); in AddCredentialFuzzTest()
|
/base/account/os_account/test/fuzztest/iamaccount/updatecredential_fuzzer/ |
D | updatecredential_fuzzer.cpp | 46 CredentialParameters credInfo = { in UpdateCredentialFuzzTest() local 52 AccountIAMClient::GetInstance().UpdateCredential(userId, credInfo, callback); in UpdateCredentialFuzzTest()
|
/base/security/device_security_level/common/include/ |
D | dslm_cred.h | 69 typedef int32_t InitDslmCredFunc(DslmCredInfo *credInfo); 73 DslmCredInfo *credInfo);
|
/base/account/os_account/frameworks/account_iam/src/ |
D | account_iam_mgr_proxy.cpp | 103 …int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback, bool isA… in AddOrUpdateCredential() argument 115 if (!data.WriteInt32(credInfo.authType)) { in AddOrUpdateCredential() 120 PinSubType pinType = credInfo.pinType.value_or(PinSubType::PIN_MAX); in AddOrUpdateCredential() 126 if (!data.WriteUInt8Vector(credInfo.token)) { in AddOrUpdateCredential() 149 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in AddCredential() argument 151 AddOrUpdateCredential(userId, credInfo, callback, true); in AddCredential() 155 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in UpdateCredential() argument 157 AddOrUpdateCredential(userId, credInfo, callback, false); in UpdateCredential()
|
/base/account/os_account/services/accountmgr/include/account_iam/ |
D | account_iam_service.h | 33 …int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) override; 35 …int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) override;
|
/base/account/os_account/frameworks/account_iam/test/unittest/src/ |
D | account_iam_mgr_proxy_test.cpp | 78 CredentialParameters credInfo; variable 84 accountIAMMgrProxy->AddOrUpdateCredential(TEST_USER_ID, credInfo, nullptr, true);
|
/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | resource_node_utils_test.cpp | 55 auto credInfo = Common::MakeShared<MockCredentialInfo>(); variable 56 EXPECT_NE(credInfo, nullptr); 57 EXPECT_CALL(*credInfo, GetExecutorIndex()).WillRepeatedly(Return(10)); 60 infos.push_back(credInfo);
|