Searched refs:imgLen (Results 1 - 8 of 8) sorted by relevance
/base/update/updater/services/ptable_parse/ |
H A D | emmc_ptable.cpp | 228 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 D | ufs_ptable.cpp | 336 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 D | ufs_ptable.h | 75 bool LoadPartitionInfoFromLun(const uint32_t lunIndex, const uint32_t imgLen);
|
H A D | ptable.cpp | 240 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 D | ptable.h | 167 bool CheckProtectiveMbr(const uint8_t *gptImage, const uint32_t imgLen);
|
/base/update/sys_installer_lite/frameworks/source/verify/ |
H A D | hota_verify.h | 37 int32 HotaSignVerify(uint8 *image, uint32 imgLen, uint8 *imageSign, uint32 signLen);
|
H A D | hota_verify.c | 132 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 D | tee_client_app_load.c | 137 static int32_t TEEC_GetImageLenth(FILE *fp, uint32_t *imgLen) in TEEC_GetImageLenth() argument 180 *imgLen = totalImgLen; in TEEC_GetImageLenth()
|
Completed in 5 milliseconds