/base/security/certificate_manager/test/unittest/src/ |
D | cm_app_cert_test.cpp | 136 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; variable 138 …int32_t ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri… 141 ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_PRI_CREDENTIAL_STORE, &keyUri); 163 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; variable 165 … int32_t ret = CmInstallAppCert(&g_appCert, &appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri); 168 ret = CmInstallAppCert(&g_appCert, &appCertPwd, &certAlias, CM_PRI_CREDENTIAL_STORE, &keyUri); 181 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; 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); 204 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; variable [all …]
|
D | cm_user_cert_test.cpp | 466 struct CmBlob certAlias[] = { variable 513 ret = CmInstallUserTrustedCert(&userCert[0], &certAlias[0], &certUri); 532 ret = CmInstallUserTrustedCert(&userCert[1], &certAlias[1], &certUri); 551 ret = CmInstallUserTrustedCert(&userCert[2], &certAlias[2], &certUri); 687 ret = CmInstallUserTrustedCert(&userCert[2], &certAlias[2], &certUri); 857 uint32_t size = sizeof(certAlias) / sizeof(certAlias[0]); 861 ret = CmInstallUserTrustedCert(&userCert[i], &certAlias[i], &certUri); 880 uint32_t size = sizeof(certAlias) / sizeof(certAlias[0]); 884 ret = CmInstallUserTrustedCert(&userCert[i], &certAlias[i], &certUriTemp); 903 uint32_t size = sizeof(certAlias) / sizeof(certAlias[0]); [all …]
|
D | cm_test_common.cpp | 146 (strcmp(firstCert->certAlias, secondCert->certAlias) == 0) && in CompareCert() 171 str += certAbstract->certAlias; in DumpCertAbstractInfo() 201 (strcmp(firstCert->certAlias, secondCert->certAlias) == 0) && in CompareCertInfo() 229 str += certInfo->certAlias; in DumpCertInfo()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/ |
D | cm_ipc_service_serialization.c | 155 ret = CopyBlobToBuffer(&(certBlob->certAlias[i]), certificateList, &offset); in CmGetCertListPack() 217 struct CmBlob certAlias; in CmServiceGetCertInfoPack() local 218 certAlias.size = MAX_LEN_CERT_ALIAS; in CmServiceGetCertInfoPack() 219 certAlias.data = (uint8_t *)CmMalloc(MAX_LEN_CERT_ALIAS); in CmServiceGetCertInfoPack() 220 if (certAlias.data == NULL) { in CmServiceGetCertInfoPack() 223 (void)memset_s(certAlias.data, MAX_LEN_CERT_ALIAS, 0, MAX_LEN_CERT_ALIAS); in CmServiceGetCertInfoPack() 225 ret = CmGetCertAlias(store, (char *)certUri->data, certificateData, &(certAlias)); in CmServiceGetCertInfoPack() 228 CM_FREE_BLOB(certAlias); in CmServiceGetCertInfoPack() 232 ret = CopyBlobToBuffer(&certAlias, certificateInfo, &offset); /* certAlias */ in CmServiceGetCertInfoPack() 235 CM_FREE_BLOB(certAlias); in CmServiceGetCertInfoPack() [all …]
|
D | cm_ipc_service.c | 212 struct CmBlob certAlias = { 0, NULL }; in CmIpcServiceInstallAppCert() local 217 { .tag = CM_TAG_PARAM2_BUFFER, .blob = &certAlias }, in CmIpcServiceInstallAppCert() 226 ret = CmServicInstallAppCert(&cmContext, &appCertInfo, &certAlias, store, outData); in CmIpcServiceInstallAppCert() 353 struct CmBlob *certUri, struct CmBlob *certAlias) in CmCertListGetAppCertInfo() argument 364 ret = GetAppCertInfo(&keyUri, certType, certUri, certAlias); in CmCertListGetAppCertInfo() 398 struct CmBlob certAlias = { sizeof(aliasBuf), aliasBuf }; in CmServiceGetAppCertListPack() local 400 ret = CmCertListGetAppCertInfo(&fileNames[i], &certType, &certUri, &certAlias); in CmServiceGetAppCertListPack() 418 ret = CopyBlobToBuffer(&certAlias, certificateList, &offset); in CmServiceGetAppCertListPack() 1078 struct CmBlob certAlias = { 0, NULL }; in CmIpcServiceInstallUserCert() local 1083 { .tag = CM_TAG_PARAM1_BUFFER, .blob = &certAlias }, in CmIpcServiceInstallUserCert() [all …]
|
/base/security/certificate_manager/test/fuzz_test/cminstallusertrustedcert_fuzzer/ |
D | cminstallusertrustedcert_fuzzer.cpp | 42 struct CmBlob certAlias = { 0, nullptr }; in DoSomethingInterestingWithMyAPI() local 43 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certAlias)) { in DoSomethingInterestingWithMyAPI() 55 (void)CmInstallUserTrustedCert(&userCert, &certAlias, &certUri); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cminstallappcert_fuzzer/ |
D | cminstallappcert_fuzzer.cpp | 49 struct CmBlob certAlias = { 0, nullptr }; in DoSomethingInterestingWithMyAPI() local 50 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certAlias)) { in DoSomethingInterestingWithMyAPI() 68 (void)CmInstallAppCert(&appCert, &appCertPwd, &certAlias, store, &keyUri); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/interfaces/kits/js/ |
D | @ohos.security.certManager.d.ts | 121 …function installAppCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, callb… 122 …function installAppCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) : Pro… 133 …function installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, c… 134 …function installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) :… 323 certAlias: string; 336 certAlias: string; property
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_check.c | 153 const struct CmBlob *certAlias, const uint32_t store, const struct CmContext *cmContext) in CmServiceInstallAppCertCheck() argument 161 (CmCheckBlob(certAlias) != CM_SUCCESS)) { in CmServiceInstallAppCertCheck() 167 certAlias->size > MAX_LEN_CERT_ALIAS) { in CmServiceInstallAppCertCheck() 169 appCert->size, appCertPwd->size, certAlias->size); in CmServiceInstallAppCertCheck() 173 if (!AppCertCheckBlobValid(appCertPwd) || !AppCertCheckBlobValid(certAlias)) { in CmServiceInstallAppCertCheck()
|
D | cert_manager_service.c | 62 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri) in CmServicInstallAppCert() argument 65 certAlias, store, context); in CmServicInstallAppCert() 71 ret = CmInstallAppCertPro(context, appCertInfo, certAlias, store, keyUri); in CmServicInstallAppCert() 463 const struct CmBlob *certAlias, struct CmBlob *certUri) in CmInstallUserCert() argument 465 if ((CmCheckBlob(userCert) != CM_SUCCESS) || (CmCheckBlob(certAlias) != CM_SUCCESS)) { in CmInstallUserCert() 489 if (CheckUri(certAlias) != CM_SUCCESS) { in CmInstallUserCert() 494 ret = CmWriteUserCert(context, &pathBlob, userCert, certAlias, certUri); in CmInstallUserCert()
|
D | cert_manager_query.c | 353 certBlob->certAlias[i].size = MAX_LEN_CERT_ALIAS; in CmMallocCertBlob() 354 certBlob->certAlias[i].data = (uint8_t *)CMMalloc(MAX_LEN_CERT_ALIAS); in CmMallocCertBlob() 355 if (certBlob->certAlias[i].data == NULL) { in CmMallocCertBlob() 358 (void)memset_s(certBlob->certAlias[i].data, MAX_LEN_CERT_ALIAS, 0, MAX_LEN_CERT_ALIAS); in CmMallocCertBlob() 488 &(certBlob->certAlias[i])); /* alias */ in CmGetCertListInfo() 516 CM_FREE_BLOB(certBlob->certAlias[i]); in CmFreeCertBlob()
|
D | cert_manager.c | 438 static int32_t ConstructCertUri(const struct CmContext *context, const struct CmBlob *certAlias, in ConstructCertUri() argument 444 ret = CmConstructCommonUri(context, CM_URI_TYPE_CERTIFICATE, certAlias, &commonUri); in ConstructCertUri() 470 const struct CmBlob *userCert, const struct CmBlob *certAlias, struct CmBlob *certUri) in CmWriteUserCert() argument 472 if (certAlias->size > MAX_LEN_CERT_ALIAS) { in CmWriteUserCert() 479 ret = ConstructCertUri(context, certAlias, certUri); in CmWriteUserCert()
|
D | cert_manager_app_cert_process.c | 369 static int32_t ConstructKeyUri(const struct CmContext *context, const struct CmBlob *certAlias, str… in ConstructKeyUri() argument 374 ret = CmConstructCommonUri(context, CM_URI_TYPE_APP_KEY, certAlias, &commonUri); in ConstructKeyUri() 400 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri) in CmInstallAppCertPro() argument 408 ret = ConstructKeyUri(context, certAlias, keyUri); in CmInstallAppCertPro()
|
/base/security/certificate_manager/test/unittest/multi_thread_test/src/ |
D | cm_app_cert_multi_thread_test.cpp | 116 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; variable 121 …int32_t ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri… 124 ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_PRI_CREDENTIAL_STORE, &keyUri);
|
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/ |
D | cm_type.h | 201 struct CmBlob certAlias[MAX_COUNT_CERTIFICATE]; member 214 char certAlias[MAX_LEN_CERT_ALIAS]; member 222 char certAlias[MAX_LEN_CERT_ALIAS]; member 234 char certAlias[MAX_LEN_CERT_ALIAS]; member 242 char certAlias[MAX_LEN_CERT_ALIAS]; member
|
D | cert_manager_api.h | 34 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri); 69 const struct CmBlob *certAlias, struct CmBlob *certUri);
|
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/src/ |
D | cert_manager_api.c | 83 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri) 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() 289 …ORT int32_t CmInstallUserTrustedCert(const struct CmBlob *userCert, const struct CmBlob *certAlias, in CmInstallUserTrustedCert() argument 293 if ((userCert == NULL) || (certAlias == NULL) || (certUri == NULL)) { in CmInstallUserTrustedCert() 297 int32_t ret = CmClientInstallUserTrustedCert(userCert, certAlias, certUri); in CmInstallUserTrustedCert()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/ |
D | cert_manager_app_cert_process.h | 26 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri);
|
D | cert_manager_service.h | 26 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri); 58 const struct CmBlob *certAlias, struct CmBlob *certUri);
|
D | cert_manager_check.h | 34 const struct CmBlob *certAlias, const uint32_t store, const struct CmContext *cmContext);
|
D | cert_manager.h | 51 const struct CmBlob *userCert, const struct CmBlob *certAlias, struct CmBlob *certUri);
|
D | cert_manager_uri.h | 79 const struct CmBlob *certAlias, struct CmBlob *outUri);
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/include/ |
D | cm_ipc_client.h | 36 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri); 70 …t32_t CmClientInstallUserTrustedCert(const struct CmBlob *userCert, const struct CmBlob *certAlias,
|
/base/security/certificate_manager/interfaces/kits/napi/src/ |
D | cm_napi_common.cpp | 198 napi_value certAlias = nullptr; in GenerateCertAbstractArray() local 203 napi_create_string_latin1(env, static_cast<const char *>(certAbstract[i].certAlias), in GenerateCertAbstractArray() 204 NAPI_AUTO_LENGTH, &certAlias); in GenerateCertAbstractArray() 212 napi_set_named_property (env, element, CM_CERT_PROPERTY_CERTALIAS.c_str(), certAlias); in GenerateCertAbstractArray() 262 NAPI_CALL(env, napi_create_string_latin1(env, static_cast<const char *>(certInfo->certAlias), in GenerateCertInfo() 263 NAPI_AUTO_LENGTH, &cInfVal.certAlias)); in GenerateCertInfo() 287 …LL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_CERTALIAS.c_str(), cInfVal.certAlias)); in GenerateCertInfo()
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/ |
D | cm_ipc_client_serialization.c | 123 …if (memcpy_s(certificateList->certAbstract[i].certAlias, MAX_LEN_CERT_ALIAS, blob.data, blob.size)… in CmCertificateListUnpackFromService() 228 (void)memset_s(cInfo->certAlias, MAX_LEN_CERT_ALIAS, 0, MAX_LEN_CERT_ALIAS); in CmCertificateInfoUnpackFromService() 229 if (memcpy_s(cInfo->certAlias, MAX_LEN_CERT_ALIAS, bufBlob.data, bufBlob.size) != EOK) { in CmCertificateInfoUnpackFromService()
|