Commit Graph

192 Commits

Author SHA1 Message Date
e6511aec5e
Revamped the stepping algorithm. 2021-04-01 23:44:13 +02:00
8ebf71ba73
Simplified crypt_state_t by merging separate fwd/bwd arrays. 2021-04-01 20:27:14 +02:00
471e08737b
Replaced separate encrypt() and decrypt() functions with a single process() function + added 'mode' parameter to alloc() and reset() functions. 2021-04-01 01:58:39 +02:00
75b10acd6a
Small fix to rotation code. 2021-04-01 00:36:04 +02:00
26cfd32d24
Revamped the stepping algorithm. 2021-03-31 00:05:40 +02:00
163dee5e9d
Only check current clock() on every 32-th cycle, in order to limit the overhead. 2021-03-28 16:17:06 +02:00
73f2e71342
Revamped the stepping algorithm. 2021-03-27 22:41:31 +01:00
bdab06cd80
Don't require environment variable to start with "pass:" prefix + some code clean-up. 2021-03-26 01:48:30 +01:00
c8cd0fc699
Tweak minimum/maximum password lengths. 2021-03-26 01:14:33 +01:00
baa6705f85
Renamed the C++ wrapper classes + updated README file. 2021-03-24 21:34:46 +01:00
7fb9a517fe
Silenced some compiler warnings, found by Clang. 2021-03-24 20:23:14 +01:00
adea0bada1
Added examples on how to use the C++11 API + added explicit compiler checks. 2021-03-24 20:21:59 +01:00
ded1220a13
Improved command-line syntax for passing the passphrase + Updated README file. 2021-03-22 22:52:00 +01:00
0b7777fc3e
More thorough cleaning of encryption/decryption state and buffers. 2021-03-21 16:46:22 +01:00
7a40d62b06
Make sure that not all RNG state variables are initialized to a zero value. 2021-03-20 21:19:14 +01:00
d8f446832b
Replaced some more byte-order-specific code with a byte-order-agnostic implementation. 2021-03-20 21:19:13 +01:00
1b049d5291
Some improvements to the PRNG code. 2021-03-20 21:19:12 +01:00
11951fc33b
Fixed bug in upper_u64() function. 2021-03-20 21:19:11 +01:00
2e74accf36
Don't set 'stdout' to _O_BINARY mode on Windows, because it can have some weird effect when printing text to the terminal. Also, we currently don't output any "binary" data to 'stdout' anyway. 2021-03-20 21:19:10 +01:00
21cab67912
Small fix to BLAKE2s initialization code. 2021-03-20 21:19:09 +01:00
111c714c6a
Small tweak to the key derivation function. 2021-03-20 21:19:08 +01:00
fe1398fdcb
Implemented checksum based on BLAKE2s hash function. 2021-03-20 21:19:07 +01:00
e642969539
Added simple script to generate the documents. 2021-03-20 21:19:06 +01:00
b1b8208b92
Updated README file. 2021-03-20 21:19:05 +01:00
2aaafda2bc
Updated README file. 2021-03-20 21:19:04 +01:00
925e882e03
Updated README file. 2021-03-20 21:19:03 +01:00
811cf7410c
Updated README file. 2021-03-20 21:19:02 +01:00
b998dc5947
Obfuscate nonce in output file, by XOR'ing with the first digits of PI. 2021-03-20 21:19:01 +01:00
6ca1f55b82
Updated README file. 2021-03-20 21:19:00 +01:00
f250143f8b
Slightly improved cleansing of the command-line on Win32. 2021-03-20 21:18:59 +01:00
334d828c5b
Slightly improved storage of the padding size. 2021-03-20 21:18:59 +01:00
86af5fa51f
Added new option to generate a random passphrase. 2021-03-20 21:18:58 +01:00
fb4f429493
Ignore excess bytes, if length of input file is *not* an integer multiple of 8. 2021-03-20 21:18:57 +01:00
c530556e94
Implemented a simple padding scheme. 2021-03-20 21:18:56 +01:00
99dec75db7
Updated README file. 2021-03-20 21:18:55 +01:00
4fafbcca25
Updated README file. 2021-03-20 21:18:53 +01:00
cf8aaf0c84
Fixed a bunch of warnings with legacy MinGW version. 2021-03-20 21:18:53 +01:00
9d5a103201
Fixed a few warnings on Linux. 2021-03-20 21:18:52 +01:00
f889facba1
Fix for older versions of 'dd' that did not support the 'status=none' flag. 2021-03-20 21:18:51 +01:00
6a37d76f35
Avoid the use of a "Trigraph" in the test data. 2021-03-20 21:18:50 +01:00
e105feb651
Added support for link-time-optimizations. 2021-03-20 21:18:49 +01:00
0fbc7f1fb9
Added build script for Windows. 2021-03-20 21:18:48 +01:00
37b6c40278
Added helper script for profile-guided optimization (PGO). 2021-03-20 21:18:47 +01:00
6c26203c30
Some code clean-up. 2021-03-20 21:18:46 +01:00
9c08cb9dd4
Use __attribute__((destructor)), if supported by the compiler. 2021-03-20 21:18:45 +01:00
9e1894b539
Some build fixes for old MSVC versions. 2021-03-20 21:18:44 +01:00
f3f97110f6
Automatically perform initialization when slunkcrypt_random_bytes() is called for the first time. 2021-03-20 21:18:43 +01:00
0f7c309034
Store and load the Nonce as well as the CRC checksum in a byte-order-agnostic way. 2021-03-20 21:18:42 +01:00
ae3318a12f
Improved library initialization code. 2021-03-20 21:18:41 +01:00
b577afba49
Replaced some endianness-specific code with endianness-agnostic functions. 2021-03-20 21:18:40 +01:00