Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixes for minimized builds | Jack Lloyd | 2019-02-16 | 14 | -23/+84 |
| | | | | Various configurations would fail build or test, fix that. | ||||
* | Renamed m_handle to m_prov as this is the variable name used elsewhere. | Ricardo Martins | 2019-02-15 | 1 | -1/+1 |
| | |||||
* | Use /Fd flag when building lib with MSVC | Jack Lloyd | 2019-02-14 | 3 | -3/+7 |
| | | | | See #1831 | ||||
* | Support arbitrary key lengths in SHAKE-128 cipher | Jack Lloyd | 2019-02-13 | 3 | -22/+70 |
| | | | | | We need this for Kyber, which uses 34 byte inputs to XOF when computing the public matrix. | ||||
* | Remove redundant call to start_timer | Jack Lloyd | 2019-02-13 | 1 | -2/+0 |
| | |||||
* | cli: sign and verify emsa default is empty for Ed25519 (fix #1828) | Nuno Goncalves | 2019-02-07 | 1 | -14/+33 |
| | | | | Signed-off-by: Nuno Goncalves <[email protected]> | ||||
* | Skip setting -momit-leaf-frame-pointer | Jack Lloyd | 2019-02-05 | 1 | -5/+0 |
| | | | | | It turns out GCC already uses -fomit-frame-pointer by default since at least GCC 4.7 | ||||
* | Use threads for Asan tests too | Jack Lloyd | 2019-02-05 | 1 | -1/+1 |
| | |||||
* | Properly detect embedded PowerPC | Jack Lloyd | 2019-02-05 | 1 | -1/+6 |
| | | | | GH #1820 | ||||
* | Clean up test registration a bit | Jack Lloyd | 2019-02-05 | 2 | -24/+31 |
| | |||||
* | 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 |
| | |