增加加密
This commit is contained in:
@@ -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字符串长度
|
||||
|
||||
Reference in New Issue
Block a user