aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_c25519.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Minor refactoring of Text_Based_TestJack Lloyd2016-12-191-1/+1
| | | | | | 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.
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-181-1/+1
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* 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-2/+2
| | | | | | | | 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.
* Check result of dynamic_castJack Lloyd2016-02-091-10/+17
| | | | | | Unlikely to fail in this case but anything's possible. Found by Coverity
* add missing overridesDaniel Neus2016-01-081-1/+1
| | | | found by gcc with -Wsuggest-override
* 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-88/+88
| | | | | | | | | | | 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
|
* Misread which call MSVC was complaining aboutJack Lloyd2015-07-041-5/+7
|
* MSVC fix, for some reason it believes the load_key call to be ambigiousJack Lloyd2015-07-041-1/+2
|
* Add a roundtrip test of curve25519 keysJack Lloyd2015-07-041-0/+58
| | | | | Encoding and decoding of public and private keys and actually computing a shared value. Previous only had KATs of the basic scalarmult algorithm.
* Make Botan compile when only some modules are enabledSimon Warta2015-07-031-7/+8
| | | | Fixes #146.
* tests: Convert &vec[0] to vec.data()Simon Warta2015-06-301-1/+1
|
* Replace \n by std::endl in tests to ensure proper flushingSimon Warta2015-06-191-1/+1
| | | | | | | - 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-0/+6
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Add Curve25519 based on curve25519-donna by Adam Langley.lloyd2014-12-271-0/+56
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