Searched refs:Instr (Results 1 – 9 of 9) sorted by relevance
/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/include/ |
H A D | jit_code_signer_base.h | 26 using Instr = uint32_t; variable 42 virtual void SignInstruction(Instr insn) = 0; 44 virtual int32_t PatchInstruction(int offset, Instr insn) = 0; 45 virtual int32_t ValidateCodeCopy(Instr *jitMemory, Byte *jitBuffer, int size) = 0; 49 int32_t PatchInstruction(Byte *jitBuffer, Instr insn); 55 int32_t CheckDataCopy(Instr *jitMemory, Byte *jitBuffer, int size);
|
H A D | jit_code_signer_hybrid.h | 32 void SignInstruction(Instr insn); 34 int32_t PatchInstruction(int offset, Instr insn); 35 int32_t ValidateCodeCopy(Instr *jitMemory, Byte *jitBuffer, int size); 37 int32_t ValidateSubCode(Instr *jitMemory, PACSignCtx &verifyCtx,
|
H A D | jit_code_signer_single.h | 32 void SignInstruction(Instr insn); 34 int32_t PatchInstruction(int offset, Instr insn); 35 int32_t ValidateCodeCopy(Instr *jitMemory, Byte *jitBuffer, int size);
|
H A D | jit_buffer_integrity.h | 79 static inline int32_t AppendInstruction(JitCodeSignerBase *signer, Instr instr) in AppendInstruction() 118 static inline int32_t PatchInstruction(JitCodeSignerBase *signer, int offset, Instr instr) in PatchInstruction() 132 void *address, Instr insn) in PatchInstruction() 217 ret = signer->ValidateCodeCopy(reinterpret_cast<Instr *>(jitMemory), in CopyToJitCode()
|
/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/ |
H A D | jit_code_signer_base.cpp | 29 inline static Instr GetOneInstrForQueue(std::queue<Byte> &queue) in GetOneInstrForQueue() 31 Instr insn = 0; in GetOneInstrForQueue() 54 auto insnPtr = reinterpret_cast<const Instr *const>(data); in SignData() 72 Instr insn = GetOneInstrForQueue(willSign_); in SignData() 79 int32_t JitCodeSignerBase::PatchInstruction(Byte *buffer, Instr insn) in PatchInstruction() 95 auto insnPtr = reinterpret_cast<const Instr *const>(data); in PatchData() 128 int32_t JitCodeSignerBase::CheckDataCopy(Instr *jitMemory, Byte *tmpBuffer, int size) in CheckDataCopy()
|
H A D | jit_code_signer_hybrid.cpp | 45 void JitCodeSignerHybrid::SignInstruction(Instr insn) in SignInstruction() 75 int32_t JitCodeSignerHybrid::PatchInstruction(int offset, Instr insn) in PatchInstruction() 95 int32_t JitCodeSignerHybrid::ValidateSubCode(Instr *jitMemory, PACSignCtx &verifyCtx, in ValidateSubCode() 107 auto insnPtr = reinterpret_cast<const Instr *>(jitBuffer + pos); in ValidateSubCode() 131 Instr *jitMemory, Byte *tmpBuffer, int size) in ValidateCodeCopy() 147 Instr insn = *reinterpret_cast<const Instr *>(tmpBuffer_ + skippedOffset_[i]); in ValidateCodeCopy()
|
H A D | jit_code_signer_single.cpp | 40 void JitCodeSignerSingle::SignInstruction(Instr insn) in SignInstruction() 56 int32_t JitCodeSignerSingle::PatchInstruction(int offset, Instr insn) in PatchInstruction() 71 int32_t JitCodeSignerSingle::ValidateCodeCopy(Instr *jitMemory, in ValidateCodeCopy() 83 Instr insn = *reinterpret_cast<const Instr *>(tmpBuffer_ + offset); in ValidateCodeCopy()
|
/ohos5.0/base/security/code_signature/ |
H A D | README_zh.md | 57 | int32_t AppendInstruction(JitCodeSignerBase *signer, Instr instr); | 对添加到临时Buffer的指令签名 | 60 | int32_t PatchInstruction(JitCodeSignerBase *signer, int offset, Instr instr); | 更新缓冲区的偏移处指令签名 | 61 | int32_t PatchInstruction(JitCodeSignerBase *signer, void *address, Instr insn); | 更新对应地址指令签名 |
|
/ohos5.0/base/security/code_signature/test/unittest/ |
H A D | jit_code_sign_test.cpp | 42 static Instr g_testInstructionSet[] = { 50 static Instr g_afterPatchInstructionSet[] = { 58 static Instr g_testPatchInstructionSet[] = { 582 EXPECT_EQ(signer->ValidateCodeCopy(reinterpret_cast<Instr *>(g_jitMemory), 629 EXPECT_EQ(signer->ValidateCodeCopy(reinterpret_cast<Instr *>(tmpMemory),
|