Files
pokeheartgold/lib/dsprot/include/encryptor.h
taxicat1 008118b6b3 Address review comments
- all local vars to camelcase
- header include guards with lib name
- comments for preprocessor directives
- asm defs back to respective .inc files
- /lib/dsprot/tools/ merged to /tools/
- unprefixed globals prefixed
- sdk defs consolidated to sdk include
- lsf lib split to objects
2025-11-09 02:59:34 -05:00

24 lines
535 B
C

#ifndef DSPROT_ENCRYPTOR_H
#define DSPROT_ENCRYPTOR_H
#include "sdk.h"
typedef struct FuncInfo {
u32 obfsAddr;
u32 obfsSize;
} FuncInfo;
typedef enum InsType {
INS_TYPE_OTHER = 0,
INS_TYPE_BLXIMM,
INS_TYPE_BL,
INS_TYPE_B
} InsType;
InsType Encryptor_CategorizeInstruction(u32 instruction);
void Encryptor_DecodeFunctionTable(FuncInfo *functions);
void *Encryptor_DecryptFunction(u32 key, u32 funcAddr, u32 size);
u32 Encryptor_EncryptFunction(u32 key, u32 funcAddr, u32 size);
#endif // DSPROT_ENCRYPTOR_H