Home
last modified time | relevance | path

Searched refs:blockSize (Results 1 – 10 of 10) 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.cpp65 {BLOCK_SIZE_LABEL, &ptableData_.blockSize}, in ParsePtableDataNode()
360 const uint32_t blockSize, const GPTHeaderInfo& gptHeaderInfo) in PartitionCheckGptHeader() argument
367 uint8_t *buffer = new(std::nothrow) uint8_t[blockSize](); in PartitionCheckGptHeader()
372 if (memcpy_s(buffer, blockSize, gptImage + blockSize, blockSize) != EOK) { in PartitionCheckGptHeader()
378 if (!CheckGptHeader(buffer, blockSize, lbaNum, gptHeaderInfo)) { in PartitionCheckGptHeader()
388 uint32_t crcVal = CalculateCrc32(gptImage + partition0 * blockSize, in PartitionCheckGptHeader()
Dptable.h131 uint32_t blockSize {};
149 const uint32_t blockSize, const GPTHeaderInfo& gptHeaderInfo);
/base/update/updater/services/diffpatch/bzip2/
Dlz4_adapter.cpp67 size_t blockSize = LZ4_BLOCK_SIZE(blockSizeID_); in Open() local
68 blockSize = (blockSize > LZ4B_BLOCK_SIZE) ? LZ4B_BLOCK_SIZE : blockSize; in Open()
69 inData_.resize(blockSize); in Open()
70 size_t outBuffSize = LZ4F_compressBound(blockSize, &preferences); in Open()
80 blockSize, LZ4_BLOCK_SIZE(blockSizeID_), outBuffSize); in Open()
112 size_t blockSize = LZ4_BLOCK_SIZE(blockSizeID_); in WriteData() local
139 size_t length = (blockSize <= remainLen) ? blockSize : remainLen; in WriteData()
212 size_t blockSize = LZ4_BLOCK_SIZE(blockSizeID_); in Open() local
213 blockSize = (blockSize > LZ4B_BLOCK_SIZE) ? LZ4B_BLOCK_SIZE : blockSize; in Open()
214 inData_.resize(blockSize); in Open()
[all …]
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_lz4.cpp64 size_t blockSize = static_cast<size_t>(GetBlockSizeFromBlockId(blockSizeID_)); in Pack() local
65 blockSize = (blockSize > LZ4B_BLOCK_SIZE) ? LZ4B_BLOCK_SIZE : blockSize; in Pack()
66 PkgBuffer inBuffer = {blockSize}; in Pack()
67 PkgBuffer outBuffer = {LZ4_compressBound(blockSize)}; in Pack()
73 … static_cast<int32_t>(blockIndependence_), static_cast<int32_t>(contentChecksumFlag_), blockSize); in Pack()
135 uint32_t blockSize = ReadLE32(inBuffer.buffer); in Unpack() local
136 PKG_CHECK(!(blockSize > static_cast<uint32_t>(inBuffSize)), break, in Unpack()
137 "Fail to get block size %u %d", blockSize, inBuffSize); in Unpack()
141 inBuffer.length = blockSize; in Unpack()
170 size_t blockSize = static_cast<size_t>(GetBlockSizeFromBlockId(blockSizeID_)); in GetPackParam() local
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_aes.c1186 static int32_t AesEcbNoPaddingData(mbedtls_cipher_context_t *ecbNoPadingctx, size_t blockSize, in AesEcbNoPaddingData() argument
1191 uint8_t *tmpMessage = (uint8_t *)HksMalloc(blockSize); in AesEcbNoPaddingData()
1194 if (message->size <= blockSize) { in AesEcbNoPaddingData()
1195 (void)memset_s(tmpMessage, blockSize, 0, blockSize); in AesEcbNoPaddingData()
1197 … ret = mbedtls_cipher_update(ecbNoPadingctx, tmpMessage, blockSize, cipherText->data, olenTotal); in AesEcbNoPaddingData()
1206 (void)memset_s(tmpMessage, blockSize, 0, blockSize); in AesEcbNoPaddingData()
1207 … uint32_t tmpSize = (message->size - point) >= blockSize ? blockSize : (message->size - point); in AesEcbNoPaddingData()
1208 if (memcpy_s(tmpMessage, blockSize, message->data + point, tmpSize)) { in AesEcbNoPaddingData()
1221 point += blockSize; in AesEcbNoPaddingData()
1244 size_t blockSize = mbedtls_cipher_get_block_size(ecbNoPadingctx); in GetAesEcbNoPaddingCtx() local
[all …]
/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()
320 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/startup/init/interfaces/innerkits/fs_manager/
Dfstab_mount.c110 const unsigned int blockSize = 4096; in DoFormat() local
111 …if (snprintf_s(blockSizeBuffer, BLOCK_SIZE_BUFFER, BLOCK_SIZE_BUFFER - 1, "%u", blockSize) == -1) { in DoFormat()