Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify code for SIMD_4x32::rho | Jack Lloyd | 2018-08-26 | 1 | -49/+4 |
| | |||||
* | Move AVX2 wrapper to utils | Jack Lloyd | 2018-08-24 | 2 | -0/+214 |
| | |||||
* | Simplify exception messages | Jack Lloyd | 2018-08-22 | 2 | -5/+22 |
| | | | | Remove "Invalid argument" and "Decoding Error" prefixes | ||||
* | Add BOTAN_STATE_CHECK macro | Jack Lloyd | 2018-08-17 | 2 | -2/+21 |
| | |||||
* | Remove support for 8 or 16 bit BigInt words | Jack Lloyd | 2018-08-15 | 1 | -6/+2 |
| | | | | | | | | | | It turned out 8 bit was very broken (failed to compile, due to overload problems with functions taking uint8_t vs word). 16 bit words work aside from a test failure, but is really slow. Practically speaking we are not in a position to support 16-bit CPUs very well. And being able to assume sizeof(word) >= sizeof(uint32_t) allows simplifying some code. | ||||
* | Combine SM2 key types for signatures and encryption | Jack Lloyd | 2018-08-01 | 1 | -1/+1 |
| | | | | | | It seems in practice the same key may be end up used for both operations, so maintaining a distinction at the type level just complicates things. | ||||
* | Fix ARMv7 build | Jack Lloyd | 2018-07-09 | 1 | -0/+3 |
| | | | | These hwcaps dont exist in 32-bit mode | ||||
* | Add support for ARMv8 SM4 instructions | Jack Lloyd | 2018-07-09 | 3 | -5/+70 |
| | | | | Tested in qemu | ||||
* | Correct Doxygen errors | Jack Lloyd | 2018-07-02 | 1 | -1/+1 |
| | |||||
* | Fix handling of SHA instructions in tests | Jack Lloyd | 2018-06-29 | 1 | -0/+2 |
| | |||||
* | Fix error in 1024-bit polynomial double | Jack Lloyd | 2018-06-25 | 1 | -2/+2 |
| | | | | | No big problem since we don't even support 1024-bit ciphers atm (though I suppose someone might have used Lion for this) | ||||
* | Use ASCII specific function calls for Windows API calls | Jack Lloyd | 2018-06-25 | 1 | -3/+3 |
| | | | | Fixes #1615 | ||||
* | Use masked table lookup in ECC base point multiplication | Jack Lloyd | 2018-06-19 | 1 | -0/+12 |
| | |||||
* | Make Karatsuba multiply completely const time | Jack Lloyd | 2018-06-14 | 1 | -5/+7 |
| | |||||
* | Constify some local variables | Jack Lloyd | 2018-06-08 | 1 | -2/+2 |
| | |||||
* | Move codec_base.h to internal header in utils | Jack Lloyd | 2018-05-31 | 2 | -0/+166 |
| | |||||
* | Add BMI2-specific SHA-256 | Jack Lloyd | 2018-05-27 | 3 | -2/+25 |
| | | | | | Currently just a copy of the baseline compression function, but compiled with BMI2 flags. On Skylake improves performance by about 40%. | ||||
* | Remove debug printf | Jack Lloyd | 2018-05-22 | 1 | -1/+1 |
| | |||||
* | Merge GH #1568 Use BOTAN_ARG_CHECK more | Jack Lloyd | 2018-05-14 | 5 | -6/+27 |
|\ | |||||
| * | Add message to BOTAN_ARG_CHECK and use it more widely | Jack Lloyd | 2018-05-13 | 5 | -6/+27 |
| | | |||||
* | | Apple Clang requires min/max be constexpr | Jack Lloyd | 2018-05-13 | 1 | -1/+10 |
| | | | | | | | | Add BOTAN_CONSTEXPR since we are still stuck with VC2013 for a while. | ||||
* | | Fixes for compilation in C++17 mode by MSVC | Jack Lloyd | 2018-05-13 | 1 | -3/+7 |
|/ | | | | Fixes GH #1566 | ||||
* | Use GCC builtins for clz operation | Jack Lloyd | 2018-04-15 | 1 | -1/+26 |
| | |||||
* | Fix bugs in wildcard matching | Jack Lloyd | 2018-03-31 | 1 | -77/+107 |
| | | | | | | | We would incorrectly accept invalid matches for example b*.example.net could match foobar.example.net Introduced in 289cc25709b08 | ||||
* | Avoid another problem with AltiVec | Jack Lloyd | 2018-03-28 | 1 | -15/+6 |
| | | | | This caused test failures on ppc64 (big-endian) with GCC 7.2 | ||||
* | Add back posix_mlock flag | Jack Lloyd | 2018-03-26 | 1 | -0/+6 |
| | | | | | We need a distinct flag for this because Haiku is mostly POSIX but does not support mlock. | ||||
* | Avoid code that triggers problems under GCC 8 | Jack Lloyd | 2018-03-18 | 1 | -1/+1 |
| | | | | GH #1498 | ||||
* | Fix CPUID::has_cpuid_bit | Jack Lloyd | 2018-03-17 | 1 | -1/+3 |
| | | | | | | It would return true if any bits were set instead of if all the bits were set. It is only currently called with a single bit but that might change in the future. | ||||
* | Avoid creating stringstream unless needed in version check | Jack Lloyd | 2018-03-17 | 1 | -3/+3 |
| | |||||
* | Avoid unused arg warning in PowerPC CPUID code | Jack Lloyd | 2018-03-17 | 1 | -0/+2 |
| | |||||
* | Avoid a problematic construct for AltiVec byteswap | Jack Lloyd | 2018-03-16 | 1 | -3/+8 |
| | | | | Seems to cause problems with GCC 8 on ppc64le. GH #1498 | ||||
* | Use RtlGenRandom instead of CryptoAPI | Jack Lloyd | 2018-03-14 | 1 | -1/+1 |
| | |||||
* | Add a facility for debug-mode assertions | Jack Lloyd | 2018-03-14 | 1 | -6/+17 |
| | | | | | When we want to check something but it is to expensive to do so in normal builds. | ||||
* | Split out the memory pool logic | Jack Lloyd | 2018-03-09 | 6 | -161/+282 |
| | | | | | | Making a clear seperation between the OS specific code to get the pool, the singleton mlock allocator, and the general allocator logic. | ||||
* | Add OS::system_page_size | Jack Lloyd | 2018-03-09 | 2 | -4/+25 |
| | |||||
* | Small fiddly optimizations in locking_allocator | Jack Lloyd | 2018-03-08 | 1 | -5/+6 |
| | |||||
* | Support 1024-bit inputs in poly_double function | Jack Lloyd | 2018-03-06 | 2 | -14/+36 |
| | | | | GH #1477 | ||||
* | Correctly read the POWER cycle counter | Jack Lloyd | 2018-03-06 | 1 | -8/+11 |
| | | | | | | | The upper register can overflow so we need to re-read the upper register to ensure we we not on a boundary. GH #1460 | ||||
* | Ensure exception types are exported from DLL | Jack Lloyd | 2018-03-06 | 1 | -1/+1 |
| | | | | GH #983 | ||||
* | Use BOTAN_DEFAULT_BUFFER_SIZE instead of DEFAULT_BUFFERSIZE | Jack Lloyd | 2018-03-01 | 1 | -5/+0 |
| | |||||
* | Move declaration of word to types.h | Jack Lloyd | 2018-03-01 | 1 | -0/+12 |
| | |||||
* | Fix handling of misaligned loads in AltiVec SIMD wrapper | Jack Lloyd | 2018-02-23 | 1 | -22/+12 |
| | | | | Handling little+big endian is a PITA, easier to bounce though a union here | ||||
* | Do runtime endian check when CPUID is initialized | Jack Lloyd | 2018-02-23 | 1 | -0/+1 |
| | | | | | Otherwise cross-endian builds (ie building big-endian for little-endian) can have massive test breakage but with no hints. | ||||
* | Use GetProcessWorkingSetSize instead of GetProcessWorkingSetSizeEx | Jack Lloyd | 2018-02-23 | 1 | -2/+1 |
| | | | | | The Ex variant is not available in older Wine (including the version in Trusty) and GetProcessWorkingSetSize is sufficient. | ||||
* | Move allocator initializer RAII class to mem_ops.h | Jack Lloyd | 2018-02-19 | 1 | -0/+6 |
| | | | | May be needed elsewhere | ||||
* | Of course they are public member variables, not functions ... | Jack Lloyd | 2018-02-13 | 1 | -1/+1 |
| | |||||
* | Add BOTAN_DEPRECATED_PUBLIC_MEMBER_FUNCTIONS | Jack Lloyd | 2018-02-13 | 1 | -0/+1 |
| | | | | | | Makes such things easier to find in the future. Also adds BOTAN_NO_DEPRECATED which causes them to be private instead. | ||||
* | Enable VirtualLock on MinGW builds | Jack Lloyd | 2018-02-13 | 1 | -2/+2 |
| | | | | | For some reason one of the blocks was guarded to be MSVC only, but it works fine on MinGW also. | ||||
* | Alternate method of forcing allocator initialization | Jack Lloyd | 2018-02-04 | 2 | -0/+12 |
| | | | | That doesn't require a malloc/free every time we call ec_group_data() | ||||
* | Add function to query if filesystem support is enabled. | Jack Lloyd | 2018-01-30 | 2 | -0/+17 |
| | | | | Makes for much simpler code. |