openmohaa/code/gamespy/Chat/chatCrypt.h

25 lines
485 B
C
Raw Permalink Normal View History

2023-02-04 21:00:01 +01:00
#ifndef _CHATCRYPT_H_
#define _CHATCRYPT_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _gs_crypt_key
{
unsigned char state[256];
unsigned char x;
unsigned char y;
} gs_crypt_key;
void gs_prepare_key(const unsigned char *key_data_ptr, int key_data_len, gs_crypt_key *key);
void gs_crypt(unsigned char *buffer_ptr, int buffer_len, gs_crypt_key *key);
void gs_xcode_buf(char *buf, int len, char *enckey);
#ifdef __cplusplus
}
#endif
#endif