Home
last modified time | relevance | path

Searched refs:totalSize (Results 1 - 25 of 35) sorted by relevance

12

/base/hiviewdfx/hiview/framework/native/unified_collection/collector/device_client/
H A Dthread_cpu_data.cpp33 auto totalSize = sizeof(struct ucollection_thread_cpu_entry) in Init() local
35 entry_ = (struct ucollection_thread_cpu_entry *)malloc(totalSize); in Init()
39 memset_s(entry_, totalSize, 0, totalSize); in Init()
H A Dprocess_cpu_data.cpp30 unsigned int totalSize = sizeof(struct ucollection_process_cpu_entry) in Init() local
32 entry_ = (struct ucollection_process_cpu_entry *)malloc(totalSize); in Init()
36 memset_s(entry_, totalSize, 0, totalSize); in Init()
/base/security/huks/utils/crypto_adapter/
H A Dhks_client_service_adapter_common.c59 uint32_t totalSize = sizeof(struct HksPubKeyInfo) + key->size; in TranslateToInnerCurve25519Format() local
60 uint8_t *buffer = (uint8_t *)HksMalloc(totalSize); in TranslateToInnerCurve25519Format()
61 HKS_IF_NULL_LOGE_RETURN(buffer, HKS_ERROR_MALLOC_FAIL, "malloc failed! %" LOG_PUBLIC "u", totalSize) in TranslateToInnerCurve25519Format()
62 (void)memset_s(buffer, totalSize, 0, totalSize); in TranslateToInnerCurve25519Format()
70 (void)memcpy_s(buffer + offset, totalSize - offset, key->data, key->size); in TranslateToInnerCurve25519Format()
72 publicKey->size = totalSize; in TranslateToInnerCurve25519Format()
H A Dhks_client_service_adapter.c465 uint32_t totalSize = (uint32_t)nSize + (uint32_t)eSize + sizeof(struct HksPubKeyInfo); in X509PublicKeyToRsa() local
466 uint8_t *keyBuffer = (uint8_t *)HksMalloc(totalSize); in X509PublicKeyToRsa()
483 rsaPublicKey->size = totalSize; in X509PublicKeyToRsa()
517 uint32_t totalSize = xSize + ySize + sizeof(struct HksPubKeyInfo); in EcKeyToPublicKey() local
518 uint8_t *keyBuffer = (uint8_t *)HksMalloc(totalSize); in EcKeyToPublicKey()
536 eccPublicKey->size = totalSize; in EcKeyToPublicKey()
659 uint32_t totalSize = sizeof(struct KeyMaterialDsa) + ySize + pSize + qSize + gSize; in X509PublicKeyToDsa() local
660 uint8_t *keyBuffer = (uint8_t *)HksMalloc(totalSize); in X509PublicKeyToDsa()
686 dsaPublicKey->size = totalSize; in X509PublicKeyToDsa()
710 uint32_t totalSize in X509PublicKeyToDh() local
[all...]
H A Dhks_client_service_adapter_lite.c311 uint32_t totalSize = sizeof(struct HksPubKeyInfo) + nSize + eSize; in X509PublicKeyToRsa() local
312 uint8_t *keyBuffer = (uint8_t *)HksMalloc(totalSize); in X509PublicKeyToRsa()
339 rsaPublicKey->size = totalSize; in X509PublicKeyToRsa()
366 uint32_t totalSize = sizeof(struct HksPubKeyInfo) + xSize + ySize; in X509PublicKeyToEcc() local
367 uint8_t *keyBuffer = (uint8_t *)HksMalloc(totalSize); in X509PublicKeyToEcc()
401 eccPublicKey->size = totalSize; in X509PublicKeyToEcc()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
H A Dhks_crypto_ed25519.c57 uint32_t totalSize = sizeof(struct KeyMaterial25519) + pubKey->size + priKey->size; in SaveEd25519KeyMaterial() local
58 uint8_t *buffer = (uint8_t *)HksMalloc(totalSize); in SaveEd25519KeyMaterial()
69 if (memcpy_s(buffer + offset, totalSize - offset, pubKey->data, pubKey->size) != EOK) { in SaveEd25519KeyMaterial()
71 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveEd25519KeyMaterial()
77 if (memcpy_s(buffer + offset, totalSize - offset, priKey->data, priKey->size) != EOK) { in SaveEd25519KeyMaterial()
79 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveEd25519KeyMaterial()
85 keyOut->size = totalSize; in SaveEd25519KeyMaterial()
124 uint32_t totalSize in CheckEd25519Material() local
[all...]
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/
H A Dappevent_packageholder_impl.cpp90 size_t totalSize = 0; in TakeNext() local
93 if (static_cast<int>(totalSize + eventStr.size()) > takeSize_) { in TakeNext()
94 LOGI("stop to take data, totalSize=%{public}zu, takeSize=%{public}" PRIi64 "", totalSize, takeSize_); in TakeNext()
97 totalSize += eventStr.size(); in TakeNext()
111 package.size = static_cast<int>(totalSize); in TakeNext()
/base/hiviewdfx/faultloggerd/test/unittest/common/
H A Dcommon_test.cpp180 long long totalSize = 0; in HWTEST_F() local
190 totalSize += size; in HWTEST_F()
193 printf("Total file size is %lldKB\n", totalSize); in HWTEST_F()
195 EXPECT_LT(totalSize, static_cast<long long>(baseline * 1.05)); in HWTEST_F()
/base/update/updater/utils/
H A Dutils_fs.cpp80 int64_t totalSize = 0; in GetFilesFromDirectory() local
90 totalSize += GetFilesFromDirectory(fileName, files, isRecursive); in GetFilesFromDirectory()
93 totalSize += st.st_size; in GetFilesFromDirectory()
97 return totalSize; in GetFilesFromDirectory()
/base/update/updater/services/applypatch/
H A Dtransfer_manager.cpp97 size_t totalSize = transferParams_->blockCount; in CommandsParser() local
130 if (totalSize != 0 && (transferParams_->written - initBlock) > 0) { in CommandsParser()
131 UpdateProgress(initBlock, totalSize); in CommandsParser()
140 void TransferManager::UpdateProgress(size_t &initBlock, size_t totalSize) in UpdateProgress() argument
142 float p = static_cast<float>(transferParams_->written - initBlock) / totalSize\ in UpdateProgress()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_app_cert_process.c192 uint32_t totalSize = sizeof(struct HksKeyMaterial25519) + (CURVE25519_KEY_LEN_BYTES << 1); in SaveKeyMaterialCurve25519() local
193 uint8_t *buffer = (uint8_t *)CMMalloc(totalSize); in SaveKeyMaterialCurve25519()
195 CM_LOG_E("malloc size %u failed", totalSize); in SaveKeyMaterialCurve25519()
198 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveKeyMaterialCurve25519()
206 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveKeyMaterialCurve25519()
215 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveKeyMaterialCurve25519()
228 keyOut->size = totalSize; in SaveKeyMaterialCurve25519()
[all...]
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/
H A Ddcm_attest_utils.c116 uint32_t totalSize = spkiHeaderLen + info->nOrXSize + info->eOrYSize; in GetEcPublicKey() local
117 if (key->size < totalSize) { in GetEcPublicKey()
118 HKS_LOG_E("out size is too small: %" LOG_PUBLIC "u < %" LOG_PUBLIC "u\n", key->size, totalSize); in GetEcPublicKey()
121 key->size = totalSize; in GetEcPublicKey()
127 (void)memcpy_s(p, totalSize - spkiHeaderLen, publicKey, info->nOrXSize); in GetEcPublicKey()
129 (void)memcpy_s(p, totalSize - spkiHeaderLen - info->nOrXSize, publicKey + info->nOrXSize, info->eOrYSize); in GetEcPublicKey()
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/
H A Dinput_method_utils.h230 size_t totalSize = 0; in IsPrivateCommandValid() local
248 totalSize = totalSize + keySize + valueSize; in IsPrivateCommandValid()
250 if (totalSize > MAX_PRIVATE_COMMAND_SIZE) { in IsPrivateCommandValid()
251 IMSA_HILOGE("totalSize : %{public}zu", totalSize); in IsPrivateCommandValid()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_app_event_holder.cpp200 size_t totalSize = 0; in TakeNext() local
204 if (shouldTakeSize && static_cast<int>(totalSize + eventStr.size()) > takeSize_) { in TakeNext()
205 HILOG_INFO(LOG_CORE, "stop to take data, totalSize=%{public}zu, takeSize=%{public}d", in TakeNext()
206 totalSize, takeSize_); in TakeNext()
209 totalSize += eventStr.size(); in TakeNext()
225 package->size = static_cast<int>(totalSize); in TakeNext()
/base/print/print_fwk/services/print_service/src/
H A Dprint_http_request_process.cpp255 size_t totalSize = readBufMap[requestId].size(); in ProcessHttpResponse() local
256 PRINT_HILOGD("Response totalSize:%{public}lu, retryCout = %{public}d", totalSize, retryCount); in ProcessHttpResponse()
257 PrintIppOverUsbUtil::ConstructHttpResponse(&readBufMap[requestId][0], totalSize, responseData); in ProcessHttpResponse()
280 size_t totalSize = readGetAttrBufMap[requestId].size(); in ProcessHttpResponseGetAttr() local
281 PRINT_HILOGD("Response GetAttr totalSize:%{public}lu, retryCout = %{public}d", totalSize, retryCount); in ProcessHttpResponseGetAttr()
282 PrintIppOverUsbUtil::ConstructHttpResponse(&readGetAttrBufMap[requestId][0], totalSize, responseData); in ProcessHttpResponseGetAttr()
305 size_t totalSize = readSendDocBufMap[requestId].size(); in ProcessHttpResponseSendDoc() local
306 PRINT_HILOGD("Response SendDoc totalSize in ProcessHttpResponseSendDoc()
[all...]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/utils/
H A Dtrace_flow_controller.cpp131 int64_t totalSize = nowSize + traceSize; in IsLowerLimit() local
132 if (totalSize < limitSize) { in IsLowerLimit()
136 float limit = static_cast<float>(totalSize - limitSize) / limitSize; in IsLowerLimit()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
H A Dfile_util.cpp133 uint64_t totalSize = 0; in GetDirSize() local
137 totalSize += static_cast<uint64_t>(statBuf.st_size); in GetDirSize()
140 return totalSize; in GetDirSize()
/base/startup/init/interfaces/innerkits/fs_manager/erofs_overlay/
H A Derofs_mount_overlay.c210 uint64_t totalSize = GetBlockSize(dev); in GetMapperAddr() local
211 if (totalSize == 0) { in GetMapperAddr()
217 totalSize, *start, totalSize - *start, dev); in GetMapperAddr()
219 if (totalSize > *start) { in GetMapperAddr()
220 *length = totalSize - *start; in GetMapperAddr()
/base/update/sys_installer_lite/frameworks/source/updater/
H A Dhota_updater.c50 unsigned int totalSize; /* total size of this component */ member
304 g_currentDloadComp.totalSize = g_componentInfos.table[g_currentDloadComp.index - 1].length; in InitDloadNextComp()
305 g_currentDloadComp.remainSize = g_currentDloadComp.totalSize; in InitDloadNextComp()
380 g_currentDloadComp.totalSize = g_infoCompAndSignSize; in ProcessInfoCompHeader()
545 (g_currentDloadComp.offset + g_currentDloadComp.totalSize) < (tempOffset + tempBuffSize) ? in HotaDefaultWrite()
546 (g_currentDloadComp.offset + g_currentDloadComp.totalSize) : in HotaDefaultWrite()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
H A Dhks_openssl_curve25519.c33 uint32_t totalSize = sizeof(struct KeyMaterial25519) + (CURVE25519_KEY_LEN << 1); in SaveCurve25519KeyMaterial() local
34 uint8_t *buffer = (uint8_t *)HksMalloc(totalSize); in SaveCurve25519KeyMaterial()
35 HKS_IF_NULL_LOGE_RETURN(buffer, HKS_ERROR_MALLOC_FAIL, "malloc size %" LOG_PUBLIC "u failed", totalSize) in SaveCurve25519KeyMaterial()
63 keyOut->size = totalSize; in SaveCurve25519KeyMaterial()
/base/update/updater/services/include/applypatch/
H A Dtransfer_manager.h77 void UpdateProgress(size_t &initBlock, size_t totalSize);
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
H A Dhks_core_service_key_generate.c712 uint32_t totalSize = sizeof(struct HksKeyMaterial25519) + key->size; in GetCurve25519PrivateOrPairInnerFormat() local
713 uint8_t *buffer = (uint8_t *)HksMalloc(totalSize); in GetCurve25519PrivateOrPairInnerFormat()
714 HKS_IF_NULL_LOGE_RETURN(buffer, HKS_ERROR_MALLOC_FAIL, "malloc failed! %" LOG_PUBLIC "u", totalSize) in GetCurve25519PrivateOrPairInnerFormat()
716 (void)memset_s(buffer, totalSize, 0, totalSize); in GetCurve25519PrivateOrPairInnerFormat()
724 (void)memcpy_s(buffer + offset, totalSize - offset, key->data, key->size); in GetCurve25519PrivateOrPairInnerFormat()
726 outKey->size = totalSize; in GetCurve25519PrivateOrPairInnerFormat()
/base/security/code_signature/test/unittest/
H A Denable_verity_test.cpp201 size_t totalSize = 0; in ExpandFile() local
203 while (totalSize < gapSize) { in ExpandFile()
204 if (gapSize - totalSize < BUFFER_LENGTH) { in ExpandFile()
205 writeSize = gapSize - totalSize; in ExpandFile()
213 totalSize += writeSize; in ExpandFile()
/base/hiviewdfx/hiview/plugins/sysevent_source/include/
H A Dplatform_monitor.h39 uint32_t totalSize; member
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
H A Dopenssl_ecc_helper.c476 uint32_t totalSize = xSize + ySize + sizeof(struct HksPubKeyInfo); in EcKeyToPublicKey() local
477 uint8_t *keyBuffer = HksMalloc(totalSize); in EcKeyToPublicKey()
494 eccPublicKey->size = totalSize; in EcKeyToPublicKey()
495 if (memcpy_s(eccPublicKey->data, eccPublicKey->size, keyBuffer, totalSize) != 0) { in EcKeyToPublicKey()

Completed in 15 milliseconds

12