Home
last modified time | relevance | path

Searched refs:curIndex (Results 1 - 9 of 9) sorted by relevance

/base/security/huks/utils/file_iterative_reader/src/
H A Dhks_iterative_reader.c172 reader->curIndex = 0; in HksInitFileIterativeReader()
188 if (reader->curIndex == reader->fileLists->occu) { in HksReadFileWithIterativeReader()
194 uint32_t size = HksFileSize(reader->fileLists->infos[reader->curIndex].path, in HksReadFileWithIterativeReader()
195 reader->fileLists->infos[reader->curIndex].fileName); in HksReadFileWithIterativeReader()
207 alias->data = (uint8_t *)HksMalloc(strlen(reader->fileLists->infos[reader->curIndex].fileName) + 1); in HksReadFileWithIterativeReader()
213 alias->size = strlen(reader->fileLists->infos[reader->curIndex].fileName) + 1; in HksReadFileWithIterativeReader()
214 (void)memcpy_s(alias->data, strlen(reader->fileLists->infos[reader->curIndex].fileName), in HksReadFileWithIterativeReader()
215 reader->fileLists->infos[reader->curIndex].fileName, in HksReadFileWithIterativeReader()
216 strlen(reader->fileLists->infos[reader->curIndex].fileName)); in HksReadFileWithIterativeReader()
217 path->data = (uint8_t *)HksMalloc(strlen(reader->fileLists->infos[reader->curIndex] in HksReadFileWithIterativeReader()
[all...]
/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/
H A Djit_code_signer_single.cpp61 int curIndex = 0; in PatchInstruction() local
62 if (!ConvertPatchOffsetToIndex(offset, curIndex)) { in PatchInstruction()
66 uint32_t signature = ctx_.SignSingle(insn, curIndex); in PatchInstruction()
67 signTable_[curIndex] = signature; in PatchInstruction()
H A Djit_code_signer_base.cpp114 bool JitCodeSignerBase::ConvertPatchOffsetToIndex(const int offset, int &curIndex) in ConvertPatchOffsetToIndex() argument
119 curIndex = GetIndexFromOffset(offset); in ConvertPatchOffsetToIndex()
120 if (static_cast<size_t>(curIndex) >= signTable_.size()) { in ConvertPatchOffsetToIndex()
122 curIndex, signTable_.size()); in ConvertPatchOffsetToIndex()
H A Djit_code_signer_hybrid.cpp85 int curIndex = 0; in PatchInstruction() local
86 if (!ConvertPatchOffsetToIndex(offset, curIndex)) { in PatchInstruction()
90 uint32_t signature = ctx_.SignSingle(insn, curIndex); in PatchInstruction()
91 signTable_[curIndex] = signature; in PatchInstruction()
/base/security/huks/utils/file_iterative_reader/include/
H A Dhks_iterative_reader.h38 uint32_t curIndex; member
/base/security/certificate_manager/interfaces/kits/napi/src/
H A Dcm_napi_sign_verify.cpp401 size_t curIndex, size_t maxIndex) in ProcessFinishTwoParam()
403 curIndex++; in ProcessFinishTwoParam()
404 if (curIndex >= maxIndex) { in ProcessFinishTwoParam()
413 int32_t ret = CheckIsCallback(env, argv[curIndex], isFunc); in ProcessFinishTwoParam()
427 ret = GetCallback(env, argv[curIndex], context->callback); in ProcessFinishTwoParam()
439 result = GetBlob(env, argv[curIndex], context->signature); in ProcessFinishTwoParam()
450 size_t curIndex, size_t maxIndex) in ProcessFinishThreeParam()
455 curIndex++; in ProcessFinishThreeParam()
456 if (curIndex >= maxIndex) { in ProcessFinishThreeParam()
460 napi_value result = GetBlob(env, argv[curIndex], contex in ProcessFinishThreeParam()
400 ProcessFinishTwoParam(napi_env env, napi_value *argv, SignVerifyAsyncContext context, size_t curIndex, size_t maxIndex) ProcessFinishTwoParam() argument
449 ProcessFinishThreeParam(napi_env env, napi_value *argv, SignVerifyAsyncContext context, size_t curIndex, size_t maxIndex) ProcessFinishThreeParam() argument
[all...]
/base/security/code_signature/interfaces/innerkits/jit_code_sign/include/
H A Djit_code_signer_base.h54 bool ConvertPatchOffsetToIndex(const int offset, int &curIndex);
/base/update/updater/services/flow_update/update_bin/
H A Dbin_flow_update.h38 uint32_t curIndex = 0; member
/base/security/security_guard/services/data_collect/sa/
H A Ddata_collect_manager_service.cpp261 size_t curIndex = 0; in PushDataCollectTask()
262 size_t lastIndex = curIndex + MAX_DISTRIBUTE_LENS; in PushDataCollectTask()
268 dispatchVec.assign(events.begin() + curIndex, events.begin() + lastIndex); in PushDataCollectTask()
272 curIndex = lastIndex; in PushDataCollectTask()
273 lastIndex = curIndex + MAX_DISTRIBUTE_LENS; in PushDataCollectTask()
277 dispatchVec.assign(events.begin() + curIndex, events.end()); in PushDataCollectTask()

Completed in 6 milliseconds