MCPcopy Create free account
hub / github.com/D7EAD/mkPIVM / x86_cipher_reset

Function x86_cipher_reset

src/codec_x86.cpp:227–236  ·  view source on GitHub ↗

reload cipher_state from VMState at cipher_extra+48

Source from the content-addressed store, hash-verified

225
226 // reload cipher_state from VMState at cipher_extra+48
227 static inline void x86_cipher_reset(X86Emitter& e, const VMConfig& vm) {
228 const auto& r = vm.dispatcher_regs();
229 const std::int32_t init_off = static_cast<std::int32_t>(vm.state_layout().cipher_extra) + kCipherInitOff;
230 e.mov_reg_mem(
231 r.cipher_state,
232 r.state_ptr,
233 init_off,
234 true
235 );
236 }
237
238 // forward decls
239 static void emit_x86_mem_addr(X86Emitter& e, const VMConfig& vm, std::uint8_t out_reg);

Callers 1

emit_handlerMethod · 0.85

Calls 1

mov_reg_memMethod · 0.45

Tested by

no test coverage detected