aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_dh.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Convert DH invalid key test to read from fileJack Lloyd2017-01-021-41/+30
|
* Add test vectors for public key checks from NIST CAVPRené Korthaus2017-01-021-0/+39
|
* Load q for DH public key in testsRené Korthaus2017-01-021-1/+11
|
* Add positive DH test vectors from NIST CAVPRené Korthaus2017-01-021-2/+11
|
* 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.
* Test PK key creation via create_private_key APIJack Lloyd2016-10-311-8/+1
|
* Remove Algo_Registry usage from public key code.Jack Lloyd2016-10-071-1/+1
| | | | | | | | Instead the key types exposes operations like `create_encryption_op` which will return the relevant operation if the algorithm supports it. Changes pubkey.h interface, now RNG is passed at init time. Blinder previous created its own RNG, now it takes it from app.
* Add negative tests with invalid inputs for the DH key agreement operationDaniel Neus2016-07-261-1/+33
|
* Add ECDH testsJack Lloyd2016-01-031-2/+2
| | | | Only has vectors for NIST curves (data taken from NIST CAVS file)
* Another Clang warningJack Lloyd2015-12-251-1/+1
|
* 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.
* Update and consolidate the test framework.Jack Lloyd2015-11-111-52/+58
| | | | | | | | | | | 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.
* Fix TEST_DATA_DIRSimon Warta2015-07-151-1/+1
|
* Make Botan compile when only some modules are enabledSimon Warta2015-07-031-4/+7
| | | | Fixes #146.
* 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.
* All tests now share an RNG. Uses system RNG if availablelloyd2014-12-281-2/+2
|
* More fixes for minified buildslloyd2014-02-091-2/+6
|
* Split up docs into the reference manual, the website, and everything else.lloyd2014-01-101-0/+60
| | | | | | | | | | | 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-60/+0
|
* Split up public key tests and data, use new test frameworklloyd2014-01-051-0/+60