mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-11 05:30:28 +08:00
优化处理流程
This commit is contained in:
4
crypto.h
4
crypto.h
@@ -93,7 +93,7 @@ static char* raw_decrypt(const char* buf, off_t* len, int index, const char pwd[
|
||||
return decbuf;
|
||||
}
|
||||
|
||||
static void cmdpacket_encrypt(CMDPACKET* p, int index, const char pwd[64]) {
|
||||
static void cmdpacket_encrypt(cmdpacket_t p, int index, const char pwd[64]) {
|
||||
TEADAT tin = {p->datalen, p->data};
|
||||
TEADAT tout;
|
||||
TEA tea[4];
|
||||
@@ -134,7 +134,7 @@ static void cmdpacket_encrypt(CMDPACKET* p, int index, const char pwd[64]) {
|
||||
return;
|
||||
}
|
||||
|
||||
static int cmdpacket_decrypt(CMDPACKET* p, int index, const char pwd[64]) {
|
||||
static int cmdpacket_decrypt(cmdpacket_t p, int index, const char pwd[64]) {
|
||||
TEADAT tin = {p->datalen, p->data};
|
||||
TEADAT tout;
|
||||
TEA tea[4];
|
||||
|
||||
Reference in New Issue
Block a user