diff options
author | Seppia <seppia@seppio.fish> | 2018-07-06 01:27:52 +0200 |
---|---|---|
committer | Seppia <seppia@seppio.fish> | 2018-07-06 01:27:52 +0200 |
commit | 6d532fd3993f2c86a39071636bf330135541f80f (patch) | |
tree | e30cbb077a8505d5359b0c6a8d3dcc57a9f90913 /src/libluh.h | |
parent | bf07e0d2f69d7e801515ae33393f91a7867604b4 (diff) | |
download | onetimebluh-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.h | 21 |
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 |