/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/include/ |
H A D | jit_buffer_integrity.h | 118 static inline int32_t PatchInstruction(JitCodeSignerBase *signer, int offset, Instr instr) in PatchInstruction() function 121 return signer->PatchInstruction(offset, instr); in PatchInstruction() 131 static inline int32_t PatchInstruction(JitCodeSignerBase *signer, in PatchInstruction() function 135 return signer->PatchInstruction(CAST_TO_BYTES(address), insn); in PatchInstruction()
|
H A D | jit_code_signer_base.h | 44 virtual int32_t PatchInstruction(int offset, Instr insn) = 0; 49 int32_t PatchInstruction(Byte *jitBuffer, Instr insn);
|
H A D | jit_code_signer_single.h | 34 int32_t PatchInstruction(int offset, Instr insn);
|
H A D | jit_code_signer_hybrid.h | 34 int32_t PatchInstruction(int offset, Instr insn);
|
/ohos5.0/base/security/code_signature/test/unittest/ |
H A D | jit_code_sign_test.cpp | 221 PatchInstruction(signer, offset, g_testPatchInstructionSet[j]); 449 PatchInstruction(signer, CAST_VOID_PTR( 478 EXPECT_EQ(PatchInstruction(signer, nullptr, INSTRUCTION_SIZE), CS_ERR_PATCH_INVALID); 481 EXPECT_EQ(PatchInstruction(signer, reinterpret_cast<Byte *>(g_afterPatchInstructionBuf), 693 EXPECT_EQ(PatchInstruction(nullptr, 0, 0), CS_ERR_NO_SIGNER); 694 EXPECT_EQ(PatchInstruction(nullptr, nullptr, 1), CS_ERR_NO_SIGNER); 728 … EXPECT_EQ(PatchInstruction(signer, INSTRUCTIONS_SET_SIZE_BYTES + 4, 1), CS_ERR_PATCH_INVALID); 730 EXPECT_EQ(PatchInstruction(signer, -INSTRUCTION_SIZE, 1), CS_ERR_PATCH_INVALID); 733 EXPECT_EQ(PatchInstruction(signer, CAST_VOID_PTR(reinterpret_cast<uintptr_t>( 736 EXPECT_EQ(PatchInstruction(signer, CAST_VOID_PTR(reinterpret_cast<uintptr_t>( [all …]
|
/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/ |
H A D | jit_code_signer_base.cpp | 79 int32_t JitCodeSignerBase::PatchInstruction(Byte *buffer, Instr insn) in PatchInstruction() function in OHOS::Security::CodeSign::JitCodeSignerBase 84 return PatchInstruction(static_cast<int>(buffer - tmpBuffer_), insn); in PatchInstruction() 97 int ret = PatchInstruction(offset + i, *insnPtr); in PatchData()
|
H A D | jit_code_signer_single.cpp | 56 int32_t JitCodeSignerSingle::PatchInstruction(int offset, Instr insn) in PatchInstruction() function in OHOS::Security::CodeSign::JitCodeSignerSingle
|
H A D | jit_code_signer_hybrid.cpp | 75 int32_t JitCodeSignerHybrid::PatchInstruction(int offset, Instr insn) in PatchInstruction() function in OHOS::Security::CodeSign::JitCodeSignerHybrid
|
/ohos5.0/base/security/code_signature/ |
H A D | README_zh.md | 60 | int32_t PatchInstruction(JitCodeSignerBase *signer, int offset, Instr instr); | 更新缓冲区的偏移处指令签名 | 61 | int32_t PatchInstruction(JitCodeSignerBase *signer, void *address, Instr insn); | 更新对应地址指令签名 |
|