aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #286 from randombit/mce-cleanupJack Lloyd2015-09-306-82/+221
|\ | | | | Cleanup and document McEliece implementation
| * Fix for minimized buildJack Lloyd2015-09-291-0/+8
| |
| * McEliece cleanupsJack Lloyd2015-09-296-82/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 some missing overridesDaniel Seither2015-09-251-4/+4
| |
* | Remove dead codeDaniel Seither2015-09-251-1/+0
| | | | | | | | `continue` cannot be reached due to `return` in the line above
* | Avoid concatination of charsSimon Warta2015-09-221-1/+1
|/ | | | | | | Ever tried? auto str = "some long string"; auto str2 = str + '\n'; It's not with the brainfuck finding the bug.
* Merge pull request #279 from randombit/fix-static-lib-registrationJack Lloyd2015-09-2111-31/+25
|\ | | | | Move the algorithm factory functions to T::create and move object registration to the source file for its base class. These resolve the issues which prevented successful use of a static library that was built with individual object files. Removes the restriction in configure.py which prevented building non-amalgamation static libs.
| * Remove use of lookup.h in favor of new T::create API.Jack Lloyd2015-09-2110-26/+20
| |
| * Fix pbkdf, pk padding and ECDH registration for static linking.Jack Lloyd2015-09-111-5/+5
| | | | | | | | | | | | | | | | With this change the tests pass when linked against a static library built in the normal (non-amalgamation) fashion. Remove the restriction in configure.py, and have circleci build the clang static build as a non-amalg.
* | Add a test for X509_Certificate::fingerprintJack Lloyd2015-09-121-0/+1
| | | | | | | | Value checked against `openssl x509 -fingerprint` of same cert
* | Update fuzzer testSimon Warta2015-09-101-28/+39
|/ | | | | | | * Handle No_Filesystem_Access case properly * Use steady_clock for benchmarking Fixes #276
* Fix pk signature test framework bug.Jack Lloyd2015-08-281-5/+5
| | | | | | | | Was attempting to test that the all-zero signature is invalid, then tested some mutated signatures. Unfortunately it zeroed out the signature before doing the mutation tests, so the mutated signatures were all very-low Hamming weight strings instead of being close to the original valid signature.
* Add test for compression of an empty bufferDaniel Seither2015-08-281-0/+7
| | | | | | | | | | | | This test currently fails: $ ./botan-test compression Failure testing zlib - zlib deflate error -2 Failure testing deflate - zlib deflate error -2 Failure testing gzip - zlib deflate error -2 Compression 3 tests 3 FAILs =============== Tests 3 FAILs
* Fix for minimized buildsJack Lloyd2015-08-211-0/+1
|
* Add power analysis countermeasures for ECC point multiplications.Jack Lloyd2015-08-215-73/+99
| | | | | | | | 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.
* Reactivate FFI PBKDF minimum iterations testSimon Warta2015-08-211-3/+2
| | | | | as dicussed here: https://github.com/randombit/botan/commit/480999c2820b0da995108d7474a74755cafd2924
* Add stricter time parsing; Add more testsSimon Warta2015-08-111-1/+79
|
* Test implicit X509_Time copy constructor and assignmentSimon Warta2015-08-111-0/+17
|
* Add Not matcher for CatchSimon Warta2015-08-111-0/+24
|
* Minor refactoring of existing MatchersSimon Warta2015-08-111-7/+10
|
* Remove string constructor of X509_Time()Simon Warta2015-08-111-23/+23
| | | | | | | | | | | * Break down string representations to to_string() and readable_string() * Add m_ prefix to member variable names * Fix order of methods * Move comments Doxygen friendly to header * Make set_to() private (future subjejt of refectoring); People should use constructor Closes #185
* Refector tests style (use matchers)Simon Warta2015-08-111-82/+64
|
* Strict uint32 parsingSimon Warta2015-08-111-7/+10
|
* Avoid integer overlow in string->uint32 converterSimon Warta2015-08-101-0/+42
| | | | | | | On systems where unsigned long is uint64 (typically 64 bit systems), a string containing a number greater than 2^32-1 was sucessfully converted to a uint64 and than reduced to uint32, causing an overflow. E.g. to_u32bit("4294967296") was 0 and to_u32bit("4294967297") was 1.
* Deactivate tests that consistently fail in debug modeSimon Warta2015-08-091-0/+8
| | | | [ci skip]
* Restrict input values to NIST reductions to defined rangeJack Lloyd2015-08-081-3/+13
|
* Merge branch 'master' of https://github.com/randombit/botanJack Lloyd2015-08-0810-238/+404
|\
| * Rename fuzzer test consistentlySimon Warta2015-08-081-2/+2
| | | | | | | | Align filename with test_fuzzer()
| * Refactor most of FFI test for matchersSimon Warta2015-08-081-103/+149
| |
| * Add matchers for integers and boolSimon Warta2015-08-082-26/+73
| |
| * Refactor catchy testsSimon Warta2015-08-088-107/+180
| | | | | | | | | | | | | | | | * Add std::vector matcher * Add test_base to ensure Botan::vector<X> works with matcher * Rewrite base64 tests from CHECK( to CHECK_THAT( Closes #206
* | Expose the NIST prime values and reduction operations as plain functions.Jack Lloyd2015-08-081-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.
* Remove unused pkcs8 includesSimon Warta2015-08-032-1/+3
| | | | Only botan-cli, botan-tests and the FFI module depend on PKCS8
* Fix for minimized buildsJack Lloyd2015-08-031-4/+13
|
* Fix two crashes in the BER decoder found with afl.Jack Lloyd2015-08-0256-0/+378
| | | | | One a read at 0 of an empty vector, the other causing allocation of an arbitrary amount of memory.
* Merge pull request #231 from tiwoc/add-overrideJack Lloyd2015-07-312-7/+7
|\ | | | | Add override specifiers
| * tests: Add missing overridesDaniel Seither2015-07-302-7/+7
| |
* | Increase range in Bigint random_integer test from +-10% to +-15%Simon Warta2015-07-301-20/+20
|/ | | | For #233
* Improve calendar_point unit testsSimon Warta2015-07-271-5/+36
|
* Fix typosSimon Warta2015-07-241-4/+4
| | | | Thanks to @vlajos https://github.com/vlajos/misspell_fixer
* Fix BigInt random_integer() distribution issue.Simon Warta2015-07-241-0/+97
| | | | Fixes #108
* Refactor BigIntSimon Warta2015-07-241-0/+74
|
* Better living through macrosJack Lloyd2015-07-241-30/+32
|
* BigInt::to_u32bit failed on 32-bit integers. GH #220Jack Lloyd2015-07-231-1/+47
|
* Add tests for RSA, ECDSA, and ECDH interfaces in FFI moduleJack Lloyd2015-07-181-36/+210
|
* Timing ratio is too tight for CI VMsJack Lloyd2015-07-181-1/+1
|
* Include build.h before doing a macro check; was causing tests to be skippedJack Lloyd2015-07-181-0/+2
|
* Add tests for some of the C89 interface.Jack Lloyd2015-07-181-0/+170
| | | | | Add missing returns to botan_kdf, botan_pbkdf, botan_pbkdf_timed; previously they always returned an error code.
* Read .crt files in tests as binary filesSimon Warta2015-07-171-1/+1
|
* Refactor internal/filesystem.hSimon Warta2015-07-162-16/+29
| | | | Closes #198