Home
last modified time | relevance | path

Searched refs:certData (Results 1 – 16 of 16) sorted by relevance

/base/web/webview/ohos_adapter/interfaces/
Dcert_mgr_adapter.h32 virtual int32_t GetSytemRootCertData(uint32_t certCount, uint8_t* certData) = 0;
36 virtual int32_t GetUserRootCertData(uint32_t certCount, uint8_t* certData) = 0;
40 virtual int32_t GetAppCert(uint8_t* uriData, uint8_t* certData, uint32_t* len) = 0;
42 virtual int32_t Sign(const uint8_t* uri, const uint8_t* certData, uint32_t certDataLen,
/base/web/webview/test/unittest/ohos_adapter/cert_mgr_adapter_test/
Dcert_mgr_adapter_test.cpp297 uint8_t* certData = static_cast<uint8_t *>(malloc(g_cerSize)); variable
298 EXPECT_NE(certData, nullptr);
299 int32_t result = adapter.GetSytemRootCertData(0, certData);
301 free(certData);
302 certData = nullptr;
346 uint8_t* certData = static_cast<uint8_t *>(malloc(g_appMaxSize)); variable
347 EXPECT_NE(certData, nullptr);
348 int32_t result = adapter.GetAppCert(uriData, certData, &len);
350 free(certData);
351 certData = nullptr;
/base/web/webview/ohos_adapter/cert_mgr_adapter/include/
Dcert_mgr_adapter_impl.h32 int32_t GetSytemRootCertData(uint32_t certCount, uint8_t* certData) override;
36 int32_t GetUserRootCertData(uint32_t certCount, uint8_t* certData) override;
40 int32_t GetAppCert(uint8_t* uriData, uint8_t* certData, uint32_t* len) override;
42 int32_t Sign(const uint8_t* uri, const uint8_t* certData, uint32_t certDataLen,
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
Ddlp_file_manager.cpp74 int32_t DlpFileManager::GenerateCertData(const PermissionPolicy& policy, struct DlpBlob& certData) … in GenerateCertData()
107 certData.data = certBuffer; in GenerateCertData()
108 certData.size = static_cast<uint32_t>(certSize); in GenerateCertData()
113 …ionPolicy& policy, struct DlpBlob& key, struct DlpUsageSpec& usage, struct DlpBlob& certData) const in PrepareDlpEncryptParms()
146 res = GenerateCertData(policy, certData); in PrepareDlpEncryptParms()
220 void DlpFileManager::FreeChiperBlob(struct DlpBlob& key, struct DlpBlob& certData, struct DlpUsageS… in FreeChiperBlob() argument
227 if (certData.data != nullptr) { in FreeChiperBlob()
228 delete[] certData.data; in FreeChiperBlob()
229 certData.data = nullptr; in FreeChiperBlob()
245 struct DlpBlob certData; in SetDlpFileParams() local
[all …]
/base/security/code_signature/services/key_enable/utils/src/
Dlocal_code_sign_utils.cpp25 int32_t InitLocalCertificate(uint8_t *certData, uint32_t *certSize) in InitLocalCertificate() argument
32 if (memcpy_s(certData, *certSize, cert.GetBuffer(), cert.GetSize()) != EOK) { in InitLocalCertificate()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_query.c390 static int32_t GetSysCertAlias(const struct CmBlob *certData, struct CmBlob *alias) in GetSysCertAlias() argument
392 X509 *cert = InitCertContext(certData->data, certData->size); in GetSysCertAlias()
413 int32_t CmGetCertAlias(const uint32_t store, const char *uri, const struct CmBlob *certData, struct… in CmGetCertAlias() argument
420 ret = GetSysCertAlias(certData, alias); in CmGetCertAlias()
434 static int32_t CmGetCertSubjectName(const struct CmBlob *certData, struct CmBlob *subjectName) in CmGetCertSubjectName() argument
436 X509 *cert = InitCertContext(certData->data, certData->size); in CmGetCertSubjectName()
480 struct CmBlob certData = { 0, NULL }; in CmGetCertListInfo() local
481 …t = CmStorageGetBuf((char *)cFileList[i].path.data, (char *)cFileList[i].fileName.data, &certData); in CmGetCertListInfo()
487 ret = CmGetCertAlias(store, (char *)cFileList[i].fileName.data, &certData, in CmGetCertListInfo()
491 CM_FREE_BLOB(certData); in CmGetCertListInfo()
[all …]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/include/
Ddlp_file_manager.h49 int32_t GenerateCertData(const PermissionPolicy& policy, struct DlpBlob& certData) const;
51 …onPolicy& policy, struct DlpBlob& key, struct DlpUsageSpec& usage, struct DlpBlob& certData) const;
53 …void FreeChiperBlob(struct DlpBlob& key, struct DlpBlob& certData, struct DlpUsageSpec& usage) con…
/base/web/webview/ohos_adapter/cert_mgr_adapter/src/
Dcert_mgr_adapter_impl.cpp125 int32_t CertManagerAdapterImpl::GetSytemRootCertData(uint32_t certCount, uint8_t* certData) in GetSytemRootCertData() argument
169 …if (memcpy_s(certData, MAX_LEN_CERTIFICATE, certInfo.certInfo.data, certInfo.certInfo.size) != EOK… in GetSytemRootCertData()
207 int32_t CertManagerAdapterImpl::GetUserRootCertData(uint32_t certCount, uint8_t* certData) in GetUserRootCertData() argument
251 …if (memcpy_s(certData, MAX_LEN_CERTIFICATE, certInfo.certInfo.data, certInfo.certInfo.size) != EOK… in GetUserRootCertData()
263 int32_t CertManagerAdapterImpl::GetAppCert(uint8_t* uriData, uint8_t* certData, uint32_t* len) in GetAppCert() argument
284 …if (memcpy_s(certData, MAX_LEN_CERTIFICATE_CHAIN, cred.credData.data, cred.credData.size) != EOK) { in GetAppCert()
296 int32_t CertManagerAdapterImpl::Sign(const uint8_t* uri, const uint8_t* certData, uint32_t certData… in Sign() argument
315 const struct CmBlob message = {certDataLen, const_cast<uint8_t *>(certData)}; in Sign()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
Ddlp_file_manager_test.cpp112 struct DlpBlob certData; variable
113 …EXPECT_EQ(DlpFileManager::GetInstance().GenerateCertData(policy, certData), DLP_SERVICE_ERROR_VALU…
124 …EXPECT_EQ(DlpFileManager::GetInstance().GenerateCertData(policy, certData), DLP_PARSE_ERROR_VALUE_…
131 int res = DlpFileManager::GetInstance().GenerateCertData(policy, certData);
159 struct DlpBlob certData; variable
166 DlpFileManager::GetInstance().PrepareDlpEncryptParms(policy, key, usage, certData));
173 DlpFileManager::GetInstance().PrepareDlpEncryptParms(policy, key, usage, certData));
179 int res = DlpFileManager::GetInstance().PrepareDlpEncryptParms(policy, key, usage, certData);
353 struct DlpBlob certData = { variable
363 DlpFileManager::GetInstance().FreeChiperBlob(key, certData, spec);
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_query.h31 int32_t CmGetCertAlias(const uint32_t store, const char *uri, const struct CmBlob *certData,
/base/security/certificate_manager/test/unittest/inner_permission_test/
Dcm_inner_permission_test.cpp280 uint8_t certData[] = "inner013"; variable
281 struct CmBlob userCert = { sizeof(certData), certData };
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_api_test.cpp169 uint8_t certData[] = { 0x30, 0x82 }; variable
170 struct HksBlob cert[] = { { sizeof(certData), certData } };
/base/security/certificate_manager/test/unittest/common_permission_test/
Dcm_common_permission_test.cpp310 uint8_t certData[] = "common016"; variable
311 struct CmBlob userCert = { sizeof(certData), certData };
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/
Dhks_teec.h77 const struct HksBlob *challengeIn, struct HksBlob *signature, struct HksBlob *certData);
Dhks_teec.c272 const struct HksBlob *challengeIn, struct HksBlob *signature, struct HksBlob *certData) in HksTeeProvision() argument
280 InitializeBlob(&params[3].blob, certData->size, certData->data); /* 3 is array index */ in HksTeeProvision()
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/
Dcm_type.h237 uint8_t certData[MAX_LEN_CERTIFICATE]; member