esp32c3-usb_serial/main/file_system/file_encryptor.h

11 lines
277 B
C

#ifndef FILE_ENCRYPTOR_H
#define FILE_ENCRYPTOR_H
#include "esp_log.h"
#include "esp_system.h"
// 加密/解密方法:这里我们将使用 XOR 加密
void xor_encrypt_decrypt(uint8_t *data, size_t data_len, const uint8_t *key, size_t key_len);
#endif // FILE_ENCRYPTOR_H