mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
25 lines
485 B
C
25 lines
485 B
C
![]() |
#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
|