Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add stricter time parsing; Add more tests | Simon Warta | 2015-08-11 | 1 | -1/+79 |
| | |||||
* | Test implicit X509_Time copy constructor and assignment | Simon Warta | 2015-08-11 | 1 | -0/+17 |
| | |||||
* | Add Not matcher for Catch | Simon Warta | 2015-08-11 | 1 | -0/+24 |
| | |||||
* | Minor refactoring of existing Matchers | Simon Warta | 2015-08-11 | 1 | -7/+10 |
| | |||||
* | Remove string constructor of X509_Time() | Simon Warta | 2015-08-11 | 1 | -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 Warta | 2015-08-11 | 1 | -82/+64 |
| | |||||
* | Strict uint32 parsing | Simon Warta | 2015-08-11 | 1 | -7/+10 |
| | |||||
* | Avoid integer overlow in string->uint32 converter | Simon Warta | 2015-08-10 | 1 | -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. | ||||
* | Add matchers for integers and bool | Simon Warta | 2015-08-08 | 2 | -26/+73 |
| | |||||
* | Refactor catchy tests | Simon Warta | 2015-08-08 | 7 | -106/+179 |
| | | | | | | | | * 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 | ||||
* | Increase range in Bigint random_integer test from +-10% to +-15% | Simon Warta | 2015-07-30 | 1 | -20/+20 |
| | | | | For #233 | ||||
* | Improve calendar_point unit tests | Simon Warta | 2015-07-27 | 1 | -5/+36 |
| | |||||
* | Fix BigInt random_integer() distribution issue. | Simon Warta | 2015-07-24 | 1 | -0/+97 |
| | | | | Fixes #108 | ||||
* | Refactor BigInt | Simon Warta | 2015-07-24 | 1 | -0/+74 |
| | |||||
* | Include build.h before doing a macro check; was causing tests to be skipped | Jack Lloyd | 2015-07-18 | 1 | -0/+2 |
| | |||||
* | Fix time range issue for 32 bit platforms | Simon Warta | 2015-07-16 | 1 | -23/+46 |
| | |||||
* | Fix round_up | Simon Warta | 2015-07-15 | 1 | -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), cvc | Simon Warta | 2015-07-15 | 2 | -0/+89 |
| | |||||
* | Add test: stl_util; Add empty test: utils | Simon Warta | 2015-07-15 | 2 | -0/+28 |
| | |||||
* | Add initial catchy test: base64 | Simon Warta | 2015-07-15 | 2 | -0/+9648 |