aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix some compiler warnings.Jack Lloyd2017-03-221-1/+1
|
* Merge GH #932 Guard filters tests with all necessary macrosJack Lloyd2017-03-221-12/+32
|\
| * Guard filters tests with all necessary macrosRené Korthaus2017-03-211-12/+32
| | | | | | | | | | The filters tests were missing many BOTAN_HAS guards for hash functions, MACs and ciphers used.
* | Fix #917: calendar_point::to_std_timepoint() does not support years after 2037Daniel Neus2017-03-212-2/+6
|/ | | | Only throw on systems where 32 bit std::time_t is used.
* Merge GH #915 Fix OS::get_processor_timestamp()Jack Lloyd2017-03-191-1/+2
|\
| * Fix OS::get_processor_timestamp() testsDaniel Neus2017-03-141-1/+2
| |
* | No C++ exceptions from cpu probe functions. See GH #920Jack Lloyd2017-03-191-4/+0
| |
* | Fix: UTCTime interpreted as GeneralizedTimeDaniel Neus2017-03-131-22/+95
|/ | | | | | | | | | | | Example: "200305100350Z" interpreted as "2003/05/10 03:50:00 UTC" correct is "2020/03/05 10:03:50 UTC" According to RFC 5280: UTCTime values ... MUST include seconds (i.e., times are YYMMDDHHMMSSZ) -> length 13 GeneralizedTime values ... MUST include seconds (i.e., times are YYYYMMDDHHMMSSZ) -> length 15 I think we should enforce the RFC5280 rules even if the ASN.1 rules are not that strict.
* Merge GH #901 Allow OCSP requests without the full subject certificateJack Lloyd2017-03-071-2/+8
|\
| * Allow OCSP requests without the full subject certificateNuno Goncalves2017-03-041-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A OCSP request doesn't need the full subject certificate. This extends the API to require instead of the subject certificate: * OCSP::Request: subject serial. * OCSP::online_check: subject serial AND ocsp responder url. API breaking change: * removal of OCSP::Request::subject() as OCSP::Request doesn't need to hold the certificate, but only the serial. Signed-off-by: Nuno Goncalves <[email protected]>
* | Merge GH #904 Fix memory leak in TLS testsJack Lloyd2017-03-031-4/+6
|\ \ | |/ |/|
| * fix mem leak in tls unit testsDaniel Neus2017-03-031-4/+6
| |
* | Change name constraint test to use a fixed reference timeJack Lloyd2017-03-031-2/+6
|/ | | | Test certs have expired.
* Merge GH #902 Extend EC_PublicKey check, add EC_Group check, ECC invalid key ↵Jack Lloyd2017-03-025-1/+455
|\ | | | | | | tests
| * remove debug output from ecc_invalid unit testsNever2017-02-281-2/+0
| |
| * Merge pull request #2 from ↵Tobias | Never2017-02-285-1/+457
| |\ | | | | | | | | | | | | Rohde-Schwarz-Cybersecurity/extended-ec-public-key-checks Extended ec public key checks
| | * Add ECDSA key tests from Google's project WycheproofRené Korthaus2017-02-124-13/+57
| | |
| | * Add test vectors for invalid ECDSA public keys from FIPS 186-4René Korthaus2017-02-122-0/+185
| | |
| | * Add test vectors for invalid ECDSA public keys from FIPS 186-2René Korthaus2017-02-123-1/+228
| | |
* | | The certificate being tested by the OCSP online test has expired.Jack Lloyd2017-02-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This caused a test failure if run with --run-online-tests. This is not the default but it caused the coverage build to fail. Fix the test to reflect expired status. The whole thing does not seem wholly satsifactory since we are still relying the behavior on an external party, perhaps a mock OCSP responder should be created for the tests.
* | | Add missing try/catch in invalid signature testJack Lloyd2017-02-261-2/+10
|/ / | | | | | | From GH #889
* | Fix botan-test verbose modeRené Korthaus2017-02-142-2/+2
| |
* | Remove std::cout accidentally left from debuggingRené Korthaus2017-02-121-4/+0
|/
* Fix compiling TLS tests without DSAJack Lloyd2017-02-111-0/+2
|
* Correct GH #869 for DSS CBC suitesJack Lloyd2017-02-071-2/+2
|
* Merge GH #869 Add tests for TLS DSS authJack Lloyd2017-02-071-5/+92
|\
| * Use SHA-384 with DHE_DSS_AES_256_CBCRené Korthaus2017-02-061-1/+5
| |
| * Add tests for DHE_DSS ciphersuitesRené Korthaus2017-02-061-5/+88
| | | | | | | | | | As long as we support DSS ciphersuites, we should test them, even if they're deprecated.
* | Add TLS policy tests for DSA keysRené Korthaus2017-02-061-0/+32
|/
* Support zero-length IV in ChaChaJack Lloyd2017-02-021-0/+3
| | | | Equivalent to an 8 byte all-zero IV, same handling as Salsa.
* Merge GH #860 Support CPU instruction probe on Windows, add ↵Jack Lloyd2017-01-311-12/+52
|\ | | | | | | OS::get_high_resolution_clock
| * Fix test for 32-bit buildsJack Lloyd2017-01-281-2/+2
| |
| * Change meaning of get_processor_timestampJack Lloyd2017-01-271-12/+52
| | | | | | | | | | | | | | | | | | | | | | Now let it return 0 if we have no hardware timestamp, and add OS::get_high_resolution_clock for best available clock. This is mainly because it's confusing for get_processor_timestamp to return something that is not a processor timestamp and because it simplifies adding cycles/byte output if we know that something is or is not a cycle counter. Also adds Windows SEH version of run_cpu_instruction_probe. Untested, uncompiled.
* | Add support for NEON in SIMD_4x32Jack Lloyd2017-01-293-0/+174
|/ | | | Tested on qemu-aarch64
* Add more Noekeon testsJack Lloyd2017-01-271-8/+4114
| | | | | | Values take from the NESSIE submission package. [ci skip]
* Fix PKCS11 tests when ECDH or ECDSA was disabledJack Lloyd2017-01-241-10/+11
| | | | It assumed if ECC was included then ECDH and ECDSA was also
* Fix various SunCC and Solaris warnings and build problems.Jack Lloyd2017-01-246-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | Based on build output sent by @noloader. If RLIMIT_MEMLOCK is not defined, assume regular user is not able to call mlock. This probably also affected Clang/GCC on Solaris. Work around resolution issue in SIMD_4x32 where it finds ambiguity between arg taking uint32_t and __m128i. This is probably some artifact of how SunCC represents vector types, and seems highly bogus in general but is easy to work around here. Change constructor taking a single value to instead be `SIMD_4x32::splat` function. The SIMD class is internal, so no API implications. Fix various warnings about lambda functions that were missing return types and which were not a single return statement. AIUI C++11 doesn't guarantee that lambda return type will be deduced in that situation, though in practice every compiler including SunCC seems to handle it. Disable AVX2 usage, since SunCC's intrinsics seem to be broken - its _mm_loadu_si256 takes non-const pointer. Rename a few variables in the tests to avoid shadowed var warnings.
* Skip instruction probe test where fn not implementedJack Lloyd2017-01-231-0/+5
|
* Avoid blocking tests from running if no RNG enabledJack Lloyd2017-01-222-6/+1
| | | | Instead just let the individual tests that need the RNG fail.
* Add a test for trusted_hashes on path validation resultJack Lloyd2017-01-221-0/+9
|
* Add a test of calendar_point::to_stringJack Lloyd2017-01-221-0/+8
|
* Add basic test for OS utilsJack Lloyd2017-01-221-0/+147
| | | | | Mainly driven by missing test for OS::run_cpu_instruction_probe. Currently only works on x86 and ARM. Tested on x86-64 native and aarch64 qemu.
* Mark GMAC tests as being sensitive to clmul and AES-NI CPUID bitsJack Lloyd2017-01-171-0/+2
|
* Avoid creating+deleting test DB for certstoreJack Lloyd2017-01-091-6/+3
| | | | Just use in-memory sqlite DB instead
* Avoid deprecation warning in TLS testsJack Lloyd2017-01-091-0/+3
|
* Work around an apparent problem with GCC on AIXJack Lloyd2017-01-061-4/+5
| | | | | | | | When compiled by GCC 4.8 on AIX 7.1 ppc32, the TLS policy tests fail because the exception thrown from the TLS policy check ends up not being caught at runtime by the test if the catch statement is for `std::exception&` or even `Botan::Exception&` but only if the actually thrown type `Botan::TLS::TLS_Exception` is caught.
* Another try/catch for the testsJack Lloyd2017-01-061-8/+13
|
* Avoid using uninitialized RNG object in tests if construction failsJack Lloyd2017-01-061-4/+11
| | | | Found by Coverity scanner
* Add tests for Stream_Cipher_ModeJack Lloyd2017-01-061-0/+14
| | | | GH #713
* Merge GH #806 Add tests for TLS certificate static messageJack Lloyd2017-01-053-5/+54
|\