You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/**
|
|
|
|
|
* @file codec.h
|
|
|
|
|
*
|
|
|
|
|
* Interface of save game encryption algorithm.
|
|
|
|
|
*/
|
|
|
|
|
#ifndef __CODEC_H__
|
|
|
|
|
#define __CODEC_H__
|
|
|
|
|
|
|
|
|
|
DEVILUTION_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
int codec_decode(BYTE *pbSrcDst, DWORD size, char *pszPassword);
|
|
|
|
|
void codec_init_key(int unused, char *pszPassword);
|
|
|
|
|
DWORD codec_get_encoded_len(DWORD dwSrcBytes);
|
|
|
|
|
void codec_encode(BYTE *pbSrcDst, DWORD size, int size_64, char *pszPassword);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
DEVILUTION_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
#endif /* __CODEC_H__ */
|