aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_modes.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix warningsJack Lloyd2017-05-191-2/+2
|
* Handle IV carryover in CBC, CFB, and stream ciphersJack Lloyd2017-05-131-1/+179
| | | | | | Allow an empty nonce to mean "continue using the current cipher state". GH #864
* Reformat code with astyle + fix code styleTomasz Frydrych2017-05-011-6/+5
|
* Implement cipher modes with OpenSSL.Alexander Bluhm2017-04-251-66/+84
| | | | | | Use the OpenSSL provider to implement AES CBC mode. Also pass down the provider to the encryption layer if there is no matching OpenSSL mode. Add a test with empty nonce.
* Minor refactoring of Text_Based_TestJack Lloyd2016-12-191-1/+1
| | | | | | Turns out astyle has some bugs wrt C++11 initialize lists. Rather than having astyle mangle all of the tests, convert to using a string which is split once at the start instead of a vector of keys.
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-181-1/+1
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* Remove unused variable from testsJack Lloyd2016-11-121-4/+0
|
* Cipher_Mode and AEAD_Mode improvementsDaniel Neus2016-11-081-1/+70
| | | | | | | | | | | | See PR #552 - Add Cipher_Mode::reset() which resets just the message specific state and allows encrypting again under the existing key - In Cipher_Mode::clear() (at some planes) use cipher->clear() instead of resetting the pointer which would make the cipher object unusable - EAX_Decryption::output_length() bugfix?! Now its possible to decrypt an empty ciphertext (just a tag) - Bugfix for GCM_Decryption::finish() - set tag length in GCM_Mode::name() - Cipher_Mode tests: add tests for reset()and process() - AEAD_Mode tests: add tests for reset(), clear(), update() and process()
* Add T::provider() to allow user to inquire about implementation usedJack Lloyd2016-09-151-0/+1
| | | | | For block ciphers, stream ciphers, hashes, MACs, and cipher modes. Cipher_Mode already had it, with a slightly different usage.
* Add test vectors for AES-CBC-CS3 aka AES/CBC/CTS from RFC 3962René Korthaus2016-07-111-0/+5
| | | | | | Previously, CBC-CS3 only had tests with DES, but if DES is not enabled in the module policy, then CBC-CS3 is not tested at all.
* Add --data-dir option to test commandJack Lloyd2015-12-201-1/+1
| | | | | | | Understand using '-' on the command line to mean stdin Fix last few unit tests that wanted to write to the filesystem; removes outdata directory.
* Update and consolidate the test framework.Jack Lloyd2015-11-111-79/+48
| | | | | | | | | | | The tests previously had used 4 to 6 different schemes internally (the vec file reader framework, Catch, the old InSiTo Boost.Test tests, the PK/BigInt tests which escaped the rewrite in 1.11.7, plus a number of one-offs). Converge on a design that works everywhere, and update all the things. Fix also a few bugs found by the test changes: SHA-512-256 name incorrect, OpenSSL RC4 name incorrect, signature of FFI function botan_pubkey_destroy was wrong.
* Move DataSource to utils and rewrite PEM encoding to avoid filtersJack Lloyd2015-10-141-17/+3
| | | | | Removes filters as as an internal dependency pretty much entirely (outside of some dusty corners in misc).
* Don't treat missing ciphers, hashes, etc as test failuresJack Lloyd2015-10-111-3/+3
| | | | | Just print an error message and return. Reduces false fails with smaller builds
* Remove use of lookup.h in favor of new T::create API.Jack Lloyd2015-09-211-1/+0
|
* Fix TEST_DATA_DIRSimon Warta2015-07-151-1/+1
|
* Make Botan compile when only some modules are enabledSimon Warta2015-07-031-0/+16
| | | | Fixes #146.
* Replace \n by std::endl in tests to ensure proper flushingSimon Warta2015-06-191-2/+2
| | | | | | | - Remove additional newlines in CHECK_MESSAGE call - Remove redundant output of algo in aead_test() Closes #115
* Ensure all files have copyright and license info.lloyd2015-01-101-0/+6
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Replace Transformatio::nstart with start_raw so we can do a full setlloyd2014-11-051-1/+1
| | | | of overloads in the base class with the same name.
* Split up docs into the reference manual, the website, and everything else.lloyd2014-01-101-0/+92
| | | | | | | | | | | Add `website` target to makefile. Some progress towards fixing minimized builds. TLS now hard requires ECDSA and GCM since otherwise a minimized build has only insecure options. Remove boost_thread dependency in command line tool
* Rename test sourceslloyd2014-01-071-87/+0
|
* Split up public key tests and data, use new test frameworklloyd2014-01-051-7/+15
|
* Shuffle things around. Add NIST X.509 test to build.lloyd2014-01-011-0/+79