| /base/update/updater/services/diffpatch/patch/ |
| D | image_patch.cpp | 33 size_t offset = startOffset; in ApplyImagePatch() local 34 if (offset + PATCH_NORMAL_MIN_HEADER_LEN > param.patchSize) { in ApplyImagePatch() 39 size_t srcStart = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch() 40 offset += sizeof(int64_t); in ApplyImagePatch() 41 size_t srcLen = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch() 42 offset += sizeof(int64_t); in ApplyImagePatch() 43 size_t patchOffset = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch() 44 offset += sizeof(int64_t); in ApplyImagePatch() 58 startOffset = offset; in ApplyImagePatch() 64 size_t offset = startOffset; in ApplyImagePatch() local [all …]
|
| /base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/ |
| D | hks_service_ipc_serialization.c | 124 struct HksParamSet **paramSet, uint32_t *offset) in GetKeyAndParamSetFromBuffer() argument 126 int32_t ret = GetBlobFromBuffer(keyAlias, srcData, offset); in GetKeyAndParamSetFromBuffer() 129 ret = GetParamSetFromBuffer(paramSet, srcData, offset); in GetKeyAndParamSetFromBuffer() 135 …int32_t MallocBlobFromBuffer(const struct HksBlob *srcData, struct HksBlob *blob, uint32_t *offset) in MallocBlobFromBuffer() argument 138 int32_t ret = GetUint32FromBuffer(&blobSize, srcData, offset); in MallocBlobFromBuffer() 154 …cParamSetFromBuffer(const struct HksBlob *srcData, struct HksParamSet **paramSet, uint32_t *offset) in MallocParamSetFromBuffer() argument 157 int32_t ret = GetUint32FromBuffer(¶mSetOutSize, srcData, offset); in MallocParamSetFromBuffer() 175 uint32_t offset = 0; in HksGenerateKeyUnpack() local 176 int32_t ret = GetKeyAndParamSetFromBuffer(srcData, keyAlias, paramSetIn, &offset); in HksGenerateKeyUnpack() 180 ret = GetUint32FromBuffer(&keyOutSize, srcData, &offset); in HksGenerateKeyUnpack() [all …]
|
| /base/tee/tee_client/services/authentication/ |
| D | tee_auth_system.cpp | 83 uint32_t offset = 0; in FillEccHapCaInfo() local 84 *((uint32_t *)(caInfo->certs + offset)) = packageName.length(); in FillEccHapCaInfo() 85 offset += sizeof(uint32_t); in FillEccHapCaInfo() 86 packageName.copy((char *)caInfo->certs + offset, packageName.length(), 0); in FillEccHapCaInfo() 87 offset += packageName.length(); in FillEccHapCaInfo() 90 *((uint32_t *)(caInfo->certs + offset)) = pubKeyLen + sizeof(uint32_t) * BASE_NUM_TWO; in FillEccHapCaInfo() 91 offset += sizeof(uint32_t); in FillEccHapCaInfo() 94 *((uint32_t *)(caInfo->certs + offset)) = pubKeyLen / BASE_NUM_TWO; in FillEccHapCaInfo() 95 offset += sizeof(uint32_t); in FillEccHapCaInfo() 97 if (memcpy_s(caInfo->certs + offset, sizeof(caInfo->certs) - offset, in FillEccHapCaInfo() [all …]
|
| /base/telephony/core_service/services/sim/src/ |
| D | sim_utils.cpp | 143 std::string SIMUtils::BcdPlmnConvertToString(const std::string &data, int offset) in BcdPlmnConvertToString() argument 146 if (static_cast<int>(data.size()) >= (offset + MCCMNC_LEN) && data.at(offset) != 'F') { in BcdPlmnConvertToString() 147 plmn.push_back(data[offset + BCD_PLMN_MCC1]); in BcdPlmnConvertToString() 148 plmn.push_back(data[offset + BCD_PLMN_MCC2]); in BcdPlmnConvertToString() 149 plmn.push_back(data[offset + BCD_PLMN_MCC3]); in BcdPlmnConvertToString() 150 plmn.push_back(data[offset + BCD_PLMN_MNC1]); in BcdPlmnConvertToString() 151 plmn.push_back(data[offset + BCD_PLMN_MNC2]); in BcdPlmnConvertToString() 152 if (data.at(offset + BCD_PLMN_MNC3) != 'F') { in BcdPlmnConvertToString() 153 plmn.push_back(data[offset + BCD_PLMN_MNC3]); in BcdPlmnConvertToString() 192 std::shared_ptr<unsigned char> array, int offset, int length, int offPos) in DiallingNumberStringFieldConvertToString() argument [all …]
|
| /base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/ |
| D | hks_client_ipc_serialization.c | 127 uint32_t offset = 0; in HksGenerateKeyPack() local 128 int32_t ret = CopyBlobToBuffer(keyAlias, destData, &offset); in HksGenerateKeyPack() 131 ret = CopyParamSetToBuffer(paramSetIn, destData, &offset); in HksGenerateKeyPack() 133 return CopyUint32ToBuffer(keyOut->size, destData, &offset); in HksGenerateKeyPack() 139 uint32_t offset = 0; in HksImportKeyPack() local 140 int32_t ret = CopyBlobToBuffer(keyAlias, destData, &offset); in HksImportKeyPack() 143 ret = CopyParamSetToBuffer(paramSet, destData, &offset); in HksImportKeyPack() 145 return CopyBlobToBuffer(key, destData, &offset); in HksImportKeyPack() 151 uint32_t offset = 0; in HksImportWrappedKeyPack() local 152 int32_t ret = CopyBlobToBuffer(keyAlias, destData, &offset); in HksImportWrappedKeyPack() [all …]
|
| /base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
| D | zip_output.cpp | 79 if ((srcBuffer->offset + size) > MAX_COMPRESS_BUFFER_SIZE) { in Execute() 90 if (memcpy_s(srcBuffer->content + srcBuffer->offset, in Execute() 91 MAX_COMPRESS_BUFFER_SIZE - srcBuffer->offset, content, content_size) != EOK) { in Execute() 95 srcBuffer->offset = srcBuffer->offset + content_size; in Execute() 96 srcBuffer->content[srcBuffer->offset] = '\n'; in Execute() 97 srcBuffer->offset = srcBuffer->offset + 1; in Execute() 115 if (srcBuffer->offset > 0) { in CompressAndWriteToFd() 118 if (write(fd_, destBuffer->content, destBuffer->offset) < 0) { in CompressAndWriteToFd() 147 if ((srcBuffer->offset + remain_size) > MAX_COMPRESS_BUFFER_SIZE) { in CompressBigLine() 148 process_size = MAX_COMPRESS_BUFFER_SIZE - srcBuffer->offset; in CompressBigLine() [all …]
|
| /base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
| D | app_centraldirectory.c | 32 void HapPutByte(const HapBuf *hapBuffer, int32_t offset, char value) in HapPutByte() argument 37 if ((offset >= 0) && (hapBuffer->len - offset >= (int)(sizeof(value)))) { in HapPutByte() 38 *(char *)((char *)hapBuffer->buffer + offset) = value; in HapPutByte() 43 void HapPutData(const HapBuf *hapBuffer, int32_t offset, const unsigned char *data, int32_t len) in HapPutData() argument 48 if ((data != NULL) && (offset >= 0) && len > 0 && ((hapBuffer->len - offset) >= len)) { in HapPutData() 49 …if (memcpy_s(((unsigned char *)hapBuffer->buffer + offset), (hapBuffer->len - offset), data, len) … in HapPutData() 55 void HapSetInt32(const HapBuf *buffer, int32_t offset, int32_t value) in HapSetInt32() argument 64 if ((offset >= 0) && ((buffer->len - offset) >= (int)(sizeof(value)))) { in HapSetInt32() 65 HapPutInt32((unsigned char *)buffer->buffer + offset, buffer->len - offset, (int)(value)); in HapSetInt32() 168 int32_t ReadFileFullyFromOffset(const HapBuf *buffer, int32_t offset, const FileRead *file) in ReadFileFullyFromOffset() argument [all …]
|
| /base/security/certificate_manager/test/fuzz_test/fuzz_test_common/src/ |
| D | cm_fuzz_test_common.cpp | 22 bool GetUintFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, uint32_t *outVal) in GetUintFromBuffer() argument 28 (void)memcpy_s(outVal, sizeof(uint32_t), srcData + *offset, sizeof(uint32_t)); in GetUintFromBuffer() 30 *offset += sizeof(uint32_t); in GetUintFromBuffer() 35 bool GetCmBlobFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, struct CmBlob *outB… in GetCmBlobFromBuffer() argument 37 if (GetUintFromBuffer(srcData, remSize, offset, &(outBlob->size)) != true) { in GetCmBlobFromBuffer() 44 outBlob->data = srcData + *offset; in GetCmBlobFromBuffer() 46 *offset += outBlob->size; in GetCmBlobFromBuffer() 51 bool GetCertListFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, struct CertList *… in GetCertListFromBuffer() argument 53 if (GetUintFromBuffer(srcData, remSize, offset, &(outList->certsCount)) != true) { in GetCertListFromBuffer() 60 outList->certAbstract = reinterpret_cast<struct CertAbstract *>(srcData + *offset); in GetCertListFromBuffer() [all …]
|
| /base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
| D | global_utils.c | 52 static int32_t GetIdItem(int32_t file, uint32_t offset, IdItem *idItem); 56 static int32_t GetIdHeaderByOffset(int32_t file, uint32_t offset, IdHeader *idHeader); 114 uint8_t offset = 0; in ConvertUint8ArrayToUint32() local 117 value += (array[i] << offset); in ConvertUint8ArrayToUint32() 118 offset += OFFSET_VALUE_STEP; in ConvertUint8ArrayToUint32() 129 uint32_t offset = 0; in GetValueFromLocale() local 133 value += (((uint8_t)tolower(locale[i])) << offset); in GetValueFromLocale() 134 offset += OFFSET_VALUE_STEP; in GetValueFromLocale() 148 return keys[i].offset; in FindOffsetByLanguage() 181 uint32_t offset = INVALID_OFFSET; in FindOffsetByLangWithScriptOrRegion() local [all …]
|
| /base/update/updater/services/package/pkg_package/ |
| D | pkg_gzipfile.cpp | 65 void GZipFileEntry::GetUpGradeCompInfo(size_t &offset, PkgBuffer &buffer) in GetUpGradeCompInfo() argument 72 offset += sizeof(GZipHeader); in GetUpGradeCompInfo() 76 WriteLE16(buffer.buffer + offset, EXTRA_FIELD_LEN); in GetUpGradeCompInfo() 77 offset += sizeof(uint16_t) + EXTRA_FIELD_LEN; in GetUpGradeCompInfo() 84 … fileInfo_.fileInfo.identity, {buffer.buffer + offset, buffer.length - offset}, fileNameLen); in GetUpGradeCompInfo() 85 offset += fileNameLen; in GetUpGradeCompInfo() 86 buffer.buffer[offset] = 0; in GetUpGradeCompInfo() 87 offset += 1; in GetUpGradeCompInfo() 94 … fileInfo_.fileInfo.identity, {buffer.buffer + offset, buffer.length - offset}, fileNameLen); in GetUpGradeCompInfo() 95 offset += fileNameLen; in GetUpGradeCompInfo() [all …]
|
| /base/global/resource_management/frameworks/resmgr/src/ |
| D | raw_file_manager.cpp | 64 int64_t offset; member 65 explicit ActualOffset() : offset(0) {} in ActualOffset() 70 int64_t offset; member 77 explicit RawFile(const std::string &path) : filePath(path), offset(0), length(0), in RawFile() 278 int ret = memcpy_s(buf, length, rawFile->buffer + rawFile->actualOffset->offset, length); in OH_ResourceManager_ReadRawFile() 283 rawFile->actualOffset->offset += length; in OH_ResourceManager_ReadRawFile() 290 int OH_ResourceManager_SeekRawFile(const RawFile *rawFile, long offset, int whence) in OH_ResourceManager_SeekRawFile() argument 292 if (rawFile == nullptr || rawFile->actualOffset == nullptr || abs(offset) > rawFile->length) { in OH_ResourceManager_SeekRawFile() 300 rawFile->actualOffset->offset = offset; in OH_ResourceManager_SeekRawFile() 304 rawFile->actualOffset->offset = rawFile->actualOffset->offset + offset; in OH_ResourceManager_SeekRawFile() [all …]
|
| /base/security/appverify/interfaces/innerkits/appverify/src/common/ |
| D | random_access_file.cpp | 81 long long RandomAccessFile::DoMMap(int32_t bufCapacity, long long offset, MmapInfo& mmapInfo) in DoMMap() argument 91 if (offset < 0 || offset > fileLength - bufCapacity) { in DoMMap() 94 mmapInfo.mmapPosition = (offset / memoryPageSize) * memoryPageSize; in DoMMap() 95 mmapInfo.readMoreLen = static_cast<int>(offset - mmapInfo.mmapPosition); in DoMMap() 106 long long RandomAccessFile::ReadFileFullyFromOffset(char buf[], long long offset, int32_t bufCapaci… in ReadFileFullyFromOffset() argument 113 long long ret = DoMMap(bufCapacity, offset, mmapInfo); in ReadFileFullyFromOffset() 127 long long RandomAccessFile::ReadFileFullyFromOffset(HapByteBuffer& buffer, long long offset) in ReadFileFullyFromOffset() argument 135 long long ret = DoMMap(bufCapacity, offset, mmapInfo); in ReadFileFullyFromOffset() 146 int32_t chunkSize, long long offset) in ReadFileFromOffsetAndDigestUpdate() argument 149 long long ret = DoMMap(chunkSize, offset, mmapInfo); in ReadFileFromOffsetAndDigestUpdate()
|
| /base/startup/init/services/param/linux/ |
| D | param_message.c | 49 uint32_t offset = *start; in FillParamMsgContent() local 50 PARAM_CHECK((offset + sizeof(ParamMsgContent) + length) <= bufferSize, in FillParamMsgContent() 51 return -1, "Invalid msgSize %u offset %u %d", request->msgSize, offset, type); in FillParamMsgContent() 52 ParamMsgContent *content = (ParamMsgContent *)(request->data + offset); in FillParamMsgContent() 60 offset += sizeof(ParamMsgContent) + PARAM_ALIGN(content->contentSize); in FillParamMsgContent() 61 *start = offset; in FillParamMsgContent() 84 ParamMsgContent *GetNextContent(const ParamMessage *request, uint32_t *offset) in GetNextContent() argument 87 PARAM_CHECK(offset != NULL, return NULL, "Invalid offset"); in GetNextContent() 89 if ((*offset + sizeof(ParamMessage) + sizeof(ParamMsgContent)) >= msg->msgSize) { in GetNextContent() 92 ParamMsgContent *content = (ParamMsgContent *)(msg->data + *offset); in GetNextContent() [all …]
|
| /base/hiviewdfx/faultloggerd/frameworks/unwinder/ |
| D | dfx_elf.cpp | 67 uint64_t DfxElfImpl::GetRealLoadOffset(uint64_t offset) const in GetRealLoadOffset() 71 if ((iter.second.offset & -PAGE_SIZE) == offset) { in GetRealLoadOffset() 72 return offset + (iter.second.tableVaddr - iter.second.offset); in GetRealLoadOffset() 76 return offset; in GetRealLoadOffset() 119 uint64_t offset = ehdr.e_phoff; in ReadProgramHeaders() local 121 for (size_t i = 0; i < ehdr.e_phnum; i++, offset += ehdr.e_phentsize) { in ReadProgramHeaders() 123 if (!memory_->ReadFully(offset, &phdr, sizeof(phdr))) { in ReadProgramHeaders() 135 elfLoadInfo.offset = phdr.p_offset; in ReadProgramHeaders() 155 uint64_t offset = ehdr.e_shoff; in ReadSectionHeaders() local 160 uint64_t shOffset = offset + ehdr.e_shstrndx * ehdr.e_shentsize; in ReadSectionHeaders() [all …]
|
| D | dfx_memory_file.cpp | 32 …shared_ptr<DfxMemoryFile> DfxMemoryFile::CreateFileMemory(const std::string& path, uint64_t offset) in CreateFileMemory() argument 35 if (memory->Init(path, offset)) { in CreateFileMemory() 49 bool DfxMemoryFile::Init(const std::string& file, uint64_t offset, uint64_t size) in Init() argument 61 if ((fileSize == 0) || (offset >= static_cast<uint64_t>(fileSize))) { in Init() 66 offset_ = offset & static_cast<uint64_t>ALIGN_BYTES(getpagesize()); in Init() 67 uint64_t alignedOffset = offset & ALIGN_MASK(getpagesize()); in Init() 69 offset > static_cast<uint64_t>(fileSize)) { in Init() 72 __func__, alignedOffset, offset, fileSize); in Init()
|
| /base/hiviewdfx/hilog/services/hilogd/ |
| D | log_compress.cpp | 42 void *dest = compressedBuffer.content + compressedBuffer.offset; in Compress() 43 size_t destSize = MAX_PERSISTER_BUFFER_SIZE - compressedBuffer.offset; in Compress() 44 if (memcpy_s(dest, destSize, inBuffer.content, inBuffer.offset) != 0) { in Compress() 47 compressedBuffer.offset += inBuffer.offset; in Compress() 59 uint32_t zdlen = deflateBound(&cStream, inBuffer.offset); in Compress() 69 size_t read = inBuffer.offset; in Compress() 110 if (memcpy_s(compressedBuffer.content + compressedBuffer.offset, in Compress() 111 MAX_PERSISTER_BUFFER_SIZE - compressedBuffer.offset, zdata, dst_pos) != 0) { in Compress() 114 compressedBuffer.offset += dst_pos; in Compress() 139 size_t read = inBuffer.offset; in Compress() [all …]
|
| /base/hiviewdfx/hiview/base/utility/include/ |
| D | ash_memory_utils.h | 30 uint32_t offset = 0; in WriteBulkData() local 37 if (offset + dataSize > ashSize) { in WriteBulkData() 42 if (!ashmem->WriteToAshmem(data, dataSize, offset)) { in WriteBulkData() 47 offset += dataSize; in WriteBulkData() 55 uint32_t offset = 0; in ReadBulkData() local 57 auto origin = ashmem->ReadFromAshmem(allSize[i], offset); in ReadBulkData() 62 offset += allSize[i]; in ReadBulkData()
|
| /base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
| D | dwarf_cfa_instructions.cpp | 70 int64_t offset = 0; in DecodeDwCfa() local 102 offset = (int64_t)(memory_->ReadUleb128(instPtr) * cie.codeAlignFactor); in DecodeDwCfa() 109 rsState.locs[qutIdx].val = offset; in DecodeDwCfa() 165 offset = (int64_t)memory_->ReadUleb128(instPtr); in DecodeDwCfa() 167 rsState.cfaRegOffset = (int32_t)offset; in DecodeDwCfa() 168 LOGU("DW_CFA_def_cfa: reg=%d, offset=%" PRIu64 "", (int)reg, offset); in DecodeDwCfa() 181 offset = (int64_t)(memory_->ReadSleb128(instPtr)) * cie.dataAlignFactor; in DecodeDwCfa() 187 rsState.locs[qutIdx].val = offset; in DecodeDwCfa() 191 offset = (int64_t)(memory_->ReadSleb128(instPtr)) * cie.dataAlignFactor; in DecodeDwCfa() 194 rsState.cfaRegOffset = (int32_t)offset; in DecodeDwCfa() [all …]
|
| D | dwarf_cfa.txt | 3 DW_CFA_offset 0x2 register ULEB128 offset 10 DW_CFA_offset_extended 0 0x05 ULEB128 register ULEB128 offset 17 DW_CFA_def_cfa 0 0x0c ULEB128 register ULEB128 offset 19 DW_CFA_def_cfa_offset 0 0x0e ULEB128 offset 22 DW_CFA_offset_extended_sf 0 0x11 ULEB128 register SLEB128 offset 23 DW_CFA_def_cfa_sf 0 0x12 ULEB128 register SLEB128 offset 24 DW_CFA_def_cfa_offset_sf 0 0x13 SLEB128 offset
|
| /base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/ |
| D | cm_param.c | 76 uint32_t offset = sizeof(struct CmParamSet) + sizeof(struct CmParam) * paramSet->paramsCnt; in CmFreshParamSet() local 79 if (offset > size) { in CmFreshParamSet() 84 if (CmIsAdditionOverflow(offset, paramSet->params[i].blob.size)) { in CmFreshParamSet() 89 if (isCopy && (memcpy_s((uint8_t *)paramSet + offset, size - offset, in CmFreshParamSet() 94 paramSet->params[i].blob.data = (uint8_t *)paramSet + offset; in CmFreshParamSet() 95 offset += paramSet->params[i].blob.size; in CmFreshParamSet() 99 if (paramSet->paramSetSize != offset) { in CmFreshParamSet() 110 uint32_t offset = sizeof(struct CmParamSet) + sizeof(struct CmParam) * freshParamSet->paramsCnt; in BuildParamSet() local 118 if (memcpy_s(freshParamSet, size, *paramSet, offset) != EOK) { in BuildParamSet() 179 uint32_t offset = sizeof(struct CmParamSet) + sizeof(struct CmParam) * paramSet->paramsCnt; in FreshParamSet() local [all …]
|
| /base/security/certificate_manager/test/fuzz_test/cmgetappcert_fuzzer/ |
| D | cmgetappcert_fuzzer.cpp | 33 uint32_t offset = 0; in DoSomethingInterestingWithMyAPI() local 36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCertUri)) { in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI() 52 … (void)memcpy_s(&credCert, sizeof(struct Credential), myData + offset, sizeof(struct Credential)); in DoSomethingInterestingWithMyAPI() 53 offset += sizeof(struct Credential); in DoSomethingInterestingWithMyAPI() 59 credCert.credData.data = const_cast<uint8_t *>(myData + offset); in DoSomethingInterestingWithMyAPI()
|
| /base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
| D | openssl_dsa_helper.c | 81 uint32_t offset = sizeof(struct KeyMaterialDsa); in InitDsa() local 89 x = BinToBN(key->data + offset, keyMaterial->xSize); in InitDsa() 90 offset += keyMaterial->xSize; in InitDsa() 93 y = BinToBN(key->data + offset, keyMaterial->ySize); in InitDsa() 94 offset += keyMaterial->ySize; in InitDsa() 96 p = BinToBN(key->data + offset, keyMaterial->pSize); in InitDsa() 97 offset += keyMaterial->pSize; in InitDsa() 99 q = BinToBN(key->data + offset, keyMaterial->qSize); in InitDsa() 100 offset += keyMaterial->qSize; in InitDsa() 102 g = BinToBN(key->data + offset, keyMaterial->gSize); in InitDsa() [all …]
|
| /base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
| D | hap_parser.cpp | 162 int32_t ParseString(const char *buffer, uint32_t &offset, std::string &id, bool includeTemi = true) in ParseString() argument 165 errno_t eret = memcpy_s(&strLen, sizeof(strLen), buffer + offset, 2); in ParseString() 169 offset += 2; in ParseString() 170 …std::string tmp = std::string(const_cast<char *>(buffer) + offset, includeTemi ? (strLen - 1) : st… in ParseString() 171 offset += includeTemi ? strLen : (strLen + 1); in ParseString() 183 int32_t ParseStringArray(const char *buffer, uint32_t &offset, std::vector<std::string> &values) in ParseStringArray() argument 186 errno_t eret = memcpy_s(&arrLen, sizeof(arrLen), buffer + offset, 2); in ParseStringArray() 190 offset += 2; in ParseStringArray() 192 uint32_t startOffset = offset; in ParseStringArray() 195 int32_t ret = ParseString(buffer, offset, value, false); in ParseStringArray() [all …]
|
| /base/update/packaging_tools/ |
| D | create_hashdata.py | 170 offset = 0 174 data[offset: HASH_DATA_HEADER_SIZE + offset]) 177 offset += HASH_DATA_HEADER_SIZE 181 data[offset: HASH_DATA_ADDR_SIZE + offset]) 182 …hash_data = data[HASH_DATA_ADDR_SIZE + offset:HASH_DATA_ADDR_SIZE + self.hash_digest_size + offset] 183 offset += (HASH_DATA_ADDR_SIZE + self.hash_digest_size) 205 offset = 0 207 hash_check_file_p.write(("%s\n" % (self.hashdata_list[offset][0])).encode()) 209 … str(self.hashdata_list[offset][1]), str(self.hashdata_list[offset][2]))).encode()) 210 for j in range(0, self.hashdata_list[offset][1]): [all …]
|
| /base/security/certificate_manager/test/fuzz_test/cminstallappcert_fuzzer/ |
| D | cminstallappcert_fuzzer.cpp | 35 uint32_t offset = 0; in DoSomethingInterestingWithMyAPI() local 38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCert)) { in DoSomethingInterestingWithMyAPI() 44 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCertPwd)) { in DoSomethingInterestingWithMyAPI() 50 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certAlias)) { in DoSomethingInterestingWithMyAPI() 56 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI() 62 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &keyUri)) { in DoSomethingInterestingWithMyAPI()
|