/base/security/device_security_level/oem_property/ohos/lite/impl/ |
H A D | dslm_ohos_init.c | 27 int32_t InitOhosDslmCred(DslmCredInfo *credInfo) in InitOhosDslmCred() argument 37 ret = VerifyDslmCredential(credStr, credInfo, NULL); in InitOhosDslmCred() 43 credInfo->credType = CRED_TYPE_MINI; in InitOhosDslmCred() 45 credInfo->credType = CRED_TYPE_SMALL; in InitOhosDslmCred() 48 SECURITY_LOG_INFO("success, self security level is %{public}d", credInfo->credLevel); in InitOhosDslmCred()
|
H A D | dslm_ohos_init.h | 27 int32_t InitOhosDslmCred(DslmCredInfo *credInfo);
|
/base/security/device_security_level/oem_property/ohos/standard/impl/ |
H A 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()
|
H A D | dslm_ohos_init.h | 27 int32_t InitOhosDslmCred(DslmCredInfo *credInfo);
|
/base/security/device_security_level/oem_property/include/ |
H A D | dslm_credential.h | 30 DslmCredInfo *credInfo); 32 int32_t DefaultInitDslmCred(DslmCredInfo *credInfo); 37 DslmCredInfo *credInfo); 41 int32_t InitOhosDslmCred(DslmCredInfo *credInfo);
|
H A D | dslm_cred.h | 69 typedef int32_t InitDslmCredFunc(DslmCredInfo *credInfo); 73 DslmCredInfo *credInfo);
|
/base/security/device_security_level/oem_property/ohos/common/ |
H A D | dslm_ohos_verify.c | 209 static int32_t VerifyLiteDslmCred(const DeviceIdentify *device, const DslmCredBuff *credBuff, DslmCredInfo *credInfo) in VerifyLiteDslmCred() argument 220 int32_t ret = VerifyDslmCredential(credStr, credInfo, NULL); in VerifyLiteDslmCred() 226 ret = CheckCredInfo(device, credInfo, CRED_MAX_LEVEL_TYPE_SMALL); in VerifyLiteDslmCred() 236 DslmCredInfo *credInfo) in VerifyStandardDslmCred() 261 ret = VerifyDslmCredential(resultInfo.credStr, credInfo, NULL); in VerifyStandardDslmCred() 266 ret = CheckCredInfo(device, credInfo, CRED_MAX_LEVEL_TYPE_STANDARD); in VerifyStandardDslmCred() 275 SECURITY_LOG_INFO("success, cred level = %{public}d", credInfo->credLevel); in VerifyStandardDslmCred() 281 DslmCredInfo *credInfo) in VerifyOhosDslmCred() 283 if (device == NULL || credBuff == NULL || credInfo == NULL) { in VerifyOhosDslmCred() 288 credInfo in VerifyOhosDslmCred() 235 VerifyStandardDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff, DslmCredInfo *credInfo) VerifyStandardDslmCred() argument 280 VerifyOhosDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff, DslmCredInfo *credInfo) VerifyOhosDslmCred() argument [all...] |
H A D | dslm_ohos_verify.h | 29 DslmCredInfo *credInfo);
|
/base/security/device_security_level/services/dslm/ |
H A 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()
|
H A D | dslm_core_process.c | 130 if (deviceInfo->credInfo.credLevel != 0) { in OnMsgSendResultNotifier() 223 info->credInfo.credLevel = (uint32_t)level; in InitSelfDeviceSecureLevel() 225 if (info->credInfo.credLevel > 0) { in InitSelfDeviceSecureLevel() 232 int32_t ret = DefaultInitDslmCred(&info->credInfo); in InitSelfDeviceSecureLevel() 233 if (ret == SUCCESS && info->credInfo.credLevel > 0) { in InitSelfDeviceSecureLevel()
|
/base/security/device_security_level/oem_property/common/ |
H A 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() 502 (void)GetDataFromJson(json, CRED_KEY_TYPE, credInfo->releaseType, CRED_INFO_TYPE_LEN); in CredentialCbToDslmCredInfo() 503 (void)GetDataFromJson(json, CRED_KEY_MANUFACTURE, credInfo->manufacture, CRED_INFO_MANU_LEN); in CredentialCbToDslmCredInfo() 504 (void)GetDataFromJson(json, CRED_KEY_BRAND, credInfo->brand, CRED_INFO_BRAND_LEN); in CredentialCbToDslmCredInfo() 505 (void)GetDataFromJson(json, CRED_KEY_MODEL_NAME, credInfo in CredentialCbToDslmCredInfo() [all...] |
H A D | dslm_credential.c | 57 DslmCredInfo *credInfo) in DefaultVerifyDslmCred() 62 return verify(device, challenge, credBuff, credInfo); in DefaultVerifyDslmCred() 68 int32_t DefaultInitDslmCred(DslmCredInfo *credInfo) in DefaultInitDslmCred() argument 73 return init(credInfo); in DefaultInitDslmCred() 56 DefaultVerifyDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff, DslmCredInfo *credInfo) DefaultVerifyDslmCred() argument
|
/base/security/device_security_level/services/dfx/ |
H A D | dslm_hidumper.c | 136 switch (info->credInfo.credType) { in GetCreadType() 215 dprintf(fd, "DEVICE_VERIFIED_LEVEL : %u" END_LINE, info->credInfo.credLevel); in DumpDeviceDetails() 220 dprintf(fd, "CRED_RELEASE_TYPE : %s" END_LINE, info->credInfo.releaseType); in DumpDeviceDetails() 221 dprintf(fd, "CRED_SIGN_TIME : %s" END_LINE, info->credInfo.signTime); in DumpDeviceDetails() 222 dprintf(fd, "CRED_MANUFACTURE : %s" END_LINE, info->credInfo.manufacture); in DumpDeviceDetails() 223 dprintf(fd, "CRED_BAND : %s" END_LINE, info->credInfo.brand); in DumpDeviceDetails() 224 dprintf(fd, "CRED_MODEL : %s" END_LINE, info->credInfo.model); in DumpDeviceDetails() 225 dprintf(fd, "CRED_SOFTWARE_VERSION : %s" END_LINE, info->credInfo.softwareVersion); in DumpDeviceDetails() 226 dprintf(fd, "CRED_SECURITY_LEVEL : %s" END_LINE, info->credInfo.securityLevel); in DumpDeviceDetails() 227 dprintf(fd, "CRED_VERSION : %s" END_LINE, info->credInfo in DumpDeviceDetails() [all...] |
/base/security/device_auth/services/session_manager/inc/session/v2/ |
H A D | dev_session_util.h | 33 int32_t GetRealPkInfoStr(int32_t osAccountId, const CJson *credInfo, char **returnPkInfoStr, bool *isPseudonym); 34 int32_t AddPkInfoWithPdid(const CJson *context, CJson *credInfo, const char *realPkInfoStr);
|
/base/account/os_account/test/fuzztest/iamaccount/updatecredential_fuzzer/ |
H A D | updatecredential_fuzzer.cpp | 48 CredentialParameters credInfo = { in UpdateCredentialFuzzTest() local 54 AccountIAMClient::GetInstance().UpdateCredential(userId, credInfo, callback); in UpdateCredentialFuzzTest()
|
/base/account/os_account/test/fuzztest/iamaccount/addcredential_fuzzer/ |
H A D | addcredential_fuzzer.cpp | 49 CredentialParameters credInfo = { in AddCredentialFuzzTest() local 55 AccountIAMClient::GetInstance().AddCredential(userId, credInfo, callback); in AddCredentialFuzzTest()
|
/base/account/os_account/interfaces/innerkits/account_iam/native/include/ |
H A 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, 57 void AddOrUpdateCredential(int32_t userId, const CredentialParameters &credInfo,
|
H A 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/services/accountmgr/test/unittest/account_iam/ |
H A D | account_iam_callback_test.cpp | 237 CredentialParameters credInfo = {};
in HWTEST_F() local 239 auto addCredCallback = std::make_shared<AddCredCallback>(TEST_USER_ID, credInfo, nullptr);
in HWTEST_F() 253 CredentialParameters credInfo = {};
in HWTEST_F() local 254 credInfo.authType = AuthType::PIN;
in HWTEST_F() 256 auto addCredCallback = std::make_shared<AddCredCallback>(TEST_USER_ID, credInfo, callback);
in HWTEST_F() 275 CredentialParameters credInfo = {};
in HWTEST_F() local 276 credInfo.authType = AuthType::FACE;
in HWTEST_F() 278 auto addCredCallback = std::make_shared<AddCredCallback>(TEST_USER_ID, credInfo, callback);
in HWTEST_F() 296 CredentialParameters credInfo = {};
in HWTEST_F() local 298 auto addCredCallback = std::make_shared<AddCredCallback>(TEST_USER_ID, credInfo, nullpt in HWTEST_F() 312 CredentialParameters credInfo = {}; HWTEST_F() local [all...] |
/base/account/os_account/services/accountmgr/include/account_iam/ |
H A 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/services/accountmgr/src/account_iam/ |
H A D | account_iam_service.cpp | 98 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in AddCredential() 111 InnerAccountIAMManager::GetInstance().AddCredential(userId, credInfo, callback); in AddCredential() 114 void AccountIAMService::UpdateCredential(int32_t userId, const CredentialParameters &credInfo, in UpdateCredential() argument 123 InnerAccountIAMManager::GetInstance().UpdateCredential(userId, credInfo, callback); in UpdateCredential() 97 AddCredential( int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) AddCredential() argument
|
H A D | inner_account_iam_manager.cpp | 106 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in AddCredential() 120 if (credInfo.authType == AuthType::PIN) { in AddCredential() 130 auto idmCallbackWrapper = std::make_shared<AddCredCallback>(userId, credInfo, callback); in AddCredential() 132 UserIDMClient::GetInstance().AddCredential(userId, credInfo, idmCallbackWrapper); in AddCredential() 140 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in UpdateCredential() 147 if (credInfo.token.empty()) { in UpdateCredential() 161 auto idmCallbackWrapper = std::make_shared<UpdateCredCallback>(userId, credInfo, callback); in UpdateCredential() 163 UserIDMClient::GetInstance().UpdateCredential(userId, credInfo, idmCallbackWrapper); in UpdateCredential() 239 CredentialParameters credInfo; in DelUser() local 240 credInfo in DelUser() 105 AddCredential( int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) AddCredential() argument 139 UpdateCredential( int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) UpdateCredential() argument [all...] |
/base/account/os_account/frameworks/account_iam/src/ |
H A D | account_iam_mgr_proxy.cpp | 104 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback, bool isAdd) in AddOrUpdateCredential() 116 if (!data.WriteInt32(credInfo.authType)) { in AddOrUpdateCredential() 121 PinSubType pinType = credInfo.pinType.value_or(PinSubType::PIN_MAX); in AddOrUpdateCredential() 127 if (!data.WriteUInt8Vector(credInfo.token)) { in AddOrUpdateCredential() 150 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in AddCredential() 152 AddOrUpdateCredential(userId, credInfo, callback, true); in AddCredential() 156 int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) in UpdateCredential() 158 AddOrUpdateCredential(userId, credInfo, callback, false); in UpdateCredential() 103 AddOrUpdateCredential( int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback, bool isAdd) AddOrUpdateCredential() argument 149 AddCredential( int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) AddCredential() argument 155 UpdateCredential( int32_t userId, const CredentialParameters &credInfo, const sptr<IIDMCallback> &callback) UpdateCredential() argument
|
/base/security/device_security_level/test/dslm_fuzz_test/dslm_fuzzer/ |
H A D | dslm_fuzzer.cpp | 195 DslmCredInfo credInfo; in VerifyOhosDslmCredTest() local 196 (void)memset_s(&credInfo, sizeof(DslmCredInfo), 0, sizeof(DslmCredInfo)); in VerifyOhosDslmCredTest() 197 (void)VerifyOhosDslmCred(&device, challenge, &cred, &credInfo); in VerifyOhosDslmCredTest() 200 (void)VerifyOhosDslmCred(&device, challenge, &cred, &credInfo); in VerifyOhosDslmCredTest() 201 (void)VerifyOhosDslmCred(nullptr, challenge, &cred, &credInfo); in VerifyOhosDslmCredTest() 288 DslmCredInfo credInfo; in DefaultInitDslmCredTest() local 289 DefaultInitDslmCred(&credInfo); in DefaultInitDslmCredTest()
|
/base/account/os_account/frameworks/account_iam/test/unittest/src/ |
H A D | account_iam_mgr_proxy_test.cpp | 86 CredentialParameters credInfo; in HWTEST_F() local 93 accountIAMMgrProxy->AddOrUpdateCredential(TEST_USER_ID, credInfo, nullptr, true); in HWTEST_F()
|