Devilution
Diablo devolved - magic behind the 1996 computer game
Functions | Variables
encrypt.cpp File Reference
#include "all.h"
#include "../3rdParty/PKWare/pkware.h"

Go to the source code of this file.

Functions

void Decrypt (void *block, DWORD size, DWORD key)
 
void Encrypt (void *block, DWORD size, DWORD key)
 
DWORD Hash (const char *s, int type)
 
void InitHash ()
 
int PkwareCompress (void *buf, int size)
 
unsigned int PkwareBufferRead (char *buf, unsigned int *size, void *param)
 
void PkwareBufferWrite (char *buf, unsigned int *size, void *param)
 
void PkwareDecompress (void *param, int recv_size, int dwMaxBytes)
 

Variables

DEVILUTION_BEGIN_NAMESPACE DWORD hashtable [1280]
 

Detailed Description

Implementation of functions for compression and decompressing MPQ data.

Definition in file encrypt.cpp.