romulus/Romulus-M/encrypt_wrapper.h

20 lines
450 B
C
Raw Normal View History

2022-01-25 23:01:41 +00:00
#include <stdio.h>
#include "export.h"
typedef struct {
__uint16_t DataType;
__uint16_t Size;
unsigned char* Data;
}packet;
typedef struct {
__uint16_t DataType;
__uint32_t Id;
__uint16_t Size;
unsigned char* Data;
}packetEx;
2022-01-27 00:43:24 +00:00
EXPORT int encrypt(packet *packet, unsigned char* outBuf, __uint16_t *len, unsigned char* key);
2022-01-25 23:01:41 +00:00
2022-01-27 00:43:24 +00:00
EXPORT int decrypt(packetEx *packet, unsigned char* inBuf, __uint16_t len, unsigned char* key);