2024-06-27 22:35:58 -06:00
|
|
|
#include "config.h"
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <ChaChaPoly.h>
|
|
|
|
#include <HardwareSerial.h>
|
|
|
|
|
|
|
|
void encrypt_string(const unsigned char *input, size_t length, unsigned char *output);
|
|
|
|
void decrypt_string(const unsigned char *input, size_t length, unsigned char *output);
|
2024-07-02 21:18:25 -06:00
|
|
|
void print_hex(const unsigned char *data, size_t length);
|
|
|
|
unsigned char* encrypt_buffer(char* buf, unsigned int len, unsigned int* encrypted_len);
|