summaryrefslogtreecommitdiffstats
path: root/src/libluh.h
diff options
context:
space:
mode:
authorSeppia <seppia@seppio.fish>2018-07-06 01:27:52 +0200
committerSeppia <seppia@seppio.fish>2018-07-06 01:27:52 +0200
commit6d532fd3993f2c86a39071636bf330135541f80f (patch)
treee30cbb077a8505d5359b0c6a8d3dcc57a9f90913 /src/libluh.h
parentbf07e0d2f69d7e801515ae33393f91a7867604b4 (diff)
downloadonetimebluh-6d532fd3993f2c86a39071636bf330135541f80f.tar.gz
onetimebluh-6d532fd3993f2c86a39071636bf330135541f80f.tar.bz2
onetimebluh-6d532fd3993f2c86a39071636bf330135541f80f.zip
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.
Diffstat (limited to 'src/libluh.h')
-rw-r--r--src/libluh.h21
1 files changed, 21 insertions, 0 deletions
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