From 5d3068832c6094cf3b3ffce89d2398134e939b1f Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Tue, 21 Jan 2025 17:01:03 -0600 Subject: Write some sample code to encrypt a file via password --- src/shared.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared.h') diff --git a/src/shared.h b/src/shared.h index dce02fc..3602a4e 100644 --- a/src/shared.h +++ b/src/shared.h @@ -20,4 +20,6 @@ void* xreallocarray(void *ptr, size_t nmemb, size_t size); // Read the entire contents of a file descriptor into a malloc()'ed buffer int readwholebuffer(char **str, unsigned long int initsize, int fd); +int writewholebuffer(int fd, const unsigned char *buf, int len); + #endif \ No newline at end of file -- cgit v1.2.3