mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-12 22:40:50 +08:00
初步使用新封包
This commit is contained in:
15
crypto.h
Normal file
15
crypto.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef _CRYPTO_H_
|
||||
#define _CRYPTO_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <simplecrypto.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_ */
|
||||
Reference in New Issue
Block a user