1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-05 10:10:26 +08:00
Files
simple-dict/crypto.h
源文雨 9e0b4ffc18 fix w&e
2022-03-29 20:00:04 +08:00

17 lines
497 B
C

#ifndef _CRYPTO_H_
#define _CRYPTO_H_
#include <stdint.h>
#include <simplecrypto.h>
#include <sys/types.h>
#include "server.h"
void init_crypto();
void reset_seq(int index);
char* raw_encrypt(const char* buf, off_t* len, int index, const char pwd[64]);
char* raw_decrypt(const char* buf, off_t* len, int index, const char pwd[64]);
void cmdpacket_encrypt(CMDPACKET* p, int index, const char pwd[64]);
int cmdpacket_decrypt(CMDPACKET* p, int index, const char pwd[64]);
#endif /* _CRYPTO_H_ */