summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeppia <seppia@seppio.fish>2018-07-05 13:01:29 +0200
committerSeppia <seppia@seppio.fish>2018-07-05 13:01:29 +0200
commitd4da9daf5a596399c44a01548b784b35346df840 (patch)
tree2e35629240ece13c53137f68f9fd1b69bff9ed5d
parent9b8db1697f9e05a447aa7710167c67bbd8c59cbd (diff)
downloadonetimebluh-d4da9daf5a596399c44a01548b784b35346df840.tar.gz
onetimebluh-d4da9daf5a596399c44a01548b784b35346df840.tar.bz2
onetimebluh-d4da9daf5a596399c44a01548b784b35346df840.zip
Scapces and tabs adjustments
-rw-r--r--src/onetimebluh.c38
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)