Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a test of ECC encoding options | Jack Lloyd | 2018-03-10 | 1 | -0/+47 |
| | |||||
* | Lookup EC curves via name instead of OID | Jack Lloyd | 2018-03-10 | 1 | -3/+3 |
| | |||||
* | Avoid CurveGFp in EC_Group interface | Jack Lloyd | 2018-01-31 | 1 | -14/+14 |
| | |||||
* | Reorganize code to avoid cli/test build failures if filesystem disabled | Jack Lloyd | 2018-01-19 | 1 | -48/+55 |
| | | | | Fixes #1422 | ||||
* | Avoid possible null pointer deref | Jack Lloyd | 2017-12-22 | 1 | -2/+2 |
| | | | | Caught with Coverity | ||||
* | Merge GH #1365 Always set domain encoding correctly when loading an ECC key | Jack Lloyd | 2017-12-19 | 1 | -0/+2 |
|\ | |||||
| * | Always set domain encoding correctly when loading an ECC key | René Korthaus | 2017-12-19 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | When loading an ECC key from file, the domain encoding was always set to explicit instead of depending on the encoded key file read. This resulted in different encodings and therefore different fingerprints of the same key when encoding the same key twice (once after generation, once after re-reading it). | ||||
* | | Add accessors to ASN1_Attribute and AlgorithmIdentifier | Jack Lloyd | 2017-12-19 | 1 | -1/+1 |
|/ | |||||
* | Move all the various X509 test data files under src/tests/data/x509 | Jack Lloyd | 2017-11-16 | 1 | -9/+9 |
| | |||||
* | Add final annotations as appropriate in the test code | Jack Lloyd | 2017-09-22 | 1 | -1/+1 |
| | |||||
* | More include header cleanups | Jack Lloyd | 2017-09-21 | 1 | -0/+1 |
| | |||||
* | Remove inner/outer OID check in EC_PrivateKey ctor | René Korthaus | 2017-09-13 | 1 | -2/+25 |
| | | | | | | | | RFC 5915 mandates that the OID of an ECDSA ECPrivateKey shall be id-ecPublicKey with the named curve as the parameters. ECPrivateKey may contain the named curve OID, too, which is compared to id-ecPublicKey. Such keys could not be loaded. We remove this check and add a test vector from strongswan. | ||||
* | Fix a few more MSVC warnings | Jack Lloyd | 2017-08-31 | 1 | -1/+1 |
| | |||||
* | Reformat code with astyle + fix code style | Tomasz Frydrych | 2017-05-01 | 1 | -19/+32 |
| | |||||
* | Convert to using standard uintN_t integer types | Jack Lloyd | 2016-12-18 | 1 | -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 Lloyd | 2016-11-03 | 1 | -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 fixes | Jack Lloyd | 2016-10-25 | 1 | -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 Lloyd | 2016-10-07 | 1 | -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 Lloyd | 2016-10-07 | 1 | -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 encoding | Jack Lloyd | 2016-06-17 | 1 | -23/+5 |
|\ | |||||
| * | remove all uses of EMSA1_BSI | Daniel Neus | 2016-05-02 | 1 | -23/+5 |
| | | |||||
* | | fix test failures and seg faults when Botan is configured with ↵ | René Korthaus | 2016-06-17 | 1 | -8/+18 |
|/ | | | | --module-policy bsi | ||||
* | Remaining cppcheck fixes that are not covered by GH #444 | Daniel Neus | 2016-03-05 | 1 | -3/+1 |
| | |||||
* | 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 | -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 Lloyd | 2015-12-02 | 1 | -4/+0 |
| | |||||
* | Guard these test calls with the same feature macro guarding their definition. | Jack Lloyd | 2015-11-28 | 1 | -0/+2 |
| | | | | GH #337 | ||||
* | Add helper for test output files. Remove last uses of hardcoded data dir macros | Jack Lloyd | 2015-11-16 | 1 | -14/+14 |
| | |||||
* | Update and consolidate the test framework. | Jack Lloyd | 2015-11-11 | 1 | -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::fingerprint | Jack Lloyd | 2015-09-12 | 1 | -0/+1 |
| | | | | Value checked against `openssl x509 -fingerprint` of same cert | ||||
* | Remove unused pkcs8 includes | Simon Warta | 2015-08-03 | 1 | -0/+1 |
| | | | | Only botan-cli, botan-tests and the FFI module depend on PKCS8 | ||||
* | Have an outdata dir for tests | Simon Warta | 2015-07-15 | 1 | -6/+6 |
| | | | | ... for peaceful development | ||||
* | Fix TEST_DATA_DIR | Simon Warta | 2015-07-15 | 1 | -16/+14 |
| | |||||
* | Make Botan compile when only some modules are enabled | Simon Warta | 2015-07-03 | 1 | -4/+13 |
| | | | | Fixes #146. | ||||
* | Replace method to_hex() by Botan::hex_encode() in test | Simon Warta | 2015-06-30 | 1 | -8/+3 |
| | |||||
* | tests: Convert &vec[0] to vec.data() | Simon Warta | 2015-06-30 | 1 | -5/+5 |
| | |||||
* | Replace \n by std::endl in tests to ensure proper flushing | Simon Warta | 2015-06-19 | 1 | -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 56 | neusdan | 2015-03-10 | 1 | -1/+1 |
| | |||||
* | Ensure all files have copyright and license info. | lloyd | 2015-01-10 | 1 | -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 available | lloyd | 2014-12-28 | 1 | -2/+2 |
| | |||||
* | Fix minimized builds. Patch by Markus Wanner sent to botan-devel | lloyd | 2014-02-08 | 1 | -0/+13 |
| | |||||
* | Remove PBES1 entirely | lloyd | 2014-01-18 | 1 | -3/+1 |
| | |||||
* | Split up public key tests and data, use new test framework | lloyd | 2014-01-05 | 1 | -0/+490 |