aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.h
Commit message (Collapse)AuthorAgeFilesLines
* McEliece cleanupsJack Lloyd2015-09-291-0/+2
| | | | | | | | | | | | | | | | | | | | Remove and consolidate various headers Reduce memory usage of GF2m_Field by sharing the log and exponent tables across all instances of a particular word size. Remove McEliece_Public_Operation and McEliece_Private_Operation which were difficult to use safely. Instead only the KEM operations are exposed. Add McEliece_PublicKey::random_plaintext_element Add command line `mce` tool and some McEliece documentation Convert the speed program to check McEliece keys of the suggested size Add McEliece KATs for both key generation and KEM Fix HMAC_DRBG constructor which derefed a pointer before its time
* Add power analysis countermeasures for ECC point multiplications.Jack Lloyd2015-08-211-1/+66
| | | | | | | | 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.
* Fix two crashes in the BER decoder found with afl.Jack Lloyd2015-08-021-0/+2
| | | | | One a read at 0 of an empty vector, the other causing allocation of an arbitrary amount of memory.
* Have an outdata dir for testsSimon Warta2015-07-151-0/+2
| | | | ... for peaceful development
* Fix TEST_DATA_DIRSimon Warta2015-07-151-3/+3
|
* Improve test reportingSimon Warta2015-07-151-1/+1
|
* Make Botan compile when only some modules are enabledSimon Warta2015-07-031-0/+30
| | | | Fixes #146.
* Add tests for compression and SRP.lloyd2015-05-131-0/+3
| | | | | | | | Fix zlib decompression which was not ignoring Z_BUF_ERROR which is harmless in this context as process is already checking avail_in and avail_out after run returns. Bump version to 1.11.17
* Externalize the state of a RFC 6979 nonce computation.lloyd2015-03-121-1/+0
| | | | | | | | | | | | This lets you amortize quite a few memory allocations (RNG, various BigInts, etc) over many nonce generations. Change generate_rfc6979_nonce to just instantiate one of these states, call the function once, and return. This doesn't have any additional overhead versus the previous implementation of this function. Fix HMAC_DRBG to correctly reset its state to its starting position when you call clear() on it.
* Convert HKDF to the normal KDF interfacelloyd2015-02-181-1/+0
|
* Ensure all files have copyright and license info.lloyd2015-01-101-0/+5
| | | | | 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-1/+3
|
* Add Curve25519 based on curve25519-donna by Adam Langley.lloyd2014-12-271-0/+1
| | | | | | This uses only the c64 version from curve25519-donna; on systems that don't have a native uint128_t type, a donna128 type stands in for just enough 128-bit operations to satisfy donna.cpp
* Add an implementation of McEliece encryption based on HyMESfstrenzke2014-11-261-0/+1
| | | | | | | (https://www.rocq.inria.fr/secret/CBCrypto/index.php?pg=hymes). The original version is LGPL but cryptsource GmbH has secured permission to release it under a BSD license. Also includes the Overbeck CCA2 message encoding scheme.
* Add some secp256k1 KATs and a randomized ECC test suggested inlloyd2014-10-101-0/+1
| | | | http://crypto.stackexchange.com/questions/784
* Add RFC 6979 nonce generator. Also some HMAC_DRBG cleanups.lloyd2014-03-221-0/+1
|
* Include build.h in tests.h so feature macro checks work consistently.lloyd2014-02-081-0/+1
|
* Split up test vectors into per-algo files and app into botan-test forlloyd2014-01-101-1/+11
| | | | the tests and botan for everything else.
* Cleanupslloyd2014-01-071-2/+0
|
* Split up public key tests and data, use new test frameworklloyd2014-01-051-8/+17
|
* Make test target selectablelloyd2014-01-041-1/+1
|
* Make tss example a test of sortslloyd2014-01-011-5/+3
|
* Shuffle things around. Add NIST X.509 test to build.lloyd2014-01-011-0/+77