| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Adds check for pad size relatively to input size and exit with an
error when pad is smaller.
|
|
|
|
|
| |
Moved output file existence check in specific functions, after all
options are parsed.
|
|
|
|
|
| |
Created main source header file and moved appropriate declarations
and function prototipes there.
|
|
|
|
|
|
|
| |
Defined macro for an error print function to be used to output
errors. Defined also a quiet print function which gets executed only
if numeric value passed as first argument is true.
Changed also code in main source accordingly.
|
|
|
|
| |
Adjusted variable names in readInput prototype.
|
|
|
|
|
| |
Moved new core functions to separate source file and created new
header file. Adjusted Makefile and onetimebluh.c accordingly.
|
| |
|
|
|
|
|
|
| |
The bluh and unbluh operations have been moved to functions that
take input from string, and corrispondent code has been changed
accordingly.
|
|
|
|
|
| |
Adds missing free function for dinamically allocated string and also
moves a variable declaration to the appropriate block.
|
|
|
|
|
|
| |
The encrypt and decrypt operations have been moved to functions that
take input from string or file, and corrispondent code has been
changed accordingly.
|
|
|
|
| |
input string was not properly deallocated if previously reallocated.
|
|
|
|
| |
Inizialized length variable in readInput function.
|
|
|
|
| |
This fixes an info message ignoring the quiet option.
|
|
|
|
| |
Updated README.md to match the new options and syntax.
|
| |
|
|
|
|
| |
Syntax for string evaluation changed to a more concise version.
|
|
|
|
|
|
|
| |
With this commit the program can now read directly from standard
input, as long as from a file, and defaults to this beheaviour.
If the user now wants to set an input file must use the 'input'
option previously introduced.
|
|
|
|
|
|
|
|
|
| |
Default output has now changed to standard output, unless specified
a file name. This could be usefulf for scripting along with the use
of the 'quiet' option.
This commis also introduces a new 'input' option, in anticipation of
a future update which will defaults to standard input if no 'input'
option is specified as for the 'output' option.
|
|
|
|
|
| |
This commit updates the messages targetd to the user to be more
consistent and adds message types such as INFO, WARNING and ERROR.
|
|
|
|
|
| |
Defined an options struct in order to access with more ease the
options values inside functions and changed code accordingly.
|
|
|
|
|
|
|
| |
This commit adds a 'quiet' option which suppresses all info-only
outputs, usefult for scripting in prevision of future sdtin/stdout
interaction support. All error messages will ignore the 'quite'
option, and so the help function will.
|
|
|
|
|
| |
Printing message while generating key and fixed order of messages in
the same function.
|
| |
|
|
|
|
| |
Chages some 'long' variable declarations left to 'int64_t'.
|
|
|
|
|
| |
Updates README with new byte multiples function, fixes repository URL
and name and fixes various typos.
|
|
|
|
|
|
| |
Use respectively int64_t and uint64_t in place of int and
and unsigned int for better compatibility with non x86_64
compilers.
|
|
|
|
|
|
| |
Now can be specified the size of the key to be created in KiB, MiB,
GiB or TiB respectively using {K,M,G,T} after the value of the
option --nbytes.
|
|
|
|
| |
Updates and fixes programs informations and adds install instructions.
|
|
|
|
| |
Add spaces before commands and options in help function and minor style changes
|
|
|
|
| |
Change unbluh option keyword to correct value
|
|
|
|
| |
Added space between functions names and arguments calls.
|
| |
|
|
|
|
| |
Changed incorrect markdown syntax in README.md
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
bluh function
|
| |
|
| |
|
| |
|
|
|
|
| |
overall variable names fixes
|
| |
|