Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Build fixes for GNU/Hurd | Jack Lloyd | 2019-02-04 | 2 | -0/+3 |
| | | | | Thanks to @noloader for testing this and the relevant info. | ||||
* | Merge GH #1819 Add Thread_Pool and use it for running tests | Jack Lloyd | 2019-01-31 | 13 | -84/+454 |
|\ | |||||
| * | Add a simple Thread_Pool test | Jack Lloyd | 2019-01-31 | 2 | -0/+88 |
| | | | | | | | | And allow registering one-off functions as tests | ||||
| * | Run the tests in multithreaded mode in CI | Jack Lloyd | 2019-01-31 | 1 | -2/+5 |
| | | |||||
| * | Run the test suite in multiple threads | Jack Lloyd | 2019-01-31 | 6 | -68/+149 |
| | | | | | | | | Refactor areas where data was being shared | ||||
| * | Add a thread pool | Jack Lloyd | 2019-01-31 | 5 | -14/+212 |
| | | |||||
* | | Changes to CPUID layout caused ABI breakage, tick soname | Jack Lloyd | 2019-01-31 | 1 | -1/+1 |
| | | |||||
* | | Add a couple more ChaCha tests | Jack Lloyd | 2019-01-31 | 1 | -0/+9 |
| | | |||||
* | | Have set_mem only work for bytes | Jack Lloyd | 2019-01-31 | 1 | -4/+3 |
| | | | | | | | | It is (mildly) dangerous with larger types, and we don't need it. | ||||
* | | Minor HMAC optimizations | Jack Lloyd | 2019-01-31 | 2 | -15/+31 |
|/ | | | | | Most importantly, avoid an allocation when the key is larger than a block size. Also avoid some virtual calls that can be cached. | ||||
* | Merge GH #1821 Refactor CPUID to be thread safe | Jack Lloyd | 2019-01-31 | 9 | -55/+90 |
|\ | |||||
| * | Refactor CPUID to make it thread safe | Jack Lloyd | 2019-01-30 | 9 | -55/+90 |
| | | | | | | | | | | | | | | | | | | | | Needed for #1819 and unfortunately Windows does not allow thread local data to be stored as a member of a DLL exported class. So hide it behind an accessor function instead. This slows down CPUID test somewhat and I would like to address that but it seems hard without breaking the CPUID API, which is for better or worse public. | ||||
* | | Recognize BLAKE2b also [ci skip] | Jack Lloyd | 2019-01-31 | 1 | -1/+1 |
|/ | | | | See #1822 | ||||
* | Compile fix | Jack Lloyd | 2019-01-30 | 2 | -2/+2 |
| | |||||
* | Use std::mutex instead of mutex_type here | Jack Lloyd | 2019-01-30 | 4 | -8/+8 |
| | | | | | std::condition_variable only works with std::mutex anyway, and this module is not enabled on systems without threads. | ||||
* | Merge GH #1818 Prevent PKCS11 tests from allocating before main | Jack Lloyd | 2019-01-28 | 4 | -98/+94 |
|\ | |||||
| * | Avoid invoking the mlock allocator before main starts | Jack Lloyd | 2019-01-28 | 4 | -98/+94 |
| | | | | | | | | Simplify the PKCS11 tests slightly, no real reason for PKCS11_Test here | ||||
* | | Avoid a harmless data race in RSA decryption | Jack Lloyd | 2019-01-28 | 1 | -0/+7 |
|/ | | | | | | | | | Both threads called Modular_Reducer::reduce on m, which caused the significant words result to be written twice in an unsynchronized way. By calling it once beforehand it is computed and cached and so no additional writes occur. Found with helgrind. | ||||
* | Fix warning | Jack Lloyd | 2019-01-24 | 1 | -3/+6 |
| | |||||
* | Doc updates | Jack Lloyd | 2019-01-24 | 1 | -1/+3 |
| | |||||
* | Revamp BigInt encoding and decoding. | Jack Lloyd | 2019-01-24 | 5 | -104/+131 |
| | | | | Deprecate some crufty functions. Optimize binary encoding/decoding. | ||||
* | Fix macro checks | Jack Lloyd | 2019-01-24 | 1 | -2/+1 |
| | |||||
* | Split out bcrypt cli util to its own file | Jack Lloyd | 2019-01-22 | 2 | -78/+89 |
| | |||||
* | Make the Memory_Pool MMU operations a compile time option | Jack Lloyd | 2019-01-22 | 2 | -4/+30 |
| | | | | | | Previously the calls were commented out as this has a substantial performance impact. Allow enabling them via a build.h toggle, and enable it by default when debug asserts are turned on. | ||||
* | Remove some unnecessary asserts | Jack Lloyd | 2019-01-22 | 3 | -34/+0 |
| | | | | Now this is checked at the higher level | ||||
* | Fix XLC sanitizers | Jack Lloyd | 2019-01-22 | 1 | -1/+3 |
| | | | | Broken by 22b1889 | ||||
* | Move hash util to hash.cpp and add --format option | Jack Lloyd | 2019-01-22 | 3 | -65/+127 |
| | | | | | | | For example/documentation purposes, having distinct files makes the code easier to find. New --format option allows encoding as base64 or base58 | ||||
* | Merge GH #1816 Rename Integrity_Failure to Invalid_Authentication_Tag | Jack Lloyd | 2019-01-21 | 21 | -33/+50 |
|\ | |||||
| * | Rename Integrity_Failure to Invalid_Authentication_Tag | Jack Lloyd | 2019-01-18 | 21 | -33/+50 |
| | | | | | | | | | | | | | | | | | | This makes the meaning and usage more clear. Add a specific error type so invalid tags can be distinguished without having to catch that specific type. See also #1813 | ||||
* | | Add BMI2 code to policy files | Jack Lloyd | 2019-01-21 | 3 | -0/+9 |
| | | |||||
* | | Add BMI2 variants for SHA-512 and SHA-3 | Jack Lloyd | 2019-01-18 | 12 | -10/+417 |
|/ | | | | Both about 33% faster on Skylake | ||||
* | Fix init ordering warning | Jack Lloyd | 2019-01-18 | 1 | -1/+1 |
| | |||||
* | Remove use of std::filesystem / boost::filesystem | Jack Lloyd | 2019-01-17 | 3 | -70/+8 |
| | | | | | | | | | Boost doesn't buy us anything here since we need to maintain Win32 and POSIX implementations for non-Boost builds, and Boost only supports those two APIs anyway. MSVC's implementation of std::filesystem does not help for similar reasons, as we have to maintain a Win32 version for MinGW. | ||||
* | Define BOTAN_IF_CONSTEXPR | Jack Lloyd | 2019-01-17 | 4 | -8/+25 |
| | | | | This lets us avoid some warnings under VC++ 2017 | ||||
* | Fix some warnings from PVS-Studio | Jack Lloyd | 2019-01-17 | 12 | -22/+37 |
| | | | | No real bugs, but pointed out some odd constructs and duplicated logic | ||||
* | Merge GH #1808 Add sandbox feature to CLI | Jack Lloyd | 2019-01-14 | 6 | -0/+82 |
|\ | |||||
| * | Sandboxing feature from CLI pov. | David Carlier | 2019-01-14 | 5 | -25/+74 |
| | | | | | | | | | | No resources to free with actual OS features but might be of use for later. | ||||
| * | Proposal of sandboxing feature. | David Carlier | 2019-01-06 | 5 | -0/+33 |
| | | | | | | | | For now only used by the TLS server. | ||||
* | | Allocate aligned pages in mem pool fuzzer | Jack Lloyd | 2019-01-13 | 1 | -11/+68 |
| | | | | | | | | | | | | | | Otherwise the alignment tests can fail. OSS-Fuzz 12412 And also free the pages on exit otherwise OSS-Fuzz detects it as a leak. OSS-Fuzz 12413 | ||||
* | | Remove unused fields | Jack Lloyd | 2019-01-13 | 1 | -3/+0 |
| | | |||||
* | | Remove trailing whitespace | Jack Lloyd | 2019-01-13 | 16 | -66/+63 |
|/ | |||||
* | Fix indent [ci skip] | Jack Lloyd | 2019-01-05 | 1 | -7/+7 |
| | |||||
* | Revert #1798 | Jack Lloyd | 2019-01-05 | 1 | -4/+14 |
| | | | | | | | | The problem in #602 is not the use of mmap but the use of mmap with MAP_SHARED. Using MAP_PRIVATE creates a CoW mapping just like malloc or posix_memalign would. I'm not sure why it took me so long to figure this out ... | ||||
* | Add a fast range check and inline some things | Jack Lloyd | 2019-01-05 | 2 | -78/+89 |
| | |||||
* | Split up allocations into pages | Jack Lloyd | 2019-01-05 | 7 | -172/+194 |
| | |||||
* | Update fuzzer for new Memory_Pool behavior and constructor | Jack Lloyd | 2019-01-04 | 1 | -7/+26 |
| | |||||
* | New Memory_Pool implementation | Jack Lloyd | 2019-01-04 | 4 | -138/+335 |
| | | | | | Quite a bit faster than the old version, and with better properties wrt alignment | ||||
* | Merge GH #1807 Use sccache for MSVC builds | Jack Lloyd | 2019-01-04 | 4 | -32/+36 |
|\ | |||||
| * | Use sccache for MSVC builds | Jack Lloyd | 2019-01-04 | 4 | -32/+36 |
| | | |||||
* | | Tick version to 2.10.0 | Jack Lloyd | 2019-01-04 | 1 | -1/+1 |
| | |