aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_rsa.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reformat code with astyle + fix code styleTomasz Frydrych2017-05-011-40/+55
|
* Build fixJack Lloyd2017-03-291-1/+1
|
* Fix RSA blinding testJack Lloyd2017-03-291-5/+7
| | | | | | Failed if OpenSSL was used since OpenSSL does (whatever it does). GH #879
* Fix final RSA blinding testJack Lloyd2017-03-291-4/+5
| | | | See GH #879
* Fix rsa_blinding tests if emsa_raw is missing and add tests for rsa_blinding ↵Daniel Neus2017-02-161-3/+46
| | | | while encrypting/decrypting
* Don't use deprecated PK_Signer ctor in testsRené Korthaus2017-01-011-1/+1
|
* Fix for EME-Raw being disabled as in BSI policyJack Lloyd2016-12-311-1/+8
|
* Add test that triggers Blinder to reinitialize stateJack Lloyd2016-12-311-0/+36
|
* Add RSA PKCS1v1.5 signature verification tests from Wycheproof suite.Jack Lloyd2016-12-201-0/+21
| | | | | A set of carefully generated invalid signatures which are sometimes accepted by implementations due to bugs in padding verification.
* Minor refactoring of Text_Based_TestJack Lloyd2016-12-191-8/+10
| | | | | | 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.
* Remove automatic self-testing of public and private keysJack Lloyd2016-11-031-3/+3
| | | | | | | | | | | | | Rarely expected and often causes performance problems, especially for private keys. Instead applications should call check_key explicitly to validate keys when necessary. Note this removal doesn't apply to tests like ECDH on-the-curve tests, where a check on the public key is required for security of our own key. Updates most APIs to remove RNG calls, where they are no longer required. Exception is PKCS8 interface, pending further work there (see GH #685) it just ignores the RNG argument now.
* Test PK key creation via create_private_key APIJack Lloyd2016-10-311-8/+1
|
* Add generalized KEM interfaceJack Lloyd2015-12-261-0/+20
| | | | | | Convert McEliece KEM to use it Add RSA-KEM
* Add --data-dir option to test commandJack Lloyd2015-12-201-3/+3
| | | | | | | 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-106/+87
| | | | | | | | | | | 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.
* Expose providers for public key operationsJack Lloyd2015-10-141-2/+2
| | | | | | | | For PK_Encryptor and company they are requested via a new provider param to the constructors. The speed command gets a --provider option so you can see benchmark results with the different versions.
* Fix TEST_DATA_DIRSimon Warta2015-07-151-3/+3
|
* Make Botan compile when only some modules are enabledSimon Warta2015-07-031-0/+8
| | | | Fixes #146.
* Ensure all files have copyright and license info.lloyd2015-01-101-1/+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-5/+3
|
* Split up docs into the reference manual, the website, and everything else.lloyd2014-01-101-0/+117
| | | | | | | | | | | 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-117/+0
|
* Split up public key tests and data, use new test frameworklloyd2014-01-051-0/+117