summaryrefslogtreecommitdiff
path: root/src/encryption.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/encryption.h')
-rw-r--r--src/encryption.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/encryption.h b/src/encryption.h
new file mode 100644
index 0000000..eccb6b9
--- /dev/null
+++ b/src/encryption.h
@@ -0,0 +1,9 @@
1#ifndef __SLOTS__ENCRYPTION_H__176771896719387
2#define __SLOTS__ENCRYPTION_H__176771896719387
3
4#include <stddef.h>
5
6/* Overwrite an open file with "encrypted" data by XOR'ing each byte with a character from PASSPHRASE. Returns number of bytes overwritten, and -1 on error */
7size_t passenc(int fd, const char *passphrase);
8
9#endif \ No newline at end of file