diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/onetimebluh.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c index e657dd2..296318d 100644 --- a/src/onetimebluh.c +++ b/src/onetimebluh.c @@ -18,11 +18,11 @@ typedef struct opts { char* output; } Opts; -char* readInput(FILE* input, uint64_t size); -void xor (Opts* opzioni); /* operates the bitwise XOR between mess and keyf and puts the output to outp */ -void keyrand (Opts* opzioni); /* generates random numbers using RAND_bytes from openssl and puts them into outp */ -void bluh (Opts* opzioni); /* performs the binary dump of the input file and prints that to outp */ -void help (char* av[]); /* prints the help message */ +char* readInput (FILE* input, uint64_t size); +void xor (Opts* opzioni); /* operates the bitwise XOR between mess and keyf and puts the output to outp */ +void keyrand (Opts* opzioni); /* generates random numbers using RAND_bytes from openssl and puts them into outp */ +void bluh (Opts* opzioni); /* performs the binary dump of the input file and prints that to outp */ +void help (char* av[]); /* prints the help message */ int main (int argc, char* argv[]) { @@ -46,20 +46,20 @@ int main (int argc, char* argv[]) { while (opt) { int option_index = 0; static struct option options[] = { - {"bluh", no_argument, 0, 'b'}, - {"char", required_argument, 0, 'c'}, - {"decrypt", no_argument, 0, 'd'}, - {"encrypt", no_argument, 0, 'e'}, - {"key-file", required_argument, 0, 'k'}, - {"input", required_argument, 0, 'i'}, - {"gen-key", no_argument, 0, 'g'}, - {"help", no_argument, 0, 'h'}, - {"nbytes", required_argument, 0, 'n'}, - {"output", required_argument, 0, 'o'}, - {"quiet", no_argument, 0, 'q'}, - {"tear-page", no_argument, 0, 't'}, - {"uhbluh", no_argument, 0, 'u'}, - {0, 0, 0, 0}, + {"bluh", no_argument, 0, 'b'}, + {"char", required_argument, 0, 'c'}, + {"decrypt", no_argument, 0, 'd'}, + {"encrypt", no_argument, 0, 'e'}, + {"key-file", required_argument, 0, 'k'}, + {"input", required_argument, 0, 'i'}, + {"gen-key", no_argument, 0, 'g'}, + {"help", no_argument, 0, 'h'}, + {"nbytes", required_argument, 0, 'n'}, + {"output", required_argument, 0, 'o'}, + {"quiet", no_argument, 0, 'q'}, + {"tear-page", no_argument, 0, 't'}, + {"uhbluh", no_argument, 0, 'u'}, + {0, 0, 0, 0}, }; if ((opt = getopt_long (argc, argv, "bc:deghk:i:n:o:qtu", options, &option_index)) == -1) |