Home
last modified time | relevance | path

Searched refs:appCert (Results 1 – 17 of 17) sorted by relevance

/base/security/certificate_manager/test/unittest/src/
Dcm_test_common.cpp253 struct CmBlob appCert = { 0, NULL }; in TestGenerateAppCert() local
256 appCert.size = sizeof(g_rsa2048P12CertInfo); in TestGenerateAppCert()
257 appCert.data = const_cast<uint8_t *>(g_rsa2048P12CertInfo); in TestGenerateAppCert()
260 appCert.size = sizeof(g_eccP256P12CertInfo); in TestGenerateAppCert()
261 appCert.data = const_cast<uint8_t *>(g_eccP256P12CertInfo); in TestGenerateAppCert()
264 appCert.size = sizeof(g_rsa512P12CertInfo); in TestGenerateAppCert()
265 appCert.data = const_cast<uint8_t *>(g_rsa512P12CertInfo); in TestGenerateAppCert()
268 appCert.size = sizeof(g_rsa1024P12CertInfo); in TestGenerateAppCert()
269 appCert.data = const_cast<uint8_t *>(g_rsa1024P12CertInfo); in TestGenerateAppCert()
272 appCert.size = sizeof(g_rsa3072P12CertInfo); in TestGenerateAppCert()
[all …]
Dcm_app_cert_test.cpp183 …struct CmBlob appCert = { sizeof(g_p12AbnormalCertinfo), const_cast<uint8_t *>(g_p12AbnormalCertin… variable
188 … int32_t ret = CmInstallAppCert(&appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri);
191 ret = CmInstallAppCert(&appCert, &g_appCertPwd, &certAlias, CM_PRI_CREDENTIAL_STORE, &keyUri);
/base/security/certificate_manager/test/unittest/module_test/src/
Dcm_cert_parse_test.cpp421 struct AppCert appCert; variable
422 (void)memset_s(&appCert, sizeof(struct AppCert), 0, sizeof(struct AppCert));
427 &pkey, &appCert);
441 struct AppCert appCert; variable
442 (void)memset_s(&appCert, sizeof(struct AppCert), 0, sizeof(struct AppCert));
446 &pkey, &appCert);
460 struct AppCert appCert; variable
461 (void)memset_s(&appCert, sizeof(struct AppCert), 0, sizeof(struct AppCert));
466 &pkey, &appCert);
480 struct AppCert appCert; variable
[all …]
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/
Dcm_pfx.c27 static int32_t CmGetAppCertChain(X509 *cert, STACK_OF(X509) *caCert, struct AppCert *appCert) in CmGetAppCertChain() argument
68 if (memcpy_s(appCert->appCertdata, MAX_LEN_CERTIFICATE_CHAIN, data, len) != EOK) { in CmGetAppCertChain()
74 appCert->certCount = certCount; in CmGetAppCertChain()
75 appCert->certSize = (uint32_t)len; in CmGetAppCertChain()
84 …rsePkcs12Cert(const struct CmBlob *p12Cert, char *passWd, EVP_PKEY **pkey, struct AppCert *appCert) in CmParsePkcs12Cert() argument
117 ret = CmGetAppCertChain(cert, caCert, appCert); in CmParsePkcs12Cert()
/base/security/certificate_manager/test/fuzz_test/cminstallappcert_fuzzer/
Dcminstallappcert_fuzzer.cpp37 struct CmBlob appCert = { 0, nullptr }; in DoSomethingInterestingWithMyAPI() local
38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCert)) { in DoSomethingInterestingWithMyAPI()
68 (void)CmInstallAppCert(&appCert, &appCertPwd, &certAlias, store, &keyUri); in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_app_cert_process.c346 static int32_t StoreAppCert(const struct CmContext *context, struct AppCert *appCert, in StoreAppCert() argument
356 appCert->keyCount = 1; in StoreAppCert()
358 certBlob.size = sizeof(struct AppCert) - MAX_LEN_CERTIFICATE_CHAIN + appCert->certSize; in StoreAppCert()
359 certBlob.data = (uint8_t *)appCert; in StoreAppCert()
402 struct AppCert appCert; in CmInstallAppCertPro() local
403 (void)memset_s(&appCert, sizeof(struct AppCert), 0, sizeof(struct AppCert)); in CmInstallAppCertPro()
414 …ret = CmParsePkcs12Cert(&appCertInfo->appCert, (char *)appCertInfo->appCertPwd.data, &priKey, &app… in CmInstallAppCertPro()
426 ret = StoreAppCert(context, &appCert, store, keyUri); in CmInstallAppCertPro()
Dcert_manager_check.c152 int32_t CmServiceInstallAppCertCheck(const struct CmBlob *appCert, const struct CmBlob *appCertPwd, in CmServiceInstallAppCertCheck() argument
160 if ((CmCheckBlob(appCert) != CM_SUCCESS) || (CmCheckBlob(appCertPwd) != CM_SUCCESS) || in CmServiceInstallAppCertCheck()
166 if (appCert->size > MAX_LEN_APP_CERT || appCertPwd->size > MAX_LEN_APP_CERT_PASSWD || in CmServiceInstallAppCertCheck()
169 appCert->size, appCertPwd->size, certAlias->size); in CmServiceInstallAppCertCheck()
Dcert_manager_service.c64 int32_t ret = CmServiceInstallAppCertCheck(&appCertInfo->appCert, &appCertInfo->appCertPwd, in CmServicInstallAppCert()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
Dcm_pfx.h27 …sePkcs12Cert(const struct CmBlob *p12Cert, char *passWd, EVP_PKEY **pkey, struct AppCert *appCert);
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_check.h33 int32_t CmServiceInstallAppCertCheck(const struct CmBlob *appCert, const struct CmBlob *appCertPwd,
/base/web/webview/test/unittest/ohos_adapter/cert_mgr_adapter_test/
Dcert_mgr_adapter_test.cpp366 …struct CmBlob appCert = { sizeof(g_rsa2048P12CertInfo), const_cast<uint8_t *>(g_rsa2048P12CertInfo… variable
370 …int32_t result = CmInstallAppCert(&appCert, &appCertPwd, &alias, CM_PRI_CREDENTIAL_STORE, &keyUri);
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/src/
Dcert_manager_api.c82 CM_API_EXPORT int32_t CmInstallAppCert(const struct CmBlob *appCert, const struct CmBlob *appCertPw… in CmInstallAppCert() argument
86 if (appCert == NULL || appCertPwd == NULL || certAlias == NULL || in CmInstallAppCert()
92 int32_t ret = CmClientInstallAppCert(appCert, appCertPwd, certAlias, store, keyUri); in CmInstallAppCert()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/include/
Dcm_ipc_client.h35 int32_t CmClientInstallAppCert(const struct CmBlob *appCert, const struct CmBlob *appCertPwd,
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/
Dcert_manager_api.h33 CM_API_EXPORT int32_t CmInstallAppCert(const struct CmBlob *appCert, const struct CmBlob *appCertPw…
Dcm_type.h206 struct CmBlob appCert; member
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
Dcm_ipc_service.c215 { .tag = CM_TAG_PARAM0_BUFFER, .blob = &appCertInfo.appCert }, in CmIpcServiceInstallAppCert()
485 struct AppCert *appCert = (struct AppCert *)certBlob->data; in CopyCertificateInfoToBuffer() local
486 … if ((certBlob->size - (sizeof(struct AppCert) - MAX_LEN_CERTIFICATE_CHAIN)) < appCert->certSize) { in CopyCertificateInfoToBuffer()
487 CM_LOG_E("certInfo data size[%u] invalid, certSize[%u]", certBlob->size, appCert->certSize); in CopyCertificateInfoToBuffer()
491 int32_t ret = CopyUint32ToBuffer(appCert->certCount, certificateInfo, offset); in CopyCertificateInfoToBuffer()
497 ret = CopyUint32ToBuffer(appCert->keyCount, certificateInfo, offset); in CopyCertificateInfoToBuffer()
503 struct CmBlob appCertBlob = { appCert->certSize, appCert->appCertdata }; in CopyCertificateInfoToBuffer()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/
Dcm_ipc_client.c194 static int32_t InstallAppCert(const struct CmBlob *appCert, const struct CmBlob *appCertPwd, in InstallAppCert() argument
201 .blob = *appCert }, in InstallAppCert()
232 int32_t CmClientInstallAppCert(const struct CmBlob *appCert, const struct CmBlob *appCertPwd, in CmClientInstallAppCert() argument
235 return InstallAppCert(appCert, appCertPwd, certAlias, store, keyUri); in CmClientInstallAppCert()