Home
last modified time | relevance | path

Searched refs:blockSize (Results 1 – 16 of 16) sorted by relevance

/base/update/updater/services/ptable_parse/
Dufs_ptable.cpp61 const uint32_t lun, const uint32_t blockSize) in ParseGptHeaderByUfsLun() argument
65 if (!GetPartitionGptHeaderInfo(gptImage + blockSize, blockSize, gptHeaderInfo)) { in ParseGptHeaderByUfsLun()
71 return PartitionCheckGptHeader(gptImage, len, lunLbaNum, blockSize, gptHeaderInfo); in ParseGptHeaderByUfsLun()
75 const uint32_t lun, const uint32_t blockSize) in UfsReadGpt() argument
77 …e == nullptr || len < ptableData_.writeDeviceLunSize || lun >= MAX_LUN_NUMBERS || blockSize == 0) { in UfsReadGpt()
81 if (!ParseGptHeaderByUfsLun(gptImage, len, lun, blockSize)) { in UfsReadGpt()
86 uint32_t partEntryCnt = blockSize / PARTITION_ENTRY_SIZE; in UfsReadGpt()
87 uint32_t partition0 = GET_LLWORD_FROM_BYTE(gptImage + blockSize + PARTITION_ENTRIES_OFFSET); in UfsReadGpt()
92 data = gptImage + (partition0 + i) * blockSize; in UfsReadGpt()
124 void UfsPtable::UfsPatchGptHeader(UfsPartitionDataInfo &ptnDataInfo, const uint32_t blockSize) in UfsPatchGptHeader() argument
[all …]
Dufs_ptable.h50 …ReadGpt(const uint8_t *gptImage, const uint32_t len, const uint32_t lun, const uint32_t blockSize);
52 const uint32_t blockSize);
53 void UfsPatchGptHeader(UfsPartitionDataInfo &ptnDataInfo, const uint32_t blockSize);
55 bool ReadAndCheckMbr(const uint32_t lunIndex, const uint32_t blockSize);
Dptable.cpp80 {BLOCK_SIZE_LABEL, &ptableData_.blockSize}, in ParsePtableDataNode()
375 const uint32_t blockSize, GPTHeaderInfo& gptHeaderInfo) in PartitionCheckGptHeader() argument
382 uint8_t *buffer = new(std::nothrow) uint8_t[blockSize](); in PartitionCheckGptHeader()
387 if (memcpy_s(buffer, blockSize, gptImage + blockSize, blockSize) != EOK) { in PartitionCheckGptHeader()
393 if (!CheckGptHeader(buffer, blockSize, lbaNum, gptHeaderInfo)) { in PartitionCheckGptHeader()
403 uint32_t crcVal = CalculateCrc32(gptImage + partition0 * blockSize, in PartitionCheckGptHeader()
Dptable.h133 uint32_t blockSize {};
151 const uint32_t blockSize, GPTHeaderInfo& gptHeaderInfo);
/base/update/updater/services/diffpatch/bzip2/
Dlz4_adapter.cpp66 size_t blockSize = LZ4_BLOCK_SIZE(blockSizeID_); in Open() local
67 blockSize = (blockSize > LZ4B_BLOCK_SIZE) ? LZ4B_BLOCK_SIZE : blockSize; in Open()
68 inData_.resize(blockSize); in Open()
69 size_t outBuffSize = LZ4F_compressBound(blockSize, &preferences); in Open()
78 blockSize, LZ4_BLOCK_SIZE(blockSizeID_), outBuffSize); in Open()
113 size_t blockSize = LZ4_BLOCK_SIZE(blockSizeID_); in WriteData() local
140 size_t length = (blockSize <= remainLen) ? blockSize : remainLen; in WriteData()
213 size_t blockSize = LZ4_BLOCK_SIZE(blockSizeID_); in Open() local
214 blockSize = (blockSize > LZ4B_BLOCK_SIZE) ? LZ4B_BLOCK_SIZE : blockSize; in Open()
215 inData_.resize(blockSize); in Open()
[all …]
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_lz4.cpp118 size_t blockSize = static_cast<size_t>(GetBlockSizeFromBlockId(blockSizeID_)); in Pack() local
119 blockSize = (blockSize > LZ4B_BLOCK_SIZE) ? LZ4B_BLOCK_SIZE : blockSize; in Pack()
120 PkgBuffer inBuffer = {blockSize}; in Pack()
121 PkgBuffer outBuffer = {LZ4_compressBound(blockSize)}; in Pack()
129 … static_cast<int32_t>(blockIndependence_), static_cast<int32_t>(contentChecksumFlag_), blockSize); in Pack()
158 uint32_t blockSize = ReadLE32(inBuffer.buffer); in UnpackCalculate() local
159 if (blockSize > static_cast<uint32_t>(inBuffSize)) { in UnpackCalculate()
160 PKG_LOGE("Fail to get block size %u %d", blockSize, inBuffSize); in UnpackCalculate()
166 inBuffer.length = blockSize; in UnpackCalculate()
219 size_t blockSize = static_cast<size_t>(GetBlockSizeFromBlockId(blockSizeID_)); in GetPackParam() local
[all …]
/base/hiviewdfx/hiview/base/event_raw/decoded/
Ddecoded_event.cpp60 size_t blockSize = static_cast<size_t>(*(reinterpret_cast<int32_t*>(src))); in DecodedEvent() local
61 if (blockSize < GetValidDataMinimumByteCount() || blockSize > MAX_BLOCK_SIZE) { in DecodedEvent()
62 HiLog::Error(LABEL, "size of raw data is %{public}zu, which is invalid.", blockSize); in DecodedEvent()
65 rawData_ = new(std::nothrow) uint8_t[blockSize]; in DecodedEvent()
69 auto ret = memcpy_s(rawData_, blockSize, src, blockSize); in DecodedEvent()
268 size_t blockSize = static_cast<size_t>(*(reinterpret_cast<int32_t*>(rawData_))); in Parse() local
270 ParseHeader(blockSize); in Parse()
271 ParseCustomizedParams(blockSize); in Parse()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/
Draw_data_builder.cpp65 int32_t blockSize = 0; in Build() local
67 if (!rawData->Append(reinterpret_cast<uint8_t*>(&blockSize), sizeof(int32_t))) { in Build()
86 blockSize = static_cast<int32_t>(rawData->GetDataLength()); in Build()
87 if (!rawData->Update(reinterpret_cast<uint8_t*>(&blockSize), sizeof(int32_t), 0)) { in Build()
/base/hiviewdfx/hiview/base/event_store/include/
Dbase_def.h74 uint32_t blockSize = 0; member
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_aes.c1226 static int32_t AesEcbNoPaddingData(mbedtls_cipher_context_t *ecbNoPadingctx, size_t blockSize, in AesEcbNoPaddingData() argument
1231 uint8_t *tmpMessage = (uint8_t *)HksMalloc(blockSize); in AesEcbNoPaddingData()
1234 if (message->size <= blockSize) { in AesEcbNoPaddingData()
1235 (void)memset_s(tmpMessage, blockSize, 0, blockSize); in AesEcbNoPaddingData()
1237 … ret = mbedtls_cipher_update(ecbNoPadingctx, tmpMessage, blockSize, cipherText->data, olenTotal); in AesEcbNoPaddingData()
1246 (void)memset_s(tmpMessage, blockSize, 0, blockSize); in AesEcbNoPaddingData()
1247 … uint32_t tmpSize = (message->size - point) >= blockSize ? blockSize : (message->size - point); in AesEcbNoPaddingData()
1248 if (memcpy_s(tmpMessage, blockSize, message->data + point, tmpSize)) { in AesEcbNoPaddingData()
1261 point += blockSize; in AesEcbNoPaddingData()
1284 size_t blockSize = mbedtls_cipher_get_block_size(ecbNoPadingctx); in GetAesEcbNoPaddingCtx() local
[all …]
/base/hiviewdfx/hiview/base/event_raw/encoded/
Draw_data_builder.cpp84 int32_t blockSize = 0; in Build() local
86 if (!rawData->Append(reinterpret_cast<uint8_t*>(&blockSize), sizeof(int32_t))) { in Build()
105 blockSize = static_cast<int32_t>(rawData->GetDataLength()); in Build()
106 if (!rawData->Update(reinterpret_cast<uint8_t*>(&blockSize), sizeof(int32_t), 0)) { in Build()
/base/update/updater/services/applypatch/
Dblock_set.cpp306 …2_t BlockSet::LoadTargetBuffer(const Command &cmd, std::vector<uint8_t> &buffer, size_t &blockSize, in LoadTargetBuffer() argument
310 auto ret = LoadSourceBuffer(cmd, pos, buffer, isOverlap, blockSize); in LoadTargetBuffer()
318 if (VerifySha256(buffer, blockSize, srcHash) == 0) { in LoadTargetBuffer()
321 ret = Store::WriteDataToStore(storeBase, srcHash, buffer, blockSize * H_BLOCK_SIZE); in LoadTargetBuffer()
/base/update/updater/services/include/applypatch/
Dblock_set.h88 …int32_t LoadTargetBuffer(const Command &cmd, std::vector<uint8_t> &buffer, size_t &blockSize, size…
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
Dnapi_cert_utils.cpp553 uint32_t blockSize = sizeof(uint64_t); in ConvertBlobToWords() local
554 …uint32_t convertDataSize = ((blob.size + (blockSize - 1)) >> QUAD_WORD_ALIGN_UP) << QUAD_WORD_ALIG… in ConvertBlobToWords()
567 wordsCount = convertDataSize / blockSize; in ConvertBlobToWords()
/base/startup/init/interfaces/innerkits/fs_manager/
Dfstab_mount.c111 const unsigned int blockSize = 4096; in DoFormat() local
112 … ret = snprintf_s(blockSizeBuffer, BLOCK_SIZE_BUFFER, BLOCK_SIZE_BUFFER - 1, "%u", blockSize); in DoFormat()
/base/hiviewdfx/hiview/base/event_store/utility/writer/
Dsys_event_doc_writer.cpp155 .blockSize = HEADER_BLOCK_SIZE, in WriteHeader()