aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pbkdf/pgp_s2k
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate many publically available headersJack Lloyd2019-09-061-0/+8
|
* Replace upper_bound with lower_bound in pgp_s2kEvgeny Pokhilko2019-03-111-1/+1
| | | | | | | | Fix: RFC4880_encode_count doesn't return consistent results when processing exact iterations. It returns RFC4880 code + 1. Update PGP_S2K_Iter test to verify PGP formula Add test to verify that encoded values match the PGP formula
* Fix MSVC warningsJack Lloyd2018-12-311-1/+1
|
* Improve PBKDF self-tuningJack Lloyd2018-12-291-55/+52
| | | | | | | | | Make the tune interval a build-time configurable instead of hardcoding it in each source file. Also use binary search in RFC4880_encode_count instead of linear search. Fix a bug in Timer
* Fix more MSVC warningsJack Lloyd2018-10-011-2/+2
|
* Avoid a MSVC 2015 warningJack Lloyd2018-10-011-1/+1
|
* Correct some maintiner mode warningsJack Lloyd2018-09-201-2/+2
|
* Support tuning in PGP-S2K PBKDF interfaceJack Lloyd2018-09-101-3/+8
|
* Add from_iterationsJack Lloyd2018-09-102-0/+7
|
* Convert PGP-S2KJack Lloyd2018-09-102-63/+225
| | | | This is a contribution by Ribose Inc (@riboseinc)
* Add message to BOTAN_ARG_CHECK and use it more widelyJack Lloyd2018-05-131-0/+1
|
* Add wrappers for reinterpret_cast between char* and uint8_t*Jack Lloyd2017-10-031-1/+1
| | | | | | | Generally speaking reinterpret_cast is sketchy stuff. But the special case of char*/uint8_t* is both common and safe. By isolating those, the remaining (likely sketchy) cases are easier to grep for.
* Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-201-2/+2
| | | | | | ISO C++ reserves names with double underscores in them Closes #512
* Complete the final annotation changesJack Lloyd2017-09-191-1/+1
|
* More MSVC warnings fixesJack Lloyd2017-08-311-2/+2
|
* Maintainer mode fixes: old style casts, missing override, unused functionsJack Lloyd2017-06-081-1/+1
|
* fix doxygen build: hide method definitions with ifdefs where theZoltan Gyarmati2017-06-081-1/+1
| | | | | | | function declaration is already hidden, fix some param names in doxygen comments, fixes #1067 This work was sponsored by Ribose Inc (@riboseinc).
* Avoid infinite loop in PGP-S2KJack Lloyd2017-05-291-5/+11
| | | | | | | | In simple mode (no salt) with an empty password the input buffer is empty. Add a check that salt is not empty if iterations > 1 since PGP only has simple, salted, and iterated+salted modes.
* Document that timed calibration is not available for PGP-S2KJack Lloyd2017-05-272-11/+51
| | | | | | Made a try at implementing it but its a huge pain due to the combination of the iteration count being the byte count and that we have to end on exactly an encodable iteration count.
* Add (back) OpenPGP-S2KJack Lloyd2017-05-273-0/+164
It was removed somewhere along the line in 1.11, with the logic that it is a funky PGP-specific scheme and (quoting the commit that removed it) "not really useful outside of a full PGP implementation". This assumed that the PGP implementation would be in Botan itself, but PGP is implemented in https://github.com/evpo/EncryptPad/ (which is a PGP implementation using 1.10), and RNP (https://github.com/riboseinc/rnp) would like to use it also. This work was sponsored by Ribose Inc (@riboseinc).