summaryrefslogtreecommitdiff
path: root/src/encryption.h
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2024-09-03 14:18:21 -0500
committer@syxhe <https://t.me/syxhe>2024-09-03 14:18:21 -0500
commit74f6e6577709d00306e336f5d824e01d7a107439 (patch)
tree5f4078f327d540893ea6867518f1764913e9f503 /src/encryption.h
parentbed4b90c91037dc4727303b241321c9af03b757a (diff)
DECRYPTION WORKS
Diffstat (limited to 'src/encryption.h')
-rw-r--r--src/encryption.h14
1 files changed, 8 insertions, 6 deletions
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);
10/* Encrypt file descriptor FD one block at a time using PASSPHRASE as the encryption key */ 10/* Encrypt file descriptor FD one block at a time using PASSPHRASE as the encryption key */
11size_t passencblock(int fd, const char *passphrase); 11size_t passencblock(int fd, const char *passphrase);
12 12
13// Encrypt a nodelist
14int encryptvxgg(const struct nodelist *list, const char *passphrase);
15
16// Decrypt a nodelist
17int decryptvxgg(const struct nodelist *list, const char *passphrase);
18
19// Encrypt or decrypt a nodelist 13// Encrypt or decrypt a nodelist
20#define VXGG_ENCRYPT 0 14#define VXGG_ENCRYPT 0
21#define VXGG_DECRYPT 1 15#define VXGG_DECRYPT 1
22int ENorDE_cryptvxgg(const struct nodelist *list, const char *passphrase, int flag); 16int ENorDE_cryptvxgg(const struct nodelist *list, const char *passphrase, int flag);
17struct endeargs {
18 const struct nodelist *list;
19 const char *passphrase;
20 int flag;
21};
22
23// Wrapper for EnorDE_cryptvxgg for multithreading purposes
24int ende_wrapper(void *passed);
23 25
24#endif \ No newline at end of file 26#endif \ No newline at end of file