aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Merge GH #859 Add support for ARM NEON in SIMD_4x32 moduleJack Lloyd2017-01-3110-195/+577
|\ \
| * | 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-292-1/+10
| | | | | | | | | | | | Return NEON from CPUID::has_simd_32
| * | Add support for NEON in SIMD_4x32Jack Lloyd2017-01-298-193/+534
|/ / | | | | | | 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-273-7/+22
|\
| * add "--with-external-libdir" to configure.pyDaniel Neus2017-01-263-7/+22
| | | | | | | | | | | | 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-247-8/+8
| | | | 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-223-10/+30
| | | | | | | | | | | | | 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
* Missing tracebackJack Lloyd2017-01-221-0/+1
|
* 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.
* Add basic test for OS utilsJack Lloyd2017-01-222-4/+159
| | | | | 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.
* Updates to the readmeJack Lloyd2017-01-221-7/+14
| | | | | | | | | | | | | | Instead of refering to security.rst for how to report a security bug, just say so in the readme. Mention the botan-announce list. Drop mention of gitter.im as place for reporting issues, it is not good for that. GitHub issues and mailing list are both part of our infrastructure and have a large audience, gitter.im is kind of peripheral and not monitored so much. [ci skip]
* Remove unused iostream includeJack Lloyd2017-01-201-1/+0
| | | | [ci skip]
* Avoid requiring AT_DCACHEBSIZE (data cache size) getauxvalJack Lloyd2017-01-191-0/+3
| | | | | Missing on Android it appears, or at least on Kullo CI NDK. Not essential by any means.
* Merge GH #843 Refactor CPUID impl, add ARM feature detectionJack Lloyd2017-01-186-159/+463
|\
| * Fix for PowerPCJack Lloyd2017-01-171-2/+2
| |
| * Fixes for 32-bit ARMJack Lloyd2017-01-171-7/+38
| |
| * Refactor CPUID implementation, add ARM supportJack Lloyd2017-01-174-146/+324
| | | | | | | | | | | | Tested for ARM only under qemu-aarch64, need to check hardware before merging. Changes x86 CPUID bitmasks which does break ABI for 2.1, no API implications.
| * Fixes for OS X buildJack Lloyd2017-01-172-1/+2
| | | | | | | | | | | | os_utils.h was missing an include, only noticed on OS X sigemptyset is a macro on OS X so cannot be called as ::sigemptyset
| * Add OS::run_cpu_instruction_probeJack Lloyd2017-01-152-13/+107
| | | | | | | | | | | | Needed for ARM detection, also probably useful on PowerPC for AltiVec Works fine for me on Linux x86-64 testing with ud2 instruction.
* | Mark GMAC tests as being sensitive to clmul and AES-NI CPUID bitsJack Lloyd2017-01-171-0/+2
|/
* Handle processor name in /proc/cpuinfo that as a colon in the name itselfJack Lloyd2017-01-141-7/+7
| | | | Seen on AMD Opteron A1100 running Linux 4.1