mirror of
https://github.com/diasurgical/devilution.git
synced 2026-06-20 05:46:12 +00:00
17 lines
468 B
C
17 lines
468 B
C
/**
|
|
* @file encrypt.h
|
|
*
|
|
* Interface of functions for compression and decompressing MPQ data.
|
|
*/
|
|
#ifndef __ENCRYPT_H__
|
|
#define __ENCRYPT_H__
|
|
|
|
void Decrypt(DWORD *castBlock, DWORD size, DWORD key);
|
|
void Encrypt(DWORD *castBlock, DWORD size, DWORD key);
|
|
DWORD Hash(const char *s, int type);
|
|
void InitHash();
|
|
int PkwareCompress(BYTE *srcData, int size);
|
|
void PkwareDecompress(BYTE *pbInBuff, int recv_size, int dwMaxBytes);
|
|
|
|
#endif /* __ENCRYPT_H__ */
|