From 6d532fd3993f2c86a39071636bf330135541f80f Mon Sep 17 00:00:00 2001 From: Seppia Date: Fri, 6 Jul 2018 01:27:52 +0200 Subject: Moved new functions to separate header and source Moved new core functions to separate source file and created new header file. Adjusted Makefile and onetimebluh.c accordingly. --- src/libluh.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/libluh.h (limited to 'src/libluh.h') diff --git a/src/libluh.h b/src/libluh.h new file mode 100644 index 0000000..2e44c01 --- /dev/null +++ b/src/libluh.h @@ -0,0 +1,21 @@ +#ifndef LIBLUH +#define LIBLUH + +typedef struct opts { + int64_t comm; + int64_t nbytes; + int64_t quiet; + int64_t tear; + char* chars; + char* keyfile; + char* input; + char* output; +} Opts; + +char* readInput (FILE* input, uint64_t size); +char* cryptXor (char* inputStr, FILE* keyFile); +char* fcryptXor (FILE* inputFile, FILE* keyFile); +char* binDump (char* inputStr, char* binChars); +char* ubinDump (char* inputStr, char* binChars); + +#endif -- cgit v1.2.3