使用上层秘钥解密终端识别码密钥后再次加密连接设备

This commit is contained in:
lnk
2025-07-28 10:40:00 +08:00
parent d58923fd21
commit 492193f848
4 changed files with 75 additions and 4 deletions

View File

@@ -56,6 +56,8 @@ extern char* POSTGRES_TABLEPREFIX;
void GetSM4Code(unsigned char* pSerise,char* pKey,char* output);
void MyGetSM4Code(char* input,unsigned char* szKey,char* output);
int sm4_ecb_decrypt_zeropad_base64(const char* base64_cipher, const char* key_str, char* plaintext_out);//lnk20250728
void try_start_kafka_thread();
void try_start_mqconsumer_thread();//lnk20241216
@@ -149,6 +151,8 @@ int parse_device_cfg_web();
int parse_model_cfg_web();
void SOEFileWeb(char* localpath,char* cloudpath,char* wavepath);
const char* get_front_msg_from_subdir();
//////////////////////////////////////////////////////////////////////////////////////
typedef struct {
char WavePhasicFlag[64];