aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix module combi: adler32,mceSimon Warta2015-07-081-13/+17
|
* ECC pointmul test requires ECDSASimon Warta2015-07-061-0/+8
|
* More test coverage improvements.Jack Lloyd2015-07-051-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 Lloyd2015-07-041-1/+23
|
* Misread which call MSVC was complaining aboutJack Lloyd2015-07-041-5/+7
|
* MSVC fix, for some reason it believes the load_key call to be ambigiousJack Lloyd2015-07-041-1/+2
|
* Add a roundtrip test of curve25519 keysJack Lloyd2015-07-041-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.
* Make ./configure.py --no-autoload --enable-modules='adler32,dlies' compileSimon Warta2015-07-031-0/+8
|
* Add seperator above test summarySimon Warta2015-07-031-0/+1
|
* Make Botan compile when only some modules are enabledSimon Warta2015-07-0329-164/+375
| | | | Fixes #146.
* Avoid DEBUG define; Use NDEBUG if necessarySimon Warta2015-07-031-3/+1
|
* Replace method to_hex() by Botan::hex_encode() in testSimon Warta2015-06-301-8/+3
|
* tests: Convert &vec[0] to vec.data()Simon Warta2015-06-3013-77/+77
|
* Let TLS unittests fail on exceptionSimon Warta2015-06-291-2/+2
|
* Add missing test report for TSS testsSimon Warta2015-06-252-0/+3
|
* ifstream/ostream take std::stringSimon Warta2015-06-232-4/+4
|
* Replace \n by std::endl in tests to ensure proper flushingSimon Warta2015-06-1927-122/+121
| | | | | | | - Remove additional newlines in CHECK_MESSAGE call - Remove redundant output of algo in aead_test() Closes #115
* Add DTLS versions to TLS handshake smoke testlloyd2015-06-191-3/+7
|
* Fix various bugs found by Coverity scanner.lloyd2015-05-151-1/+1
| | | | | | | Uninitialized variables, missing divide by zero checks, missing virtual destructor, etc. Only thing serious is bug in TLS maximum fragment decoder; missing breaks in switch statement meant receiver would treat any negotiated max frament as 4k limit.
* Add tests for compression and SRP.lloyd2015-05-134-0/+169
| | | | | | | | Fix zlib decompression which was not ignoring Z_BUF_ERROR which is harmless in this context as process is already checking avail_in and avail_out after run returns. Bump version to 1.11.17
* Build fixlloyd2015-05-121-2/+2
|
* Skip the NIST X.509 tests if the FS code is not available. Previouslylloyd2015-05-121-1/+8
| | | | would fail with a very unhelpful message.
* Comparison was invertedlloyd2015-04-281-1/+5
|
* Fix rare test failure in pubkey.lloyd2015-03-221-1/+4
| | | | | | | | The pubkey encrypt/decrypt test function tests various randomly corrupted ciphertexts to ensure none of them decrypt. On rare occasions PKCS #1 v1.5 does legitimately fail this test, but, well, PKCS v1.5 isn't a very good padding scheme. When this test fails and the pad is PKCS, log the values but don't actually fail the test since this is an expected behavior of PKCS padding.
* Add ALPN (RFC 7301) and remove NPNlloyd2015-03-201-10/+11
|
* Add HKDF(SHA-512) test vectorslloyd2015-03-181-17/+51
|
* Externalize the state of a RFC 6979 nonce computation.lloyd2015-03-122-4/+31
| | | | | | | | | | | | This lets you amortize quite a few memory allocations (RNG, various BigInts, etc) over many nonce generations. Change generate_rfc6979_nonce to just instantiate one of these states, call the function once, and return. This doesn't have any additional overhead versus the previous implementation of this function. Fix HMAC_DRBG to correctly reset its state to its starting position when you call clear() on it.
* Comile fixes for VC 2013. Based on github pull 56neusdan2015-03-101-1/+1
|
* Fix memory leak in TLS tests. Remove last few remaining uses of auto_ptr.lloyd2015-03-082-12/+14
|
* Hide all uses of boost filesystem in fs.cpp. Use readdir as anlloyd2015-02-212-56/+10
| | | | | alternate implementation for Unix and add some feature checks so a boost-free build of the tests and command line are possible again.
* Convert HKDF to the normal KDF interfacelloyd2015-02-185-132/+46
|
* Modify interfaces of KDF and PBKDF to write output to an array, withlloyd2015-02-181-5/+5
| | | | higher level functions on interface handling returning a vector.