pokeheartgold/tools/compstatic/digest.h
2022-04-25 14:47:13 +00:00

21 lines
481 B
C

#ifndef DIGEST_H
#define DIGEST_H
#include <stdbool.h>
#include "global.h"
#define DIGEST_KEY_SIZE (0x40)
#define DIGEST_HASH_SIZE (0x14)
typedef void (*DigestFunc)(char *hash, char *content, int size, char *digestKey, int digestKeySize);
DigestFunc gDigestFunc;
char *gDigestKey;
int gDigestKeySize;
bool gOverlayTableMode;
bool Init_Digest(uint digestType, char *digestKey);
void Calc_Digest(char *content, int size, char *hash, bool overlayTableMode);
#endif // DIGEST_H