Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 408) sorted by relevance

12345678910>>...17

/base/security/certificate_framework/frameworks/common/v1.0/src/
Dcf_blob.c23 void CfBlobFree(CfBlob **blob) in CfBlobFree() argument
25 if (blob == NULL) { in CfBlobFree()
28 CfBlobDataFree(*blob); in CfBlobFree()
29 CfFree(*blob); in CfBlobFree()
30 *blob = NULL; in CfBlobFree()
33 void CfBlobDataFree(CfBlob *blob) in CfBlobDataFree() argument
35 if ((blob == NULL) || (blob->data == NULL)) { in CfBlobDataFree()
38 CfFree(blob->data); in CfBlobDataFree()
39 blob->data = NULL; in CfBlobDataFree()
40 blob->size = 0; in CfBlobDataFree()
[all …]
Dcf_check.c21 int32_t CfCheckBlob(const CfBlob *blob, uint32_t maxLen) in CfCheckBlob() argument
23 if ((blob == NULL) || (blob->data == NULL) || (blob->size == 0) || (blob->size > maxLen)) { in CfCheckBlob()
30 int32_t CfCheckEncodingBlob(const CfEncodingBlob *blob, uint32_t maxLen) in CfCheckEncodingBlob() argument
32 if ((blob == NULL) || (blob->data == NULL) || (blob->len == 0) || (blob->len > maxLen)) { in CfCheckEncodingBlob()
37 if ((blob->encodingFormat != CF_FORMAT_DER) && (blob->encodingFormat != CF_FORMAT_PEM)) { in CfCheckEncodingBlob()
/base/security/crypto_framework/common/src/
Dblob.c22 void HcfBlobDataFree(HcfBlob *blob) in HcfBlobDataFree() argument
24 if ((blob == NULL) || (blob->data == NULL)) { in HcfBlobDataFree()
27 HcfFree(blob->data); in HcfBlobDataFree()
28 blob->data = NULL; in HcfBlobDataFree()
29 blob->len = 0; in HcfBlobDataFree()
32 void HcfBlobDataClearAndFree(HcfBlob *blob) in HcfBlobDataClearAndFree() argument
34 if ((blob == NULL) || (blob->data == NULL)) { in HcfBlobDataClearAndFree()
38 (void)memset_s(blob->data, blob->len, 0, blob->len); in HcfBlobDataClearAndFree()
39 HcfFree(blob->data); in HcfBlobDataClearAndFree()
40 blob->data = NULL; in HcfBlobDataClearAndFree()
[all …]
/base/security/asset/test/unittest/kits_ndk/src/
Dasset_remove_test.cpp62 { .tag = ASSET_TAG_ALIAS, .value.blob = funcName },
63 { .tag = ASSET_TAG_SECRET, .value.blob = funcName },
68 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_1, .value.blob = funcName },
69 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_2, .value.blob = funcName },
70 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_3, .value.blob = funcName },
71 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_4, .value.blob = funcName },
72 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_1, .value.blob = funcName },
73 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_2, .value.blob = funcName },
74 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_3, .value.blob = funcName },
75 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_4, .value.blob = funcName },
[all …]
Dasset_add_test.cpp62 { .tag = ASSET_TAG_ALIAS, .value.blob = funcName },
63 { .tag = ASSET_TAG_SECRET, .value.blob = funcName },
69 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_1, .value.blob = funcName },
70 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_2, .value.blob = funcName },
71 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_3, .value.blob = funcName },
72 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_4, .value.blob = funcName },
73 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_1, .value.blob = funcName },
74 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_2, .value.blob = funcName },
75 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_3, .value.blob = funcName },
76 { .tag = ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_4, .value.blob = funcName },
[all …]
/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_mem.h49 #define HKS_FREE_BLOB(blob) do { \ argument
50 if ((blob).data != HKS_NULL_POINTER) { \
51 HksFreeImpl((blob).data); \
52 (blob).data = HKS_NULL_POINTER; \
54 (blob).size = 0; \
66 #define HKS_MEMSET_FREE_BLOB(blob) do { \ argument
67 if ((blob).data != HKS_NULL_POINTER) { \
68 (void)memset_s((blob).data, (blob).size, 0, (blob).size); \
69 HksFreeImpl((blob).data); \
70 (blob).data = HKS_NULL_POINTER; \
[all …]
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
Dcm_mem.h39 #define CM_FREE_BLOB(blob) do { \ argument
40 if ((blob).data != NULL) { \
41 CmFree((blob).data); \
42 (blob).data = NULL; \
44 (blob).size = 0; \
47 #define CMMUTABLE_FREE_BLOB(blob) do { \ argument
48 if ((blob).data != NULL) { \
49 CmFree((blob).data); \
50 (blob).data = NULL; \
52 (blob).size = 0; \
/base/security/asset/test/unittest/module_test/src/
Dasset_system_api_test.cpp87 { .tag = SEC_ASSET_TAG_ALIAS, .value.blob = funcName },
88 { .tag = SEC_ASSET_TAG_SECRET, .value.blob = funcName },
95 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_1, .value.blob = funcName },
96 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_2, .value.blob = funcName },
97 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_3, .value.blob = funcName },
98 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_4, .value.blob = funcName },
99 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_1, .value.blob = funcName },
100 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_2, .value.blob = funcName },
101 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_3, .value.blob = funcName },
102 { .tag = SEC_ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_4, .value.blob = funcName },
[all …]
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dblob.cpp25 Blob::Blob(const Blob &blob) in Blob() argument
27 blob_ = blob.Data(); in Blob()
30 Blob::Blob(Blob &&blob) in Blob() argument
32 blob_.swap(blob.blob_); in Blob()
35 Blob &Blob::operator=(const Blob &blob) in operator =() argument
38 if (&blob == this) { in operator =()
42 blob_ = blob.Data(); in operator =()
47 Blob &Blob::operator=(Blob &&blob) in operator =() argument
50 if (&blob == this) { in operator =()
54 blob_.swap(blob.blob_); in operator =()
[all …]
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dblob.cpp25 Blob::Blob(const Blob &blob) in Blob() argument
27 blob_ = blob.Data(); in Blob()
30 Blob::Blob(Blob &&blob) in Blob() argument
32 blob_.swap(blob.blob_); in Blob()
35 Blob &Blob::operator=(const Blob &blob) in operator =() argument
38 if (&blob == this) { in operator =()
42 blob_ = blob.Data(); in operator =()
47 Blob &Blob::operator=(Blob &&blob) in operator =() argument
50 if (&blob == this) { in operator =()
54 blob_.swap(blob.blob_); in operator =()
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dblob.cpp25 Blob::Blob(const Blob &blob) in Blob() argument
27 blob_ = blob.Data(); in Blob()
30 Blob::Blob(Blob &&blob) in Blob() argument
32 blob_.swap(blob.blob_); in Blob()
35 Blob &Blob::operator=(const Blob &blob) in operator =() argument
38 if (&blob == this) { in operator =()
42 blob_ = blob.Data(); in operator =()
47 Blob &Blob::operator=(Blob &&blob) in operator =() argument
50 if (&blob == this) { in operator =()
54 blob_.swap(blob.blob_); in operator =()
[all …]
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
Dmock_blob.cpp25 Blob::Blob(const Blob &blob) in Blob() argument
27 blob_ = blob.Data(); in Blob()
30 Blob::Blob(Blob &&blob) in Blob() argument
32 blob_.swap(blob.blob_); in Blob()
35 Blob &Blob::operator=(const Blob &blob) in operator =() argument
38 if (&blob == this) { in operator =()
42 blob_ = blob.Data(); in operator =()
47 Blob &Blob::operator=(Blob &&blob) in operator =() argument
50 if (&blob == this) { in operator =()
54 blob_.swap(blob.blob_); in operator =()
/base/security/certificate_framework/test/unittest/v1.0/src/
Dcrypto_x509_cert_chain_test_ex.cpp100 CfBlob blob = { 0, nullptr }; variable
101 CfResult ret = g_certChainP7b->toString(g_certChainP7b, &blob);
103 CfBlobDataFree(&blob);
108 ret = g_certChainP7b->toString(&certChain, &blob);
111 ret = g_certChainP7b->toString(NULL, &blob);
124 ret = g_certChainP7b->toString(g_certChainP7b, &blob);
132 ret = g_certChainP7b->toString(g_certChainP7b, &blob);
138 ret = g_certChainP7b->toString(g_certChainP7b, &blob);
148 CfBlob blob = { 0, nullptr }; variable
149 CfResult ret = g_certChainP7b->hashCode(g_certChainP7b, &blob);
[all …]
Dcrypto_x509_crl_test_part2.cpp365 CfBlob blob = { 0, nullptr }; variable
366 CfResult ret = g_x509Crl->toString(g_x509Crl, &blob);
368 CfBlobDataFree(&blob);
373 ret = g_x509Crl->toString(&invalidCrl, &blob);
376 ret = g_x509Crl->toString(NULL, &blob);
391 CfBlob blob = { 0, nullptr }; variable
392 CfResult ret = g_x509Crl->hashCode(g_x509Crl, &blob);
394 CfBlobDataFree(&blob);
399 ret = g_x509Crl->hashCode(&invalidCrl, &blob);
402 ret = g_x509Crl->hashCode(NULL, &blob);
[all …]
/base/security/crypto_framework/test/unittest/src/ecc/
Dcrypto_ecc_asy_key_generator_by_spec_sub_one_test.cpp73 HcfBlob blob = { .data = nullptr, .len = 0 }; variable
74 res = keyPair->pubKey->base.getEncoded(&(keyPair->pubKey->base), &blob);
77 ASSERT_NE(blob.data, nullptr);
78 ASSERT_NE(blob.len, 0);
80 HcfFree(blob.data);
102 HcfBlob blob = { .data = nullptr, .len = 0 }; variable
103 res = pubKey->base.getEncoded(&(pubKey->base), &blob);
106 ASSERT_NE(blob.data, nullptr);
107 ASSERT_NE(blob.len, 0);
109 HcfFree(blob.data);
[all …]
/base/security/certificate_framework/test/unittest/cf_adapter_test/src/
Dcf_common_test.cpp74 CfBlob blob = { 0, nullptr }; variable
75 CfBlobDataFree(&blob);
86 CfBlob blob = { TEST_DEFAULT_SIZE, nullptr }; variable
87 blob.data = static_cast<uint8_t *>(CfMalloc(blob.size, 0));
88 ASSERT_NE(blob.data, nullptr);
89 CfBlobDataFree(&blob);
111 CfBlob blob = { 0, nullptr }; variable
112 CfBlobDataClearAndFree(&blob);
123 CfBlob blob = { TEST_DEFAULT_SIZE, nullptr }; variable
124 blob.data = static_cast<uint8_t *>(CfMalloc(blob.size, 0));
[all …]
/base/security/certificate_manager/test/fuzz_test/fuzz_test_common/src/
Dcm_fuzz_test_common.cpp120 { .tag = CM_TAG_PARAM0_BUFFER, .blob = { 0, nullptr } },
127 { .tag = CM_TAG_PARAM0_BUFFER, .blob = { 0, nullptr } },
135 { .tag = CM_TAG_PARAM0_BUFFER, .blob = { 0, nullptr } },
136 { .tag = CM_TAG_PARAM1_BUFFER, .blob = { 0, nullptr } },
137 { .tag = CM_TAG_PARAM2_BUFFER, .blob = { 0, nullptr } },
144 { .tag = CM_TAG_PARAM0_BUFFER, .blob = { 0, nullptr } },
162 { .tag = CM_TAG_PARAM0_BUFFER, .blob = { 0, nullptr } },
169 { .tag = CM_TAG_PARAM0_BUFFER, .blob = { 0, nullptr } },
176 { .tag = CM_TAG_PARAM0_BUFFER, .blob = { 0, nullptr } },
182 { .tag = CM_TAG_PARAM0_BUFFER, .blob = { 0, nullptr } },
[all …]
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
Dnapi_x509_certificate.cpp374 CfBlob blob = { 0, nullptr }; in GetSerialNumber() local
375 CfResult ret = cert->getSerialNumber(cert, &blob); in GetSerialNumber()
382 napi_value result = ConvertBlobToInt64(env, blob); in GetSerialNumber()
383 CfBlobDataFree(&blob); in GetSerialNumber()
390 CfBlob blob = { 0, nullptr }; in GetCertSerialNumber() local
391 CfResult ret = cert->getSerialNumber(cert, &blob); in GetCertSerialNumber()
398 napi_value result = ConvertBlobToBigIntWords(env, blob); in GetCertSerialNumber()
399 CfBlobDataFree(&blob); in GetCertSerialNumber()
405 CfBlob *blob = reinterpret_cast<CfBlob *>(CfMalloc(sizeof(CfBlob), 0)); in GetIssuerName() local
406 if (blob == nullptr) { in GetIssuerName()
[all …]
Dnapi_x509_crl_entry.cpp48 CfBlob *blob = nullptr; member
74 CfBlobDataFree(context->blob); in FreeCryptoFwkCtx()
75 CfFree(context->blob); in FreeCryptoFwkCtx()
76 context->blob = nullptr; in FreeCryptoFwkCtx()
217 CfBlob blob = { 0, nullptr }; in GetCrlEntrySerialNumber() local
218 CfResult ret = x509CrlEntry->getSerialNumber(x509CrlEntry, &blob); in GetCrlEntrySerialNumber()
225 napi_value result = ConvertBlobToInt64(env, blob); in GetCrlEntrySerialNumber()
226 CfBlobDataFree(&blob); in GetCrlEntrySerialNumber()
233 CfBlob blob = { 0, nullptr }; in GetCRLEntrySerialNumber() local
234 CfResult ret = x509CrlEntry->getSerialNumber(x509CrlEntry, &blob); in GetCRLEntrySerialNumber()
[all …]
Dnapi_x509_crl.cpp63 CfBlob *blob = nullptr; member
99 CfBlobDataFree(context->blob); in FreeCryptoFwkCtx()
100 CfFree(context->blob); in FreeCryptoFwkCtx()
101 context->blob = nullptr; in FreeCryptoFwkCtx()
255 CfBlob *blob = reinterpret_cast<CfBlob *>(array->data + i); in GenerateCrlEntryArray() local
256 HcfX509CrlEntry *entry = reinterpret_cast<HcfX509CrlEntry *>(blob->data); in GenerateCrlEntryArray()
434 CfBlob *blob = reinterpret_cast<CfBlob *>(CfMalloc(sizeof(CfBlob), 0)); in GetIssuerDN() local
435 if (blob == nullptr) { in GetIssuerDN()
439 CfResult ret = x509Crl->getIssuerName(x509Crl, blob); in GetIssuerDN()
443 CfFree(blob); in GetIssuerDN()
[all …]
/base/security/huks/test/unittest/huks_common_test/include/
Dhks_aes_cipher_part_test_c.h28 .blob = { \
38 .blob = { \
52 .blob = { \
66 .blob = { \
80 .blob = { \
94 .blob = { \
108 .blob = { \
122 .blob = { \
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/include/
Dhks_test_mem.h38 #define HKS_FREE_BLOB(blob) do { \ argument
39 if ((blob).data != NULL) { \
40 HksTestFree((blob).data); \
41 (blob).data = NULL; \
43 (blob).size = 0; \
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_mem.h39 #define CM_FREE_BLOB(blob) do { \ argument
40 if ((blob).data != NULL) { \
41 CMFree((blob).data); \
42 (blob).data = NULL; \
44 (blob).size = 0; \
/base/security/certificate_framework/frameworks/common/v1.0/inc/
Dcf_memory.h40 #define CF_FREE_BLOB(blob) do { \ argument
41 if ((blob).data != NULL) { \
42 CfFree((blob).data); \
43 (blob).data = NULL; \
45 (blob).size = 0; \
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/crypto_engine_test/src/
Dhks_openssl_engine_test.cpp75 HksBlob blob = { variable
83 ret = HksCryptoHalGetPubKey(&blob, nullptr);
86 ret = HksCryptoHalGetPubKey(&blob, &blob);
99 HksBlob blob = { variable
107 ret = HksCryptoHalHmacFinal(&blob, nullptr, nullptr);
111 ret = HksCryptoHalHmacFinal(&blob, &ctx, nullptr);
115 ret = HksCryptoHalHmacFinal(&blob, &ctxTwo, nullptr);

12345678910>>...17