From bed4b90c91037dc4727303b241321c9af03b757a Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Tue, 3 Sep 2024 01:28:19 -0500 Subject: Consolidate encryption and decryption function --- src/encryption.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/encryption.h') diff --git a/src/encryption.h b/src/encryption.h index 15dd568..664e4e6 100644 --- a/src/encryption.h +++ b/src/encryption.h @@ -13,4 +13,12 @@ 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); + #endif \ No newline at end of file -- cgit v1.2.3