aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add ecdsa timing testNever2017-02-165-1/+71
|
* 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
|/
* Merge GH #868 Add base64 size helper functionsJack Lloyd2017-02-052-6/+29
|\
| * Remove function comments n*4/3 and n*3/4 in base64Evgeny Pokhilko2017-02-062-6/+29
| | | | | | | | | | | | | | The parameter comments were misleading because they did not take into account that input_length must be rounded up to a multiple of 3 and 4 for encode and decode respectively. Two new functions were added to calculate the correct maximum output length.
* | Merge GH #867 Add configure.py --without-stack-protector flagJack Lloyd2017-02-053-3/+5
|\ \
| * | Make it possible to disable stack smashing protection.Jack Lloyd2017-02-043-3/+5
| |/ | | | | | | | | | | Also reflect anything in ABI flags into pkg-config Libs field. GH #863
* | Merge GH #865 Fix link in TLS-Attacker testsJack Lloyd2017-02-051-2/+2
|\ \ | |/ |/|
| * Updated the broken link to BSI TLS policyJuraj Somorovsky2017-02-041-2/+2
| |
* | Add toggle to disable SIMD speed test added in 2a7127fea6Jack Lloyd2017-02-041-36/+105
|/ | | | | | | | | | Failed to consider need for ISA flags (none required on x86-64 or aarch64 which are my primary test targets) but handling this correctly requires splitting up speed.cpp which requires a lot more refactoring work than I want to take on. Anyway the additional complexity just for this microbenchmark is not worth it so hide it behind a macro check. Also add an ECC scalar perf test.
* Add modexp speed testJack Lloyd2017-02-021-1/+38
| | | | Tests both short and full size exponents
* Report cycles/byte in speed testsJack Lloyd2017-02-021-19/+150
| | | | Add SIMD perf test
* Support zero-length IV in ChaChaJack Lloyd2017-02-023-3/+20
| | | | 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-315-51/+128
|\ | | | | | | OS::get_high_resolution_clock
| * Fix missing return in Windows pathJack Lloyd2017-01-301-7/+3
| |
| * Fix test for 32-bit buildsJack Lloyd2017-01-281-2/+2
| |
| * Change meaning of get_processor_timestampJack Lloyd2017-01-275-50/+131
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Blind fixJack Lloyd2017-01-301-1/+1
| |
* | Transpose for 32-bit NEONJack Lloyd2017-01-291-1/+19
| | | | | | | | Different intrinsics API
* | Add support for Aarch32 NEON flagsJack Lloyd2017-01-291-1/+4
| | | | | | | | configure.py already supports this arch-specific ISA flag syntax.
* | Workaround for MSVC 2013Jack Lloyd2017-01-292-3/+14
| |
* | Set SIMD ISA flags when building test_simd.cppJack Lloyd2017-01-291-1/+6
| | | | | | | | Return NEON from CPUID::has_simd_32
* | Add support for NEON in SIMD_4x32Jack Lloyd2017-01-297-191/+532
| | | | | | | | Tested on qemu-aarch64
* | Remove some commented out code from NoekeonJack Lloyd2017-01-281-13/+0
| | | | | | | | | | | | It was bogus and so potentially confusing [ci skip]
* | Add readdir for SolarisJack Lloyd2017-01-281-0/+1
| | | | | | | | [ci skip]
* | Add -std=c++11 to Sun CC command lineJack Lloyd2017-01-281-1/+1
| |
* | Add static_cast in uint8_t vs enum comparison.Jack Lloyd2017-01-281-2/+2
|/ | | | Sun CC for whatever reason becomes very confused by this.
* Add =default copy constructor decls for some pubkey types.Jack Lloyd2017-01-273-1/+15
| | | | | | | This inhibits default creation of C++11 move operators which we do not want. GH #849
* Add BOTAN_UNUSED in creator functionsJack Lloyd2017-01-275-0/+15
| | | | | | If all (say) stream ciphers are disabled, avoid unused arg warning. [ci skip]
* Merge GH #857 Add --with-external-libdir to configure.pyJack Lloyd2017-01-272-2/+3
|\
| * add "--with-external-libdir" to configure.pyDaniel Neus2017-01-262-2/+3
| | | | | | | | | | | | Fixes #767 and #19 Main purpose is to support external libs like OpenSSL on Windows.
* | Merge GH #858 Fix private key constructor API commentsJack Lloyd2017-01-279-11/+12
|\ \
| * | Fix private key ctors API docs [ci skip]René Korthaus2017-01-279-11/+12
| |/
* / 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-2414-43/+54
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Complete the rename of Python wrapperJack Lloyd2017-01-243-4/+4
| | | | Where referenced in CI scripts, docs and such
* Rename Python module to botan2Jack Lloyd2017-01-241-0/+0
| | | | | | | Makes it easier to support side by side installs. And for the programmer it is easier if `import botan2` can always be used to refer to a specific version. GH #847
* Cleanups in the install scriptJack Lloyd2017-01-241-9/+16
| | | | Install anything found in the python dir instead of assuming botan.py
* Remove obsolete workaround for bug in some old Sun Studio versionJack Lloyd2017-01-241-5/+0
| | | | [ci skip]
* If PowerPC clock returns 0, skip it.Jack Lloyd2017-01-231-2/+10
| | | | | | Doesn't seem to be a problem with the asm, code works fine on physical hardware (POWER8) but on qemu (on CI) both instructions return zero and the test fails.
* Skip instruction probe test where fn not implementedJack Lloyd2017-01-231-0/+5
|
* Fix configure.py error when compiler doesn't support desired ISA flagsJack Lloyd2017-01-222-1/+15
| | | | | | | | | | | | | Seen with rarely tested compilers (Sun Studio, Intel, ...) that we are missing info for. Previously this led to a hard error which is pointless. Instead just disable the relevant module and warn the user that something was disabled, if they want to go look into why. Remove bogus clmul entry in x86_64 - actually we lump both AES and CLMUL flags under the same ISA ("aesni") since all known CPUs support either both or neither. Caught by new configure warning. Add Sun Studio ISA flags from GH #846
* 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 CPUID::to_stringJack Lloyd2017-01-223-39/+68
| | | | | | | | | Deprecates CPUID::print, mainly to avoid use of ostream in utils. Main reasoning is some platforms do not have streams at all. If all uses of streams are for operator<< and operator>> overloads, these can be guarded by a future BOTAN_HAS_CPP_STREAMS system-feature flag. But when ostreams are required to use the API (as here), that is not possible.