Commit Graph

29 Commits (6d1407bf1f82c202fd56235a9bc367172d083ced)

Author SHA1 Message Date
Christopher Wellons 6d1407bf1f Drop built-in help command. 2017-07-11 15:31:32 -04:00
Christopher Wellons 808fde4f1a Fix a couple of style typos. 2017-07-02 21:58:59 -04:00
Christopher Wellons 18cc64311c Simplify fingerprint command output. 2017-03-26 12:24:05 -04:00
Christopher Wellons b7a7e0094c Truncate fingerprints to 16 bytes. 2017-03-26 12:21:15 -04:00
Christopher Wellons d44d2bb255 Add fingerprint command and --fingerprint keygen option. 2017-03-25 22:11:17 -04:00
Markus Böhme 1d365fbdf0 Fix out-of-bounds memory access. 2017-03-14 14:14:59 +01:00
Markus Böhme 8ca7eb3428 Replace magic value with already defined constant. 2017-03-14 14:14:06 +01:00
Markus Böhme 09e8ec6f8d Fix typos in comments. 2017-03-14 14:13:34 +01:00
Markus Böhme 18249a7f82 Use va_end in functions with a variable number of arguments. 2017-03-14 14:12:15 +01:00
Markus Böhme 99e568f55b Fix registering of files to be cleaned up to work with multiple files. 2017-03-14 14:11:08 +01:00
Christopher Wellons b705d7d159 Fix Win32 directory detection. 2017-03-08 12:05:08 -05:00
Christopher Wellons 1f0f28c125 Use $XDG_RUNTIME_DIR for agent. 2017-03-08 11:51:21 -05:00
Christopher Wellons 3e30188671 Fix key derivation salt to be 32 bytes. 2017-03-08 11:51:21 -05:00
Christopher Wellons 365b184ab8 Use XDG_CONFIG_HOME instead. 2017-03-08 11:51:21 -05:00
Christopher Wellons 6e8453894b Unlink socket before use (agent). 2017-03-08 11:43:36 -05:00
Christopher Wellons ff6ac9c7ca Remove extra passphrase mixing from key derivation. 2017-03-08 10:07:29 -05:00
Christopher Wellons 65467d2fe3 Tweak the algorithm further. 2017-03-07 23:09:32 -05:00
Christopher Wellons 62bed915da Fix argument parsing for new difficulty. 2017-03-07 22:22:34 -05:00
Christopher Wellons c559458ee7 New key derivation algorithm. 2017-03-07 22:16:54 -05:00
Christopher Wellons 096a872a2a Avoid possible double fclose() on some failures. 2017-03-07 09:31:07 -05:00
Christopher Wellons fcb4873498 Write secret key out first (more likely to fail). 2017-03-07 09:23:53 -05:00
Christopher Wellons 2cb2c2d2cb Include format version even without a protection key. 2017-03-07 09:21:55 -05:00
Christopher Wellons d6218e8046 Add simple validation check before starting encryption. 2017-03-06 10:19:54 -05:00
Christopher Wellons a8e926d2dd Check the format version on secret keys. 2017-03-06 10:09:08 -05:00
Christopher Wellons 6c2fd6b52a Store the exponent, not the actual iteration count. 2017-03-06 10:06:51 -05:00
Christopher Wellons f426735681 In key derivation, mix passphrase second.
This prevents the shortcut of pre-initializing the hash with the
passphrase. PBKDF2 doesn't have this feature.
2017-03-06 09:53:10 -05:00
Christopher Wellons 36909699f1 Tidy up HMAC code. 2017-03-06 09:51:35 -05:00
Christopher Wellons b218e3be80 Add --version and --help. 2017-03-05 21:05:44 -05:00
Christopher Wellons 72544c4301 Move sources under src/. 2017-03-05 20:26:31 -05:00