aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix time range issue for 32 bit platformsSimon Warta2015-07-162-25/+48
|
* Construct X509_Time from date integers in test x509Simon Warta2015-07-151-6/+12
|
* Fix round_upSimon Warta2015-07-151-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. src/lib/codec/base64/base64.cpp: : (round_up<size_t>(input_length, 3) / 3) * 4; 2. src/lib/codec/base64/base64.cpp: : (round_up<size_t>(input_length, 4) * 3) / 4; 3. src/lib/filters/transform_filter.cpp: return round_up(target_size, update_granularity); 4. src/lib/math/bigint/bigint.cpp: m_reg.resize(round_up<size_t>(size, 8)); 5. src/lib/math/bigint/bigint.cpp: m_reg.resize(round_up<size_t>((length / WORD_BYTES) + 1, 8)); 6. src/lib/math/numbertheory/mp_numth.cpp: BigInt z(BigInt::Positive, round_up<size_t>(2*x_sw, 16)); 7. src/lib/modes/cbc/cbc.cpp: return round_up(input_length, cipher().block_size()); 8. src/lib/modes/ecb/ecb.cpp: return round_up(input_length, cipher().block_size()); 9. src/lib/modes/xts/xts.cpp: return round_up(input_length, cipher().block_size()); 10. src/lib/pbkdf/pbkdf2/pbkdf2.cpp: const size_t blocks_needed = round_up(out_len, prf_sz) / prf_sz; 11. src/lib/tls/tls_record.cpp: const size_t buf_size = round_up( 12. src/lib/utils/rounding.h:inline T round_up(T n, T align_to) 1. Reason for change 2. Reason for change 3. first argument cannot be 0 (`target_size = 1024`) 4. Is a bug in the current implementation iff `size = 0` 5. first argument cannot be 0 6. round_up should return 0 if `x_sw = 0` 7. ? 8. ? 9. ? 10. first argument cannot be 0 (`if(out_len == 0) return 0;`) 11. first argument is unlikely to be 0 (`iv_size + msg_length + mac_size + (block_size ? 1 : 0)`) 12. Implementation
* Add tests: x509 (deactivated), cvcSimon Warta2015-07-152-0/+89
|
* Add test: stl_util; Add empty test: utilsSimon Warta2015-07-152-0/+28
|
* Add initial catchy test: base64Simon Warta2015-07-153-0/+9667
|
* Have an outdata dir for testsSimon Warta2015-07-153-6/+8
| | | | ... for peaceful development
* Fix TEST_DATA_DIRSimon Warta2015-07-1520-40/+38
|
* Check if there are test vector files in a given test dirSimon Warta2015-07-151-2/+8
|
* Improve test reportingSimon Warta2015-07-152-7/+9
|
* Fix module combi: adler32,tssSimon Warta2015-07-081-0/+1
|
* Fix module combi: adler32,sivSimon Warta2015-07-081-1/+1
|