diff options
| author | @syxhe <https://t.me/syxhe> | 2024-09-03 01:28:19 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2024-09-03 01:28:19 -0500 |
| commit | bed4b90c91037dc4727303b241321c9af03b757a (patch) | |
| tree | ead55e198e36fbf898c5e26a4b14be815e27c830 /src/encryption.h | |
| parent | 73d97e960befcd5ef75ea1ae30e9b9222cf22ddf (diff) | |
Consolidate encryption and decryption function
Diffstat (limited to 'src/encryption.h')
| -rw-r--r-- | src/encryption.h | 8 |
1 files changed, 8 insertions, 0 deletions
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); | |||
| 13 | // Encrypt a nodelist | 13 | // Encrypt a nodelist |
| 14 | int encryptvxgg(const struct nodelist *list, const char *passphrase); | 14 | int encryptvxgg(const struct nodelist *list, const char *passphrase); |
| 15 | 15 | ||
| 16 | // Decrypt a nodelist | ||
| 17 | int decryptvxgg(const struct nodelist *list, const char *passphrase); | ||
| 18 | |||
| 19 | // Encrypt or decrypt a nodelist | ||
| 20 | #define VXGG_ENCRYPT 0 | ||
| 21 | #define VXGG_DECRYPT 1 | ||
| 22 | int ENorDE_cryptvxgg(const struct nodelist *list, const char *passphrase, int flag); | ||
| 23 | |||
| 16 | #endif \ No newline at end of file | 24 | #endif \ No newline at end of file |
