Files
Zerin-2/include/sleep_obf.h
T

15 lines
471 B
C
Raw Normal View History

2026-08-27 11:03:10 -06:00
#ifndef ZERIN_SLEEP_OBF_H
#define ZERIN_SLEEP_OBF_H
#include <stdint.h>
// Obfuscated sleep: encrypts the agent's image in memory during the
// sleep interval using XOR with the provided key, then decrypts on wake.
// Falls back to a plain Sleep() if setup fails.
//
// ms — sleep duration in milliseconds
// key — 32-byte encryption key (typically the session key)
int sleep_obfuscated(uint32_t ms, const uint8_t *key);
#endif // ZERIN_SLEEP_OBF_H