aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_ecc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add missing overridesDaniel Neus2016-01-081-1/+1
| | | | found by gcc with -Wsuggest-override
* Correct copyright info in unit_ecc.cpp fileJack Lloyd2015-12-261-1/+6
| | | | | | | | At some point during the test changeover the (C) info got lost from this file. Also try randomizing the point repr in the copy test, just to spice things up a bit.
* some trivial compiler/PVS-Studio warning fixesDaniel Neus2015-12-221-8/+1
|
* Remove support for broken 112 and 128 bit SECP ECC groups.Jack Lloyd2015-12-021-4/+0
|
* Convert const char* arguments on Test:: to std::stringsJack Lloyd2015-11-281-1/+1
| | | | unless they are actually optional
* Avoid multiplication by zero here as get_affine will reject itJack Lloyd2015-11-131-1/+1
|
* Update and consolidate the test framework.Jack Lloyd2015-11-111-668/+550
| | | | | | | | | | | 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 for minimized buildsJack Lloyd2015-08-211-0/+1
|
* Add power analysis countermeasures for ECC point multiplications.Jack Lloyd2015-08-211-20/+30
| | | | | | | | The plain PointGFp operator* now uses Montgomery ladder exclusively. Adds a blinded point multiply algorithm which uses exponent and point randomization, as well as a Montgomery ladder technique that takes a random walk of the possible addition chains for k.
* Make Botan compile when only some modules are enabledSimon Warta2015-07-031-7/+9
| | | | Fixes #146.
* tests: Convert &vec[0] to vec.data()Simon Warta2015-06-301-38/+38
|
* Replace \n by std::endl in tests to ensure proper flushingSimon Warta2015-06-191-8/+8
| | | | | | | - Remove additional newlines in CHECK_MESSAGE call - Remove redundant output of algo in aead_test() Closes #115
* Ensure all files have copyright and license info.lloyd2015-01-101-1/+1
| | | | | 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-4/+4
|
* Switch to using Montgomery ladder for EC point multiplication.lloyd2014-12-101-55/+75
| | | | | The test function create_random_point did not actually create a point on the curve - fix.
* Add specialized reduction for P-521 along with 9x9 Comba routines.lloyd2014-11-151-12/+16
| | | | | Roughly 35-50% faster on my laptop (depending on if mlock is enabled, the overhead in that allocator is becoming much more of a hotspot).
* Add some secp256k1 KATs and a randomized ECC test suggested inlloyd2014-10-101-3/+77
| | | | http://crypto.stackexchange.com/questions/784
* Compile fixeslloyd2014-02-091-5/+3
|
* More fixes for minified buildslloyd2014-02-091-8/+14
|
* Split up public key tests and data, use new test frameworklloyd2014-01-051-0/+842