Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix test, catching wrong exception type | Jack Lloyd | 2016-11-05 | 1 | -1/+1 |
| | |||||
* | Handle missing SHA-x in DSA param gen test | Jack Lloyd | 2016-11-04 | 1 | -8/+13 |
| | |||||
* | Add test for DSA parameter generation | Jack Lloyd | 2016-11-03 | 1 | -2/+44 |
| | | | | | Limited to 1024 bit params by default to keep runtimes reasonable, but test vectors for all sizes from FIPS 186-3 do pass. | ||||
* | Fix leading zero bytes in DSA, ECDSA, ECGDSA and ECKCDSA signatures | René Korthaus | 2016-08-17 | 1 | -0/+27 |
| | |||||
* | test BigInt::operator%=(word y) | Daniel Neus | 2016-07-26 | 1 | -0/+9 |
| | |||||
* | Fix for GCC 6 | Jack Lloyd | 2016-05-23 | 1 | -0/+1 |
| | |||||
* | Add more tests for modular inverse | Jack Lloyd | 2016-02-21 | 1 | -4/+7 |
| | | | | | The result of fuzzing with AFL for a while, then running cmin on the result. | ||||
* | For odd moduli use a input-independent modular inverse algorithm. | Jack Lloyd | 2016-02-20 | 1 | -2/+12 |
| | | | | Also adds a (not const time) implementation of almost Montgomery reduction. | ||||
* | Add tests and timings for inverse_mod | Jack Lloyd | 2016-02-20 | 1 | -2/+31 |
| | |||||
* | Split up BigInt tests | Jack Lloyd | 2016-02-17 | 1 | -127/+248 |
| | | | | | | Removes a fair number of the power mod test cases for size and test time. Would be better to add a randomized or fuzzer-based test. Otherwise no change. | ||||
* | Fix (nearly) infinite loop in RESSOL (modular square root). | Jack Lloyd | 2016-02-01 | 1 | -0/+18 |
| | | | | | | | It first computed the first i for q**(2**i) == 1, then checked that i was smaller than s. Given a composite modulus (for which the algorithm does not work), the loop might do a very large amount of work before returning the failure. | ||||
* | add missing overrides | Daniel Neus | 2016-01-08 | 1 | -1/+1 |
| | | | | found by gcc with -Wsuggest-override | ||||
* | some trivial compiler/PVS-Studio warning fixes | Daniel Neus | 2015-12-22 | 1 | -1/+1 |
| | |||||
* | Add --data-dir option to test command | Jack Lloyd | 2015-12-20 | 1 | -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. | ||||
* | Fix occasional test fails | Jack Lloyd | 2015-11-11 | 1 | -5/+31 |
| | | | | | | | | Increase the iterations of the BigInt::random_integer test. Since things get slow quickly, leave the larger range tests to higher soak levels. In TLS, if the corrupted data causes an exception immediately that's ok because it's corrupted data. | ||||
* | Update and consolidate the test framework. | Jack Lloyd | 2015-11-11 | 1 | -494/+237 |
| | | | | | | | | | | | 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. | ||||
* | Add power analysis countermeasures for ECC point multiplications. | Jack Lloyd | 2015-08-21 | 1 | -49/+0 |
| | | | | | | | | 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. | ||||
* | Restrict input values to NIST reductions to defined range | Jack Lloyd | 2015-08-08 | 1 | -3/+13 |
| | |||||
* | Expose the NIST prime values and reduction operations as plain functions. | Jack Lloyd | 2015-08-08 | 1 | -16/+138 |
| | | | | | | Previously they were hidden away as private functions on the CurveGFp types. This allows directly testing the reduction functions against other computational methods. | ||||
* | Better living through macros | Jack Lloyd | 2015-07-24 | 1 | -30/+32 |
| | |||||
* | BigInt::to_u32bit failed on 32-bit integers. GH #220 | Jack Lloyd | 2015-07-23 | 1 | -1/+47 |
| | |||||
* | Make Botan compile when only some modules are enabled | Simon Warta | 2015-07-03 | 1 | -0/+15 |
| | | | | Fixes #146. | ||||
* | Avoid DEBUG define; Use NDEBUG if necessary | Simon Warta | 2015-07-03 | 1 | -3/+1 |
| | |||||
* | ifstream/ostream take std::string | Simon Warta | 2015-06-23 | 1 | -1/+1 |
| | |||||
* | Ensure all files have copyright and license info. | lloyd | 2015-01-10 | 1 | -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 available | lloyd | 2014-12-28 | 1 | -2/+2 |
| | |||||
* | Remove unused test. Bugzilla 272 | lloyd | 2014-05-17 | 1 | -65/+0 |
| | |||||
* | Any fixed MR iterations is probably wrong for somebody. Allow the user | lloyd | 2014-04-25 | 1 | -4/+4 |
| | | | | | | to specify a probability as well as if n was randomly chosen or not. If the input is random use a better bounds to reduce the number of needed tests. | ||||
* | Cleanups | lloyd | 2014-02-13 | 1 | -6/+0 |
| | |||||
* | Split up docs into the reference manual, the website, and everything else. | lloyd | 2014-01-10 | 1 | -0/+455 |
| | | | | | | | | | | | 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 sources | lloyd | 2014-01-07 | 1 | -428/+0 |
| | |||||
* | Move previously common function to only remaining caller's source | lloyd | 2014-01-06 | 1 | -0/+18 |
| | |||||
* | Split up public key tests and data, use new test framework | lloyd | 2014-01-05 | 1 | -1/+1 |
| | |||||
* | Cull remaining mostly dubious examples. Also remove readme.txt | lloyd | 2014-01-01 | 1 | -92/+145 |
| | |||||
* | Shuffle things around. Add NIST X.509 test to build. | lloyd | 2014-01-01 | 1 | -0/+357 |