/base/security/crypto_framework/common/src/ |
D | hcf_parcel.c | 133 static uint32_t GetParcelIncreaseSize(HcParcel *parcel, uint32_t newSize) in GetParcelIncreaseSize() argument 138 if (newSize % parcel->allocUnit) { in GetParcelIncreaseSize() 139 return (newSize / parcel->allocUnit + 1) * parcel->allocUnit; in GetParcelIncreaseSize() 141 return (newSize / parcel->allocUnit) * parcel->allocUnit; in GetParcelIncreaseSize() 157 uint32_t newSize = GetParcelIncreaseSize(parcel, parcel->endPos + dataSize); in ParcelWrite() local 158 if (!ParcelIncrease(parcel, newSize)) { in ParcelWrite()
|
/base/update/updater/services/diffpatch/patch/ |
D | blocks_patch.cpp | 109 int32_t BlocksPatch::ReadHeader(int64_t &controlDataSize, int64_t &diffDataSize, int64_t &newSize) in ReadHeader() argument 129 newSize = ReadLE64(header + offset); in ReadHeader() 135 if (newSize < 0) { in ReadHeader() 185 …_t BlocksBufferPatch::ReadHeader(int64_t &controlDataSize, int64_t &diffDataSize, int64_t &newSize) in ReadHeader() argument 187 int32_t ret = BlocksPatch::ReadHeader(controlDataSize, diffDataSize, newSize); in ReadHeader() 192 PATCH_LOGI("ReadHeader controlDataSize: %ld %ld %ld", controlDataSize, diffDataSize, newSize); in ReadHeader() 193 newData_.resize(newSize); in ReadHeader()
|
D | blocks_patch.h | 37 virtual int32_t ReadHeader(int64_t &controlDataSize, int64_t &diffDataSize, int64_t &newSize); 58 int32_t ReadHeader(int64_t &controlDataSize, int64_t &diffDataSize, int64_t &newSize) override;
|
/base/security/code_signature/interfaces/innerkits/common/include/ |
D | byte_buffer.h | 79 bool Resize(uint32_t newSize) in Resize() argument 84 return Init(newSize); in Resize()
|
/base/update/updater/services/diffpatch/diff/ |
D | blocks_diff.h | 64 int64_t diffDataSize, int64_t newSize, size_t &headerLen) = 0; 96 int64_t diffDataSize, int64_t newSize, size_t &headerLen) override; 110 int64_t diffDataSize, int64_t newSize, size_t &headerLen) override;
|
D | blocks_diff.cpp | 223 int64_t diffDataSize, int64_t newSize, size_t &headerLen) in WritePatchHeader() argument 245 WriteLE64(newData, newSize); in WritePatchHeader() 251 int64_t diffDataSize, int64_t newSize, size_t &headerLen) in WritePatchHeader() argument 267 WriteLE64(buffer, newSize); in WritePatchHeader() 277 int64_t newSize = static_cast<int64_t>(newInfo.length); in ComputeOldScore() local 278 for (int64_t begin = currentOffset_ += matchLen; currentOffset_ < newSize; currentOffset_++) { in ComputeOldScore()
|
/base/security/device_auth/common_lib/impl/src/ |
D | hc_parcel.c | 288 static uint32_t GetParcelIncreaseSize(HcParcel *parcel, uint32_t newSize) in GetParcelIncreaseSize() argument 293 if (newSize % parcel->allocUnit) { in GetParcelIncreaseSize() 294 return (newSize / parcel->allocUnit + 1) * parcel->allocUnit; in GetParcelIncreaseSize() 296 return (newSize / parcel->allocUnit) * parcel->allocUnit; in GetParcelIncreaseSize() 312 uint32_t newSize = GetParcelIncreaseSize(parcel, parcel->endPos + dataSize); in ParcelWrite() local 313 if (!ParcelIncrease(parcel, newSize)) { in ParcelWrite()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_core_service_three_stage.c | 295 uint8_t *newData, uint32_t newSize) in CopyNewCachedData() argument 298 if (memcpy_s(newData, newSize, cachedBlob->data, cachedBlob->size) != EOK) { in CopyNewCachedData() 304 …if (memcpy_s(newData + cachedBlob->size, newSize - cachedBlob->size, inData->data, inData->size) !… in CopyNewCachedData() 320 uint32_t newSize = cachedBlob->size + inData->size; in GetNewCachedData() local 321 uint8_t *newData = (uint8_t *)HksMalloc(newSize); in GetNewCachedData() 324 int32_t ret = CopyNewCachedData(cachedBlob, inData, newData, newSize); in GetNewCachedData() 331 newBlob->size = newSize; in GetNewCachedData()
|