aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_ecdsa.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-181-14/+14
| | | | | | 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.
* Remove ability to add OIDS at runtime. Remove global OID lock.Jack Lloyd2016-11-031-1/+2
| | | | | | | | | | | OID map is now generated from an input file on an as needed basis. Just uses a sequence of ifs - simple, fast, and small code size. Merges oid_lookup sub-module which was already required by asn1 anyway, so completely non-optional. Removes @neusdan's nice OID tests since without any runtime adds the tests are moot.
* Static analyzer fixesJack Lloyd2016-10-251-4/+7
| | | | | | | | | Check return value of read, found by Clang. See also #677 Remove unused member variable in OpenSSL ECC, found by Clang. In ECDSA tests, if the pointer is null we should return rather than dereferencing it. Found by Coverity.
* Revert PK_Verifier change (don't require RNG there).Jack Lloyd2016-10-071-7/+7
| | | | | | | Verification is deterministic and public, so really no RNG is ever needed. Change provider handling - accepts "base", "openssl", or empty, otherwise throws a Provider_Not_Found exception.
* Remove Algo_Registry usage from public key code.Jack Lloyd2016-10-071-14/+14
| | | | | | | | 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.
* Merge GH #487 Remove CVC certificates and EMSA1_BSI signature encodingJack Lloyd2016-06-171-23/+5
|\
| * remove all uses of EMSA1_BSIDaniel Neus2016-05-021-23/+5
| |
* | fix test failures and seg faults when Botan is configured with ↵René Korthaus2016-06-171-8/+18
|/ | | | --module-policy bsi
* Remaining cppcheck fixes that are not covered by GH #444Daniel Neus2016-03-051-3/+1
|
* some trivial compiler/PVS-Studio warning fixesDaniel Neus2015-12-221-1/+1
|
* Add --data-dir option to test commandJack Lloyd2015-12-201-102/+73
| | | | | | | Understand using '-' on the command line to mean stdin Fix last few unit tests that wanted to write to the filesystem; removes outdata directory.
* Missing test update for ECC group removal.Jack Lloyd2015-12-021-4/+0
|
* Guard these test calls with the same feature macro guarding their definition.Jack Lloyd2015-11-281-0/+2
| | | | GH #337
* Add helper for test output files. Remove last uses of hardcoded data dir macrosJack Lloyd2015-11-161-14/+14
|
* Update and consolidate the test framework.Jack Lloyd2015-11-111-311/+242
| | | | | | | | | | | 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 a test for X509_Certificate::fingerprintJack Lloyd2015-09-121-0/+1
| | | | Value checked against `openssl x509 -fingerprint` of same cert
* Remove unused pkcs8 includesSimon Warta2015-08-031-0/+1
| | | | Only botan-cli, botan-tests and the FFI module depend on PKCS8
* Have an outdata dir for testsSimon Warta2015-07-151-6/+6
| | | | ... for peaceful development
* Fix TEST_DATA_DIRSimon Warta2015-07-151-16/+14
|
* Make Botan compile when only some modules are enabledSimon Warta2015-07-031-4/+13
| | | | Fixes #146.
* Replace method to_hex() by Botan::hex_encode() in testSimon Warta2015-06-301-8/+3
|
* tests: Convert &vec[0] to vec.data()Simon Warta2015-06-301-5/+5
|
* Replace \n by std::endl in tests to ensure proper flushingSimon Warta2015-06-191-15/+15
| | | | | | | - Remove additional newlines in CHECK_MESSAGE call - Remove redundant output of algo in aead_test() Closes #115
* Comile fixes for VC 2013. Based on github pull 56neusdan2015-03-101-1/+1
|
* Ensure all files have copyright and license info.lloyd2015-01-101-7/+9
| | | | | 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-2/+2
|
* Fix minimized builds. Patch by Markus Wanner sent to botan-devellloyd2014-02-081-0/+13
|
* Remove PBES1 entirelylloyd2014-01-181-3/+1
|
* Split up public key tests and data, use new test frameworklloyd2014-01-051-0/+490