1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-11 05:30:28 +08:00

优化处理流程

This commit is contained in:
源文雨
2022-05-06 13:17:03 +08:00
parent 21773b3710
commit 4ff61bf495
5 changed files with 219 additions and 137 deletions

View File

@@ -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];