aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_kdf.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make the tests VarMap an actual type instead of a hashmap typedef.Jack Lloyd2018-05-291-8/+8
|
* Merge GH #1226 Add HKDF-Expand-LabelJack Lloyd2017-09-271-0/+38
|\
| * Add HKDF-Expand-LabelJack Lloyd2017-09-271-0/+38
| | | | | | | | Step 1/n of TLS 1.3
* | Remove OutputLen parameter from KDF test dataJack Lloyd2017-09-271-3/+2
|/ | | | | We already know how long the output should be, it should match the test vector :)
* Add final annotations as appropriate in the test codeJack Lloyd2017-09-221-1/+1
|
* Reformat code with astyle + fix code styleTomasz Frydrych2017-05-011-5/+2
|
* Minor refactoring of Text_Based_TestJack Lloyd2016-12-191-2/+2
| | | | | | Turns out astyle has some bugs wrt C++11 initialize lists. Rather than having astyle mangle all of the tests, convert to using a string which is split once at the start instead of a vector of keys.
* Add test for various functions previously missed (T::clone, PBKDF::name, ↵Jack Lloyd2016-11-261-0/+5
| | | | | | | AEAD::output_length) Fix a bug in CCM, GCM, and OCB decryption which caused `output_length(tag_size())` to fail even though empty plaintexts are certainly defined for all three modes.
* Add a test for KDF::name()René Korthaus2016-11-151-0/+1
| | | | | | This required fixing some test vectors that previously omitted the MAC, defaulting to HMAC, that used the SHA-1 alias to SHA-160, and fixing X942_PRF::name().
* BouncyCastle generated test vectors for SP800-108Kai Michaelis2016-05-191-2/+2
|
* add label parameter to KDF::derive_keyKai Michaelis2016-05-191-1/+2
|
* add missing overridesDaniel Neus2016-01-081-1/+1
| | | | found by gcc with -Wsuggest-override
* Add --data-dir option to test commandJack Lloyd2015-12-201-1/+1
| | | | | | | Understand using '-' on the command line to mean stdin Fix last few unit tests that wanted to write to the filesystem; removes outdata directory.
* If skipping a test due to diabled algo, only print if in verbose mode.Jack Lloyd2015-12-191-1/+2
| | | | | | Also fix KDF tests which failed on missing algo GH #367
* Update and consolidate the test framework.Jack Lloyd2015-11-111-24/+35
| | | | | | | | | | | The tests previously had used 4 to 6 different schemes internally (the vec file reader framework, Catch, the old InSiTo Boost.Test tests, the PK/BigInt tests which escaped the rewrite in 1.11.7, plus a number of one-offs). Converge on a design that works everywhere, and update all the things. Fix also a few bugs found by the test changes: SHA-512-256 name incorrect, OpenSSL RC4 name incorrect, signature of FFI function botan_pubkey_destroy was wrong.
* Remove use of lookup.h in favor of new T::create API.Jack Lloyd2015-09-211-1/+0
|
* Fix TEST_DATA_DIRSimon Warta2015-07-151-1/+1
|
* Make Botan compile when only some modules are enabledSimon Warta2015-07-031-0/+8
| | | | Fixes #146.
* Remove algo factory, engines, global RNG, global state, etc.lloyd2015-02-041-0/+1
| | | | | | | | | | | | | | | Convert all uses of Algorithm_Factory and the engines to using Algo_Registry The shared pool of entropy sources remains but is moved to EntropySource. With that and few remaining initializations (default OIDs and aliases) moved elsewhere, the global state is empty and init and shutdown are no-ops. Remove almost all of the headers and code for handling the global state, except LibraryInitializer which remains as a compatability stub. Update seeding for blinding so only one hacky almost-global RNG instance needs to be setup instead of across all pubkey uses (it uses either the system RNG or an AutoSeeded_RNG if the system RNG is not available).
* Ensure all files have copyright and license info.lloyd2015-01-101-0/+6
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Split up docs into the reference manual, the website, and everything else.lloyd2014-01-101-0/+30
| | | | | | | | | | | Add `website` target to makefile. Some progress towards fixing minimized builds. TLS now hard requires ECDSA and GCM since otherwise a minimized build has only insecure options. Remove boost_thread dependency in command line tool
* Rename test sourceslloyd2014-01-071-43/+0
|
* Split up public key tests and data, use new test frameworklloyd2014-01-051-1/+1
|
* Shuffle things around. Add NIST X.509 test to build.lloyd2014-01-011-0/+43