aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Add new module `ffi` which provides a plain C interface, plus a newlloyd2015-02-161-0/+21
| | | | | | | | | | | | ctypes Python wrapper that uses it. The API is intentionally designed to have a very simple ABI (extern "C", all structs are opaque, no memory ownership passing the FFI boundary, limited set of simple types as args) so the ctypes wrapper is quite simple. Currently ffi provides ciphers, hashes, MACs, RNGs, PBKDF, KDF, bcrypt, and most public key operations. Remove the old boost.python wrapper and all the build code for it.
* Remove algo factory, engines, global RNG, global state, etc.lloyd2015-02-0411-69/+46
| | | | | | | | | | | | | | | Convert all uses of Algorithm_Factory and the engines to using Algo_Registry The shared pool of entropy sources remains but is moved to EntropySource. With that and few remaining initializations (default OIDs and aliases) moved elsewhere, the global state is empty and init and shutdown are no-ops. Remove almost all of the headers and code for handling the global state, except LibraryInitializer which remains as a compatability stub. Update seeding for blinding so only one hacky almost-global RNG instance needs to be setup instead of across all pubkey uses (it uses either the system RNG or an AutoSeeded_RNG if the system RNG is not available).
* Use registry also for KDF, EMSA, and EMElloyd2015-01-311-4/+2
|
* Add a runtime map of string->func() which when called returnlloyd2015-01-281-10/+6
| | | | | | | | | | | | | | | | | Transforms and BlockCiphers. Registration for all types is done at startup but is very cheap as just a std::function and a std::map entry are created, no actual objects are created until needed. This is a huge improvement over Algorithm_Factory which used T::clone() as the function and thus kept a prototype object of each type in memory. Replace existing lookup mechanisms for ciphers, AEADs, and compression to use the transform lookup. The existing Engine framework remains in place for BlockCipher, but the engines now just call to the registry instead of having hardcoded lookups. s/Transformation/Transform/ with typedefs for compatability. Remove lib/selftest code (for runtime selftesting): not the right approach.
* Add SipHashlloyd2015-01-113-6/+46
|
* Remove SSLv3 and handling of SSLv2 client hellos.lloyd2015-01-113-193/+0
|
* Ensure all files have copyright and license info.lloyd2015-01-1041-28/+219
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Add MCEIES, an integrated encryption system using McEliece and AES-256/OCBlloyd2015-01-081-47/+109
|
* Add SHA-512/256lloyd2015-01-082-1/+6
| | | | | Define some new functions for copying out arrays of words and use them across hashes.
* Add Brainpool and secp160r1 ECDSA testslloyd2015-01-052-1/+153
|
* Support the older ChaCha20Poly1305 AEAD from draft-agl-tls-chacha20poly1305-04lloyd2014-12-311-0/+8
| | | | | which we distinguish by the nonce size (always 64 bits in this format, always 96 bits in the CFRG document).
* Add AEAD based on ChaCha20 and Poly1305 defined in ↵lloyd2014-12-291-0/+13
| | | | draft-irtf-cfrg-chacha20-poly1305-03
* Add Poly1305, based on poly1305-donna by Andrew Moon.lloyd2014-12-291-0/+323
|
* Support 96 bit nonces in ChaCha20 as specified in ↵lloyd2014-12-291-0/+9
| | | | draft-irtf-cfrg-chacha20-poly1305-03
* All tests now share an RNG. Uses system RNG if availablelloyd2014-12-2823-53/+65
|
* Provide a test reportlloyd2014-12-271-0/+2
|