aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge GH #1006 Fix FFI cipher interface (see also GH #1003)Jack Lloyd2017-04-151-65/+205
|\
| * Add tests of GCM and CTR modeJack Lloyd2017-04-141-64/+205
| |
| * Fix FFI cipher interfaceJack Lloyd2017-04-141-11/+10
| | | | | | | | | | | | Was totally broken, when not encrypting in one shot. (GH #1003) Enable the test, which had been commented out :(
* | Support for ElGamal in FFI interfaceKrzysztof Kwiatkowski2017-04-141-0/+76
|/ | | | | | * Adds `botan_pubkey_load_elgamal' and `botan_privkey_load_elgamal' functions to FFI interface. * Adds test `ffi_test_elgamal'
* Merge GH #989 Avoid recursion in BER_Decoder::get_next_objectJack Lloyd2017-04-131-0/+67
|\
| * Add test for OSS-Fuzz 813Jack Lloyd2017-04-131-0/+67
| |
* | fix missing flush in DataSink_Stream::end_msgPhilippe Lieser2017-04-101-0/+27
|/
* Add another AES-128 CFB testJack Lloyd2017-04-081-0/+6
| | | | | Generated by OpenSSL, I needed this to help test https://github.com/riboseinc/rnp/pull/48
* Merge GH #966 Add SM3 hash functionJack Lloyd2017-04-051-0/+423
|\
| * Add more SM3 hash test data.Daniel Wyatt2017-04-031-0/+417
| |
| * Add SM3 hash functionDaniel Wyatt2017-04-031-0/+6
| |
* | Merge GH #978 Fix bad read in X509 DN comparisons (CVE-2017-2801)Jack Lloyd2017-04-043-0/+70
|\ \
| * | Fix X509 DN comparisonsJack Lloyd2017-04-043-0/+70
| | | | | | | | | | | | CVE-2017-2801
* | | Merge GH #900 Add ability to search by X509 DN hashJack Lloyd2017-04-042-193/+328
|\ \ \
| * | | Add tests for find_cert_by_raw_subject_dn_sha256Nuno Goncalves2017-04-041-1/+43
| | | | | | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
| * | | Refactor test_certstor.cpp to prepare for adding testsNuno Goncalves2017-04-041-147/+181
| | | | | | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
| * | | Format with astyle before major changesNuno Goncalves2017-04-031-30/+32
| | | | | | | | | | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
| * | | Add unit tests for X509 hash methods:Nuno Goncalves2017-04-031-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | X509_Certificate::raw_issuer_dn_sha256() X509_Certificate::raw_subject_dn_sha256() Signed-off-by: Nuno Goncalves <[email protected]>
| * | | Refactor and modernize files to be editedNuno Goncalves2017-04-031-45/+46
| | |/ | |/| | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>
* | | Add block cipher interface to C APIJack Lloyd2017-04-041-0/+37
| |/ |/|
* | Merge GH #885 Change HMAC_DRBG::security_level to match NIST SP800-90AJack Lloyd2017-04-041-8/+36
|\ \
| * | Follow NIST SP 800-57 for HMAC_DRBG security levelRené Korthaus2017-04-031-0/+26
| | |
| * | Change security_strength of HMAC_DRBGRené Korthaus2017-04-031-8/+10
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Looking into SP808-90A, it mentions that the max security strength is the security strength of the hash function for pre-image resistance. The current implementation however always only uses half of the output length, therefore only providing half of the security strength possible. However, SP800-90A supports only up to 256 bit security strength, so we fix it to this upper limit. In a second change, add_entropy() now also resets the reseed counter if enough entropy input provided.
* | Merge GH #965 Various code cleanupsJack Lloyd2017-04-045-9/+6
|\ \
| * | Content:Tomasz Frydrych2017-04-035-9/+6
| |/ | | | | | | | | | | | | | | | | * fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations) * `default` specifier instead of `{}` in some places(probably all) * removal of unreachable code (for example `return` after `throw`) * removal of compilation unit only visible, but not used functions * fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT` * removed not needed semicolons
* | Merge GH #964 Add various useful FFI functions for public key cryptoJack Lloyd2017-04-042-0/+130
|\ \ | |/ |/|
| * Implement botan_pubkey_loadJack Lloyd2017-04-031-1/+6
| | | | | | | | Declared in header, but was not defined. :(
| * Fix botan_privkey_create if the desired algorithm was not available in buildJack Lloyd2017-04-032-1/+20
| | | | | | | | | | | | If DSA was disabled, caused memory corruption/crashes due to combination of uninitialized object and the tests not checking return values as carefully as they should.
| * Add generic getters for PK parameters in C interfaceJack Lloyd2017-04-021-0/+106
| | | | | | | | Supporting RSA, DSA, and ECC. Add also DSA specific loading functions.
* | Merge GH #961 Add some more BigInt functions to C APIJack Lloyd2017-04-021-0/+50
|\ \ | |/ |/|
| * Add some more useful bigint functions to C interfaceJack Lloyd2017-03-311-0/+50
| |
* | Merge GH #960 Check name of test suite.Jack Lloyd2017-04-021-0/+11
|\ \
| * | Check name of test suite.Alexander Bluhm2017-03-311-0/+11
| |/ | | | | | | | | If botan-test is invoked with an invalid test name, fail with a usage error. This is more obvious than not running the test.
* / Print test name before running test.Alexander Bluhm2017-03-311-0/+1
|/ | | | | | To make it easy to repeat classes of tests, print the name of the test suite before starting it. This name can be used on the botan-test command line. If a test hangs, it is also obvious which.
* Build fixJack Lloyd2017-03-291-1/+1
|
* Fix RSA blinding testJack Lloyd2017-03-291-5/+7
| | | | | | Failed if OpenSSL was used since OpenSSL does (whatever it does). GH #879
* Fix final RSA blinding testJack Lloyd2017-03-291-4/+5
| | | | See GH #879
* Add missing override annotationJack Lloyd2017-03-291-1/+1
|
* Add --test-runs option to test binaryJack Lloyd2017-03-291-5/+9
| | | | Just runs the specified test several times, or until first failure.
* Merge GH #879 Fix rsa_blinding tests and add one more testJack Lloyd2017-03-291-3/+46
|\
| * Fix rsa_blinding tests if emsa_raw is missing and add tests for rsa_blinding ↵Daniel Neus2017-02-161-3/+46
| | | | | | | | while encrypting/decrypting
* | Merge GH #899 Add ability to specify iterations when encrypting a private keyJack Lloyd2017-03-291-20/+8
|\ \
| * | Add ability to specify iterations when encrypting a private keyJack Lloyd2017-02-261-20/+8
| | | | | | | | | | | | GH #896
* | | Merge GH #946 Expose multiple precision integers in C interfaceJack Lloyd2017-03-291-7/+226
|\ \ \
| * | | Expose BigInt API subset to C APIJack Lloyd2017-03-281-7/+226
| | | | | | | | | | | | | | | | Also adds RSA key constructors using BN
* | | | Remove old timing test suiteJack Lloyd2017-03-287-0/+51
|/ / / | | | | | | | | | Replaced by version in cli added in #894
* | | Merge GH #944 Add check_key to C APIJack Lloyd2017-03-281-0/+3
|\ \ \
| * | | Expose PK::check_key functions in C interfaceJack Lloyd2017-03-271-0/+3
| | | |
* | | | Avoid long tests for each bcrypt passwordJack Lloyd2017-03-241-2/+22
| | | |
* | | | Fix incorrect password truncation in bcrypt password hashing.Jack Lloyd2017-03-242-3/+273
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | The 56 char bound is bogus; Blowfish itself allows at most 448 bits in the key schedule, but Bcrypt's modification allows up to 72 chars for the password. Bug pointed out by Solar Designer. Also reject work factors 0...3 since all other extant bcrypt implementations require at least work factor 4. Adds more bcrypt tests generated by crypt_bcrypt and OpenBSD's version.