summaryrefslogtreecommitdiff
path: root/src/encryption.h
blob: eccb6b9f71c63463a08185fac02c91b63f3e1050 (plain)
1
2
3
4
5
6
7
8
9
#ifndef __SLOTS__ENCRYPTION_H__176771896719387
#define __SLOTS__ENCRYPTION_H__176771896719387

#include <stddef.h>

/* 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 */
size_t passenc(int fd, const char *passphrase);

#endif