Home
last modified time | relevance | path

Searched refs:imgLen (Results 1 - 8 of 8) sorted by relevance

/base/update/updater/services/ptable_parse/
H A Demmc_ptable.cpp228 int32_t imgLen = GPT_PARTITION_SIZE; in ReadEmmcGptImageToRam() local
229 auto buf = std::make_unique<uint8_t[]>(imgLen); in ReadEmmcGptImageToRam()
236 if (!MemReadWithOffset(emmcNode, 0, buffer, imgLen)) { in ReadEmmcGptImageToRam()
237 LOG(ERROR) << "read " << imgLen << " bytes from emmcNode " << emmcNode << " failed!"; in ReadEmmcGptImageToRam()
251 if (memcpy_s(emmcPtnDataInfo_.data, GPT_PARTITION_SIZE, buffer, imgLen) != EOK) { in ReadEmmcGptImageToRam()
258 return EmmcReadGpt(ptableData, imgLen); in ReadEmmcGptImageToRam()
H A Dufs_ptable.cpp336 bool UfsPtable::LoadPartitionInfoFromLun(const uint32_t lunIndex, const uint32_t imgLen) in LoadPartitionInfoFromLun() argument
338 if (imgLen == 0 || lunIndex < 0 || lunIndex > deviceLunNum_) { in LoadPartitionInfoFromLun()
339 LOG(ERROR) << "imgLen or lunIndex is invaild " << imgLen << " " << lunIndex; in LoadPartitionInfoFromLun()
344 uint8_t *buffer = new(std::nothrow) uint8_t[imgLen](); in LoadPartitionInfoFromLun()
349 if (!MemReadWithOffset(ufsNode, 0, buffer, imgLen)) { in LoadPartitionInfoFromLun()
350 LOG(ERROR) << "read " << imgLen << " bytes from ufsNode " << ufsNode << " failed!"; in LoadPartitionInfoFromLun()
357 newLunPtnDataInfo.lunSize = imgLen; in LoadPartitionInfoFromLun()
358 newLunPtnDataInfo.writeDataLen = imgLen; in LoadPartitionInfoFromLun()
360 if (memcpy_s(newLunPtnDataInfo.data, TMP_DATA_SIZE, buffer, imgLen) ! in LoadPartitionInfoFromLun()
[all...]
H A Dufs_ptable.h75 bool LoadPartitionInfoFromLun(const uint32_t lunIndex, const uint32_t imgLen);
H A Dptable.cpp240 bool Ptable::CheckProtectiveMbr(const uint8_t *gptImage, const uint32_t imgLen) in CheckProtectiveMbr() argument
242 if (!VerifyMbrMagicNum(gptImage, imgLen)) { in CheckProtectiveMbr()
251 if (MBR_GPT_ENTRY + i * MBR_GPT_ENTRY_SIZE + GPT_TYPE_SIGN_OFFSET >= imgLen) { in CheckProtectiveMbr()
H A Dptable.h167 bool CheckProtectiveMbr(const uint8_t *gptImage, const uint32_t imgLen);
/base/update/sys_installer_lite/frameworks/source/verify/
H A Dhota_verify.h37 int32 HotaSignVerify(uint8 *image, uint32 imgLen, uint8 *imageSign, uint32 signLen);
H A Dhota_verify.c132 int32 HotaSignVerify(uint8 *image, uint32 imgLen, uint8 *imageSign, uint32 signLen) in HotaSignVerify() argument
140 if (HotaCalcImageHash(image, imgLen, imageHashLocal, HASH_LENGTH) != OHOS_SUCCESS) { in HotaSignVerify()
/base/tee/tee_client/frameworks/libteec_vendor/
H A Dtee_client_app_load.c137 static int32_t TEEC_GetImageLenth(FILE *fp, uint32_t *imgLen) in TEEC_GetImageLenth() argument
180 *imgLen = totalImgLen; in TEEC_GetImageLenth()

Completed in 5 milliseconds