romulus/Romulus-M/encrypt_wrapper.h

20 lines
410 B
C

#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;
EXPORT int encrypt(packet *packet, unsigned char* outBuf, __uint16_t *len);
EXPORT int decrypt(packetEx *packet, unsigned char* inBuf, __uint16_t len);