Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix time range issue for 32 bit platforms | Simon Warta | 2015-07-16 | 4 | -31/+87 |
| | |||||
* | Remove semicolons at the end of macros | Daniel Seither | 2015-07-15 | 1 | -3/+3 |
| | |||||
* | Add missing semicolons | Daniel Seither | 2015-07-15 | 2 | -2/+2 |
| | |||||
* | Force semicolons at the end of BOTAN_REGISTER_* macro invocations | Daniel Seither | 2015-07-15 | 1 | -2/+8 |
| | | | | | | | | | | | | | | All BOTAN_REGISTER_* macros are defined as namespace { some_command(); } So, if such a macro is used with a semicolon at the end, we have `namespace { ... };` which is unnecessary and makes gcc complain when run with with -Wpedantic. However, for consistency, it is great to end those macro invocations with a semicolon. This commit forces semicolons by appending a dummy definition with the necessary semicolon missing. | ||||
* | Construct X509_Time from date integers in test x509 | Simon Warta | 2015-07-15 | 1 | -6/+12 |
| | |||||
* | Fix round_up | Simon Warta | 2015-07-15 | 10 | -20/+152 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 3 | -0/+9667 |
| | |||||
* | Have an outdata dir for tests | Simon Warta | 2015-07-15 | 3 | -6/+8 |
| | | | | ... for peaceful development | ||||
* | Fix TEST_DATA_DIR | Simon Warta | 2015-07-15 | 20 | -40/+38 |
| | |||||
* | Check if there are test vector files in a given test dir | Simon Warta | 2015-07-15 | 1 | -2/+8 |
| | |||||
* | Improve test reporting | Simon Warta | 2015-07-15 | 2 | -7/+9 |
| | |||||
* | Refactor travis configuration for the use of the container infrastructure. | Simon Warta | 2015-07-12 | 4 | -31/+37 |
| | |||||
* | Fix fuzzer.cpp to compile even if x509 or tls is disabled | Jack Lloyd | 2015-07-11 | 1 | -12/+31 |
| | |||||
* | Compile openssl RSA only when botan/rsa.h is available | Simon Warta | 2015-07-12 | 1 | -0/+6 |
| | |||||
* | Add modules all/min to travis matrix | Simon Warta | 2015-07-12 | 1 | -1/+8 |
| | |||||
* | Add an application to the command line providing a fuzzer entry point. | Jack Lloyd | 2015-07-11 | 1 | -0/+122 |
| | |||||
* | Remove dead code (Boost.Python makefile, unused configure.py functions) | Jack Lloyd | 2015-07-11 | 1 | -26/+0 |
| | |||||
* | Test make install in CI | Simon Warta | 2015-07-10 | 2 | -0/+3 |
| | |||||
* | Remove combine_relnotes references in install script | Chris Desjardins | 2015-07-10 | 1 | -7/+1 |
| | | | | | | | | copy doc/news.rst to installdir/news.txt Remove combine_relnotes references in install script copy doc/news.rst to installdir/news.txt | ||||
* | Assume that $COVERALLS_REPO_TOKEN might not be set (e.g. pull requests) | Simon Warta | 2015-07-09 | 1 | -1/+2 |
| | |||||
* | Don't put pointers into vector iterator constructor in make_bcrypt | Simon Warta | 2015-07-09 | 1 | -2/+2 |
| | |||||
* | Fix module combi: adler32,tss | Simon Warta | 2015-07-08 | 2 | -0/+3 |
| | |||||
* | Fix module combi: adler32,threefish_avx2 | Simon Warta | 2015-07-08 | 1 | -0/+4 |
| | |||||
* | Fix module combi: adler32,siv | Simon Warta | 2015-07-08 | 2 | -1/+6 |
| | |||||
* | Fix module combi: adler32,openpgp | Simon Warta | 2015-07-08 | 1 | -0/+1 |
| | |||||
* | Fix module combi: adler32,mce | Simon Warta | 2015-07-08 | 3 | -17/+26 |
| | |||||
* | Fix module combi: adler32,ffi | Simon Warta | 2015-07-08 | 1 | -0/+2 |
| | |||||
* | Fix module combi: adler32,eme_raw | Simon Warta | 2015-07-08 | 1 | -2/+0 |
| | |||||
* | Fix module combi: adler32,eme_oaep | Simon Warta | 2015-07-08 | 5 | -3/+2 |
| | |||||
* | Fix compilation by Clang with _LIBCPP_DEBUG | LSK | 2015-07-08 | 1 | -4/+4 |
| | |||||
* | Fix to_string for BER_Object when debug STL is used | Simon Warta | 2015-07-07 | 2 | -2/+9 |
| | |||||
* | ECC pointmul test requires ECDSA | Simon Warta | 2015-07-06 | 1 | -0/+8 |
| | |||||
* | GCC 4.8 doesn't have UbSan, remove for Travis | Jack Lloyd | 2015-07-05 | 1 | -1/+2 |
| | |||||
* | Make sanitizer a build mode for easy use by developers. | Jack Lloyd | 2015-07-05 | 2 | -1/+2 |
| | |||||
* | Add sanitizer build to Travis, using debug iterators, ASan and UbSan. | Jack Lloyd | 2015-07-05 | 1 | -0/+2 |
| | | | | Looks good for me locally with GCC 4.9.1 | ||||
* | Fix invalid iterator use in TLS client | Jack Lloyd | 2015-07-05 | 1 | -1/+1 |
| | |||||
* | The gf2m type is an unsigned 16-bit, so under C promotion rules a | Jack Lloyd | 2015-07-05 | 1 | -1/+1 |
| | | | | | | shift promotes to signed int rather than an unsigned value. However here we wish to use a large shift, which can cause a signed overflow. Add static_cast to force to the desired (unsigned) type. | ||||
* | Avoid building tls_server on MinGW. GH #39 | Jack Lloyd | 2015-07-05 | 1 | -3/+3 |
| | |||||
* | More test coverage improvements. | Jack Lloyd | 2015-07-05 | 1 | -4/+6 |
| | | | | | | Specify expected server name on client side of TLS test so it checks the cert DNS name. Use AutoSeeded_RNG to generate server cert, as on platforms with a system rng it is otherwise not used currently. | ||||
* | Test more TLS functionality (closing, key material export, session tickets) | Jack Lloyd | 2015-07-04 | 1 | -1/+23 |
| | |||||
* | Misread which call MSVC was complaining about | Jack Lloyd | 2015-07-04 | 1 | -5/+7 |
| | |||||
* | MSVC fix, for some reason it believes the load_key call to be ambigious | Jack Lloyd | 2015-07-04 | 1 | -1/+2 |
| | |||||
* | Add a roundtrip test of curve25519 keys | Jack Lloyd | 2015-07-04 | 1 | -0/+58 |
| | | | | | Encoding and decoding of public and private keys and actually computing a shared value. Previous only had KATs of the basic scalarmult algorithm. | ||||
* | Tweak formatting of readme | Jack Lloyd | 2015-07-03 | 1 | -1/+1 |
| | |||||
* | Make ./configure.py --no-autoload --enable-modules='adler32,dlies' compile | Simon Warta | 2015-07-03 | 2 | -3/+11 |
| | |||||
* | Add seperator above test summary | Simon Warta | 2015-07-03 | 1 | -0/+1 |
| | |||||
* | Simplify the website and documentation layout. | Jack Lloyd | 2015-07-03 | 3 | -21/+30 |
| | | | | | | | | | | | | | | Merge the website index, download page, algo page into the readme file so all the important information is in one place. The readme.rst is now also used as the website landing page. Remove the website target on the makefile, replaced by website.sh, since I'm the only one who ever needs to run this. Fix various ReST formatting bugs in news.rst and the manual Remove the old build_log which hasn't been touched in years and refers entirely to compilers which we don't support anymore. | ||||
* | Make Botan compile when only some modules are enabled | Simon Warta | 2015-07-03 | 54 | -198/+463 |
| | | | | Fixes #146. |