From 74f6e6577709d00306e336f5d824e01d7a107439 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Tue, 3 Sep 2024 14:18:21 -0500 Subject: DECRYPTION WORKS --- src/encryption.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/encryption.h') diff --git a/src/encryption.h b/src/encryption.h index 664e4e6..74539d0 100644 --- a/src/encryption.h +++ b/src/encryption.h @@ -10,15 +10,17 @@ size_t passenc(int fd, const char *passphrase); /* Encrypt file descriptor FD one block at a time using PASSPHRASE as the encryption key */ size_t passencblock(int fd, const char *passphrase); -// Encrypt a nodelist -int encryptvxgg(const struct nodelist *list, const char *passphrase); - -// Decrypt a nodelist -int decryptvxgg(const struct nodelist *list, const char *passphrase); - // Encrypt or decrypt a nodelist #define VXGG_ENCRYPT 0 #define VXGG_DECRYPT 1 int ENorDE_cryptvxgg(const struct nodelist *list, const char *passphrase, int flag); +struct endeargs { + const struct nodelist *list; + const char *passphrase; + int flag; +}; + +// Wrapper for EnorDE_cryptvxgg for multithreading purposes +int ende_wrapper(void *passed); #endif \ No newline at end of file -- cgit v1.2.3