summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Pad too small checkHEADv0.3.1masterSeppia2018-07-071-2/+8
| | | | | Adds check for pad size relatively to input size and exit with an error when pad is smaller.
* Output file checkSeppia2018-07-071-3/+10
| | | | | Moved output file existence check in specific functions, after all options are parsed.
* Main headerv0.3Seppia2018-07-063-18/+23
| | | | | Created main source header file and moved appropriate declarations and function prototipes there.
* Print functionsSeppia2018-07-063-56/+44
| | | | | | | 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.
* Variable namesSeppia2018-07-062-6/+6
| | | | Adjusted variable names in readInput prototype.
* Moved new functions to separate header and sourceSeppia2018-07-063-116/+127
| | | | | Moved new core functions to separate source file and created new header file. Adjusted Makefile and onetimebluh.c accordingly.
* Removed outdated commentsSeppia2018-07-051-4/+4
|
* bin dump and reverse functionsSeppia2018-07-051-25/+40
| | | | | | The bluh and unbluh operations have been moved to functions that take input from string, and corrispondent code has been changed accordingly.
* Missing string memory deallocationSeppia2018-07-051-1/+3
| | | | | Adds missing free function for dinamically allocated string and also moves a variable declaration to the appropriate block.
* encrypt/decrypt functionsSeppia2018-07-051-19/+51
| | | | | | The encrypt and decrypt operations have been moved to functions that take input from string or file, and corrispondent code has been changed accordingly.
* Missing memory deallocationv0.2.1Seppia2018-07-051-0/+4
| | | | input string was not properly deallocated if previously reallocated.
* Missing initializationSeppia2018-07-051-1/+1
| | | | Inizialized length variable in readInput function.
* Info message ignoring quietSeppia2018-07-051-2/+6
| | | | This fixes an info message ignoring the quiet option.
* Scapces and tabs adjustmentsSeppia2018-07-051-19/+19
|
* Syntax changeSeppia2018-07-041-31/+31
| | | | Syntax for string evaluation changed to a more concise version.
* Input from stdinSeppia2018-07-041-22/+101
| | | | | | | 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 changesSeppia2018-07-041-91/+105
| | | | | | | | | 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.
* Messages updateSeppia2018-07-041-25/+24
| | | | | This commit updates the messages targetd to the user to be more consistent and adds message types such as INFO, WARNING and ERROR.
* Using struct for optionsSeppia2018-07-041-105/+115
| | | | | Defined an options struct in order to access with more ease the options values inside functions and changed code accordingly.
* Quiet option additionSeppia2018-07-031-25/+59
| | | | | | | 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.
* Print generating key messageSeppia2018-07-031-3/+4
| | | | | Printing message while generating key and fixed order of messages in the same function.
* Tab style fixSeppia2018-05-061-2/+2
|
* Complete integer types declarations changev0.1Seppia2018-01-311-5/+5
| | | | Chages some 'long' variable declarations left to 'int64_t'.
* Change integer types declarationsSeppia2018-01-311-14/+14
| | | | | | Use respectively int64_t and uint64_t in place of int and and unsigned int for better compatibility with non x86_64 compilers.
* Add byte multiple units supportSeppia2018-01-291-6/+19
| | | | | | 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.
* Changed help styleSeppia2018-01-281-14/+14
| | | | Add spaces before commands and options in help function and minor style changes
* Fixed wrong unbluh optionSeppia2017-10-031-1/+1
| | | | Change unbluh option keyword to correct value
* Code Style changed.Seppia2017-09-081-103/+103
| | | | Added space between functions names and arguments calls.
* fixed help function printfSeppia2016-12-181-13/+13
|
* fixed exit messages with command nameSeppia2016-12-091-6/+6
|
* fixed option -c in help() functionSeppia2016-12-081-1/+1
|
* fixed for variable lenghtSeppia2016-12-071-1/+1
|
* added --char option to help and fixed entriesSeppia2016-12-071-2/+3
|
* removed printf() outputs used for testingSeppia2016-12-071-8/+0
|
* added option for using custom values in bluh function and lenght fixes in ↵Seppia2016-12-071-10/+21
| | | | bluh function
* fixed stdout message after decyptionSeppia2016-12-051-1/+1
|
* fixed help() functionSeppia2016-11-301-13/+15
|
* added the bluh function to transform the message in its bintary dump and ↵Seppia2016-11-301-10/+116
| | | | overall variable names fixes
* changed options key-get to gen-key and short for nbytes from b to nSeppia2016-11-291-6/+6
|
* changed variable mexstream name into bytesSeppia2016-11-261-4/+4
|
* changed xor output writing from fprintf to fwriteSeppia2016-11-261-6/+10
|
* fixed leght detection for padSeppia2016-11-151-1/+1
|
* changed default pad lenght in keyrand functionSeppia2016-11-151-2/+2
|
* used dynamic allocation for key stream in keyrand functionSeppia2016-11-151-1/+2
|
* style fix in xor() functionSeppia2016-11-121-8/+6
|
* Changes to be committed:Luke2016-11-121-2/+2
| | | | | | | | | | | | | modified: src/onetimebluh.c Fixed error concerning the indicator position in the key stream file. The line fseek(keyx, (pad_size - mess_size), SEEK_SET); was executed only in presence of the -t option. No code was added to fix this.
* moved sources to appropriate directoriesSeppia2016-06-151-0/+244