Home
last modified time | relevance | path

Searched refs:MAX_LEN_CERTIFICATE_CHAIN (Results 1 – 11 of 11) sorted by relevance

/base/security/certificate_manager/test/unittest/src/
Dcm_app_cert_test.cpp298 certificate.credData.data = static_cast<uint8_t *>(CmMalloc(MAX_LEN_CERTIFICATE_CHAIN));
300 certificate.credData.size = MAX_LEN_CERTIFICATE_CHAIN;
329 certificate.credData.data = static_cast<uint8_t *>(CmMalloc(MAX_LEN_CERTIFICATE_CHAIN));
331 certificate.credData.size = MAX_LEN_CERTIFICATE_CHAIN;
360 firstcertificate.credData.data = static_cast<uint8_t *>(CmMalloc(MAX_LEN_CERTIFICATE_CHAIN));
362 firstcertificate.credData.size = MAX_LEN_CERTIFICATE_CHAIN;
369 secondcertificate.credData.data = static_cast<uint8_t *>(CmMalloc(MAX_LEN_CERTIFICATE_CHAIN));
371 secondcertificate.credData.size = MAX_LEN_CERTIFICATE_CHAIN;
394 certificate.credData.data = static_cast<uint8_t *>(CmMalloc(MAX_LEN_CERTIFICATE_CHAIN));
396 certificate.credData.size = MAX_LEN_CERTIFICATE_CHAIN;
/base/security/certificate_manager/interfaces/kits/napi/src/
Dcm_napi_get_app_cert_info_common.cpp112 credential->credData.data = static_cast<uint8_t *>(CmMalloc(MAX_LEN_CERTIFICATE_CHAIN)); in InitAppCert()
117 …(void)memset_s(credential->credData.data, MAX_LEN_CERTIFICATE_CHAIN, 0, MAX_LEN_CERTIFICATE_CHAIN); in InitAppCert()
118 credential->credData.size = MAX_LEN_CERTIFICATE_CHAIN; in InitAppCert()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/
Dcm_pfx.c68 if (memcpy_s(appCert->appCertdata, MAX_LEN_CERTIFICATE_CHAIN, data, len) != EOK) { in CmGetAppCertChain()
92 if (p12Cert == NULL || p12Cert->data == NULL || p12Cert->size > MAX_LEN_CERTIFICATE_CHAIN) { in CmParsePkcs12Cert()
/base/web/webview/ohos_adapter/cert_mgr_adapter/src/
Dcert_mgr_adapter_impl.cpp96 return MAX_LEN_CERTIFICATE_CHAIN; in GetAppCertMaxSize()
267 cred.credData.size = MAX_LEN_CERTIFICATE_CHAIN; in GetAppCert()
268 cred.credData.data = static_cast<uint8_t *>(malloc(MAX_LEN_CERTIFICATE_CHAIN)); in GetAppCert()
284 …if (memcpy_s(certData, MAX_LEN_CERTIFICATE_CHAIN, cred.credData.data, cred.credData.size) != EOK) { in GetAppCert()
/base/security/certificate_manager/test/unittest/common_permission_test/
Dcm_common_permission_test.cpp213 cred.credData.size = MAX_LEN_CERTIFICATE_CHAIN;
214 cred.credData.data = static_cast<uint8_t *>(malloc(MAX_LEN_CERTIFICATE_CHAIN));
236 cred.credData.size = MAX_LEN_CERTIFICATE_CHAIN;
237 cred.credData.data = static_cast<uint8_t *>(malloc(MAX_LEN_CERTIFICATE_CHAIN));
/base/security/certificate_manager/test/unittest/inner_permission_test/
Dcm_inner_permission_test.cpp206 cred.credData.size = MAX_LEN_CERTIFICATE_CHAIN;
207 cred.credData.data = static_cast<uint8_t *>(malloc(MAX_LEN_CERTIFICATE_CHAIN));
431 cred.credData.size = MAX_LEN_CERTIFICATE_CHAIN;
432 cred.credData.data = static_cast<uint8_t *>(malloc(MAX_LEN_CERTIFICATE_CHAIN));
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/
Dcm_type.h38 #define MAX_LEN_CERTIFICATE_CHAIN (3 * MAX_LEN_CERTIFICATE) macro
295 uint8_t appCertdata[MAX_LEN_CERTIFICATE_CHAIN];
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
Dcm_ipc_service.c480 if (certBlob->size < (sizeof(struct AppCert) - MAX_LEN_CERTIFICATE_CHAIN)) { in CopyCertificateInfoToBuffer()
486 … if ((certBlob->size - (sizeof(struct AppCert) - MAX_LEN_CERTIFICATE_CHAIN)) < appCert->certSize) { in CopyCertificateInfoToBuffer()
535 sizeof(uint32_t) + sizeof(uint32_t) + sizeof(uint32_t) + MAX_LEN_CERTIFICATE_CHAIN; in CmAppCertificateInfoPack()
/base/security/certificate_manager/test/unittest/module_test/src/
Dcm_cert_parse_test.cpp483 …struct CmBlob certInfo = { MAX_LEN_CERTIFICATE_CHAIN + 1, const_cast<uint8_t *>(g_rsa2048P12CertIn…
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_app_cert_process.c358 certBlob.size = sizeof(struct AppCert) - MAX_LEN_CERTIFICATE_CHAIN + appCert->certSize; in StoreAppCert()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/
Dcm_ipc_client.c440 sizeof(uint32_t) + sizeof(uint32_t) + sizeof(uint32_t) + MAX_LEN_CERTIFICATE_CHAIN; in GetAppCertInitBlob()