/base/security/huks/utils/file_iterative_reader/src/ |
H A D | hks_iterative_reader.c | 172 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 D | jit_code_signer_single.cpp | 61 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 D | jit_code_signer_base.cpp | 114 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 D | jit_code_signer_hybrid.cpp | 85 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 D | hks_iterative_reader.h | 38 uint32_t curIndex; member
|
/base/security/certificate_manager/interfaces/kits/napi/src/ |
H A D | cm_napi_sign_verify.cpp | 401 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 D | jit_code_signer_base.h | 54 bool ConvertPatchOffsetToIndex(const int offset, int &curIndex);
|
/base/update/updater/services/flow_update/update_bin/ |
H A D | bin_flow_update.h | 38 uint32_t curIndex = 0; member
|
/base/security/security_guard/services/data_collect/sa/ |
H A D | data_collect_manager_service.cpp | 261 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()
|