aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pbkdf
Commit message (Collapse)AuthorAgeFilesLines
* Fix more MSVC warningsJack Lloyd2019-06-142-18/+18
|
* Resolve some MSVC warningsJack Lloyd2019-06-145-9/+9
|
* Add Bcrypt-PBKDFJack Lloyd2019-05-314-0/+276
|
* Argon2: minor optimizations, add tests of CLI, tweak tuningJack Lloyd2019-05-302-33/+38
|
* Improve test coverage. Fix Argon2 default paramsJack Lloyd2019-05-291-2/+2
|
* Add missing includeJack Lloyd2019-05-291-0/+1
|
* Argon2: PasswordHash, documentation, hash formattingJack Lloyd2019-05-294-2/+371
|
* Add Argon2Jack Lloyd2019-05-273-0/+455
| | | | Closes GH #459
* 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
* Fixes for minimized buildsJack Lloyd2019-02-161-1/+1
| | | | Various configurations would fail build or test, fix that.
* Fix MSVC warningsJack Lloyd2018-12-311-1/+1
|
* Improve PBKDF self-tuningJack Lloyd2018-12-293-63/+60
| | | | | | | | | 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 Doxygen errors [ci skip]Jack Lloyd2018-12-051-0/+1
|
* Make exceptions easier to translate to error codesJack Lloyd2018-11-232-2/+2
| | | | | | | | | | | Avoid throwing base Botan::Exception type, as it is difficult to determine what the error is in that case. Add Exception::error_code and Exception::error_type which allows (for error code) more information about the error and (for error type) allows knowing the error type without requiring a sequence of catches. See GH #1742
* Fix more MSVC warningsJack Lloyd2018-10-011-2/+2
|
* Avoid a MSVC 2015 warningJack Lloyd2018-10-013-3/+3
|
* Fix some MSVC warningsJack Lloyd2018-09-301-1/+1
|
* Spell check the documentationJack Lloyd2018-09-281-1/+1
|
* Correct some maintiner mode warningsJack Lloyd2018-09-202-4/+4
|
* Support tuning in PGP-S2K PBKDF interfaceJack Lloyd2018-09-101-3/+8
|
* Add from_iterationsJack Lloyd2018-09-107-4/+53
|
* Convert ScryptJack Lloyd2018-09-103-108/+228
| | | | | | | This also changes some (library only) APIs so PBES2 needed to be modified. This is a contribution of Ribose Inc (@riboseinc)
* Convert PGP-S2KJack Lloyd2018-09-102-63/+225
| | | | This is a contribution by Ribose Inc (@riboseinc)
* Convert PBKDF2Jack Lloyd2018-09-103-71/+226
| | | | This is a contribution by Ribose Inc (@riboseinc)
* Add PasswordHash and PasswordHashFamilyJack Lloyd2018-09-104-1/+242
| | | | This is a contribution by Ribose Inc (@riboseinc)
* Support scrypt for encrypting private keysJack Lloyd2018-05-222-0/+95
|
* Add Scrypt key dervation functionJack Lloyd2018-05-163-0/+146
|
* Add message to BOTAN_ARG_CHECK and use it more widelyJack Lloyd2018-05-134-5/+4
|
* Correct dependencies of kdf and pbkdf [ci skip]Jack Lloyd2018-01-171-1/+2
| | | | They assumed base pulled in hash and mac which is no longer true
* Add wrappers for reinterpret_cast between char* and uint8_t*Jack Lloyd2017-10-032-2/+2
| | | | | | | 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.
* Thinko fixJack Lloyd2017-09-301-1/+1
|
* Compat typedef PBKDF -> S2KJack Lloyd2017-09-291-1/+12
| | | | [ci skip]
* Cryptobox code modernizationJack Lloyd2017-09-222-0/+21
| | | | Only encrypt so it's easy to verify everything still works.
* Header file cleanupsJack Lloyd2017-09-212-2/+0
| | | | Some help from include-what-you-use
* Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-204-8/+8
| | | | | | ISO C++ reserves names with double underscores in them Closes #512
* Complete the final annotation changesJack Lloyd2017-09-191-1/+1
|
* Add API stability annotations.Jack Lloyd2017-09-193-4/+4
| | | | | Defined in build.h, all equal to BOTAN_DLL so ties into existing system for exporting symbols.
* 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-274-0/+176
| | | | | | | | | | | | | 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).
* Content:Tomasz Frydrych2017-04-032-3/+1
| | | | | | | | | * fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations) * `default` specifier instead of `{}` in some places(probably all) * removal of unreachable code (for example `return` after `throw`) * removal of compilation unit only visible, but not used functions * fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT` * removed not needed semicolons
* Remove "Dirty hack" for multiple defines in lex_me_harder()Simon Warta2017-04-023-3/+9
|
* Add BOTAN_UNUSED in creator functionsJack Lloyd2017-01-271-0/+3
| | | | | | If all (say) stream ciphers are disabled, avoid unused arg warning. [ci skip]
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-186-40/+40
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* Remove Algo_RegistryJack Lloyd2016-10-214-30/+31
| | | | | | | I repent my use of global constructors. I repent my use of global locks. Hopefully I will never touch this code again. :)
* Fix doxygen warnings [ci skip]René Korthaus2016-10-191-2/+3
|
* Improve pbkdf doxygen [ci skip]René Korthaus2016-10-191-4/+54
|