Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add support for NEON in SIMD_4x32 | Jack Lloyd | 2017-01-29 | 3 | -0/+174 |
| | | | | Tested on qemu-aarch64 | ||||
* | Add more Noekeon tests | Jack Lloyd | 2017-01-27 | 1 | -8/+4114 |
| | | | | | | Values take from the NESSIE submission package. [ci skip] | ||||
* | Fix PKCS11 tests when ECDH or ECDSA was disabled | Jack Lloyd | 2017-01-24 | 1 | -10/+11 |
| | | | | It assumed if ECC was included then ECDH and ECDSA was also | ||||
* | Fix various SunCC and Solaris warnings and build problems. | Jack Lloyd | 2017-01-24 | 6 | -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 implemented | Jack Lloyd | 2017-01-23 | 1 | -0/+5 |
| | |||||
* | Avoid blocking tests from running if no RNG enabled | Jack Lloyd | 2017-01-22 | 2 | -6/+1 |
| | | | | Instead just let the individual tests that need the RNG fail. | ||||
* | Add a test for trusted_hashes on path validation result | Jack Lloyd | 2017-01-22 | 1 | -0/+9 |
| | |||||
* | Add a test of calendar_point::to_string | Jack Lloyd | 2017-01-22 | 1 | -0/+8 |
| | |||||
* | Add basic test for OS utils | Jack Lloyd | 2017-01-22 | 1 | -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 bits | Jack Lloyd | 2017-01-17 | 1 | -0/+2 |
| | |||||
* | Avoid creating+deleting test DB for certstore | Jack Lloyd | 2017-01-09 | 1 | -6/+3 |
| | | | | Just use in-memory sqlite DB instead | ||||
* | Avoid deprecation warning in TLS tests | Jack Lloyd | 2017-01-09 | 1 | -0/+3 |
| | |||||
* | Work around an apparent problem with GCC on AIX | Jack Lloyd | 2017-01-06 | 1 | -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 tests | Jack Lloyd | 2017-01-06 | 1 | -8/+13 |
| | |||||
* | Avoid using uninitialized RNG object in tests if construction fails | Jack Lloyd | 2017-01-06 | 1 | -4/+11 |
| | | | | Found by Coverity scanner | ||||
* | Add tests for Stream_Cipher_Mode | Jack Lloyd | 2017-01-06 | 1 | -0/+14 |
| | | | | GH #713 | ||||
* | Merge GH #806 Add tests for TLS certificate static message | Jack Lloyd | 2017-01-05 | 3 | -5/+54 |
|\ | |||||
| * | Add tests for certificate status message | Jack Lloyd | 2017-01-04 | 3 | -5/+54 |
| | | | | | | | | | | | | | | Currently untested by TLS crosstalk tests because it is not supported on the server side. Exposes the rest of TLS message types to application. | ||||
* | | Merge GH #803 Add botan_ffi_supports_version func | Jack Lloyd | 2017-01-05 | 1 | -0/+1 |
|\ \ | |||||
| * | | Add botan_ffi_supports_api function | Jack Lloyd | 2017-01-04 | 1 | -0/+1 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | This lets us upgrade the FFI version over time and still allow applications to reliably detect if the current library binary supports their version. As an example, it would be useful to be able to add features to FFI sometime in 2.x. In that case, we would increase the value of the FFI API version, even though anything calling the old API would still work perfectly. Applications can verify at runtime the API they want to use is supported using this new call. | ||||
* / | Avoid construct in test that causes compilation problem on XCode 6 | Jack Lloyd | 2017-01-04 | 1 | -2/+15 |
|/ | | | | GH #798 | ||||
* | Use Botan::X509_CA constructor that takes rng in tests | Simon Warta | 2017-01-03 | 1 | -1/+1 |
| | | | | because there there is no system_rng on ios | ||||
* | Add some final annotations in the PK tests | Jack Lloyd | 2017-01-02 | 1 | -7/+7 |
| | |||||
* | Convert DH invalid key test to read from file | Jack Lloyd | 2017-01-02 | 3 | -42/+62 |
| | |||||
* | Merge GH #790 Add DH tests from NIST CAVP | Jack Lloyd | 2017-01-02 | 4 | -3/+315 |
|\ | |||||
| * | Add test vectors for public key checks from NIST CAVP | René Korthaus | 2017-01-02 | 1 | -0/+39 |
| | | |||||
| * | Load q for DH public key in tests | René Korthaus | 2017-01-02 | 1 | -1/+11 |
| | | |||||
| * | Add positive DH test vectors from NIST CAVP | René Korthaus | 2017-01-02 | 4 | -2/+265 |
| | | |||||
* | | Merge GH #792 Fix BigInt::random_integer test | Jack Lloyd | 2017-01-02 | 1 | -9/+8 |
|\ \ | |||||
| * | | Increase value of ITERATIONS_PER_POSSIBLE_VALUE to 750 | Simon Warta | 2017-01-02 | 1 | -1/+2 |
| | | | | | | | | | | | | to avoid test failures | ||||
| * | | Simplify loop to foreach in test_random_integer() | Simon Warta | 2017-01-02 | 1 | -2/+2 |
| | | | |||||
| * | | Fix math in test_random_integer() | Simon Warta | 2017-01-02 | 1 | -5/+3 |
| | | | | | | | | | | | | | | | Removes complicated extra variable "dev", which was calculated incorrectly: if ratio = 0.0 then dev = 0.0, resulting in a test success. | ||||
| * | | Rename ITERATIONS -> ITERATIONS_PER_POSSIBLE_VALUE | Simon Warta | 2017-01-02 | 1 | -3/+3 |
| |/ | |||||
* / | Don't use deprecated PK_Signer ctor in tests | René Korthaus | 2017-01-01 | 1 | -1/+1 |
|/ | |||||
* | Add test for TPM | Jack Lloyd | 2016-12-31 | 1 | -0/+83 |
| | | | | | | | Compiles, but basically untested as my machine with a working TPM suffered a fatal logic board failure some time ago. If TPM is compiled in but creating the TPM context fails, test assumes no hardware is available and returns. | ||||
* | Fix for minimized build | Jack Lloyd | 2016-12-31 | 1 | -1/+7 |
| | |||||
* | Fix for EME-Raw being disabled as in BSI policy | Jack Lloyd | 2016-12-31 | 1 | -1/+8 |
| | |||||
* | Add a simple test of the all or nothing transform | Jack Lloyd | 2016-12-31 | 1 | -0/+56 |
| | |||||
* | Add test that triggers Blinder to reinitialize state | Jack Lloyd | 2016-12-31 | 1 | -0/+36 |
| | |||||
* | Improve filter tests | Jack Lloyd | 2016-12-31 | 3 | -6/+117 |
| | | | | | | | Fix a bug in Pipe::check_available that must date back 15 years... Add destructors to compression filter so unique_ptr destructor runs without user having to include an extra header for the owned type. | ||||
* | Another fix for missing SHA1, and workaround Apple Clang problem. | Jack Lloyd | 2016-12-31 | 1 | -8/+9 |
| | |||||
* | Fix test with SHA-1 disabled | Jack Lloyd | 2016-12-31 | 1 | -0/+3 |
| | |||||
* | Missing add | Jack Lloyd | 2016-12-31 | 1 | -0/+1 |
| | |||||
* | Add more tests for random prime and DL group generation | Jack Lloyd | 2016-12-30 | 3 | -3/+120 |
| | |||||
* | Increase default TLS DH min to 2048 bits, and add BSI policy class. | Jack Lloyd | 2016-12-30 | 6 | -5/+29 |
| | | | | | Moves BSI policy file to test data dir where it can be compared with what the hardcoded class outputs. | ||||
* | Remove reference to CECPQ1_PSK OCB ciphersuite in test. | Jack Lloyd | 2016-12-30 | 1 | -1/+0 |
| | | | | | Initially planned, then decided to skip because supporting it requires more changes to the TLS handshake code than I want to do right now. | ||||
* | Merge GH #785 Disable SHA-1 and weak RSA by default during cert validation | Jack Lloyd | 2016-12-30 | 3 | -7/+9 |
|\ | |||||
| * | Increase Path_Validation_Restrictions default min strength to 110 | Jack Lloyd | 2016-12-27 | 3 | -7/+9 |
| | | | | | | | | | | Effectively disables 1024 bit RSA as well as SHA-1. Edit the tests where required to enable it again. | ||||
* | | Add CECPQ1 OCB ciphersuites | Jack Lloyd | 2016-12-30 | 1 | -0/+7 |
| | | | | | | | | | | | | Clean up the ciphersuite generation script a bit. [ci skip] | ||||
* | | One more Camellia TLS test fix | Jack Lloyd | 2016-12-28 | 1 | -1/+8 |
| | |