mirror of
https://github.com/pret/pokeheartgold.git
synced 2026-05-31 20:43:00 -05:00
21 lines
481 B
C
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
|