增加加密

This commit is contained in:
2026-05-04 21:17:42 +08:00
parent 03301d5b45
commit 90908cf018
5 changed files with 266 additions and 17 deletions
+9
View File
@@ -14,6 +14,15 @@
*/
uint32_t Crypto_EncryptJSON(const char* json_data, char* encrypted_output);
/**
* @brief 解密Base64编码的AES-CBC数据
* @param encrypted_base64 加密后的Base64字符串
* @param plain_output 输出明文缓冲区
* @param output_size 输出缓冲区大小
* @return 明文字节数,失败返回0
*/
uint32_t Crypto_DecryptJSON(const char* encrypted_base64, char* plain_output, uint32_t output_size);
/**
* @brief 获取加密后数据的最大长度
* @param json_length JSON字符串长度