Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor optimization for Blake2b::final_result | Jack Lloyd | 2019-12-08 | 1 | -1/+2 |
| | | | | Avoids some needless memsets | ||||
* | Resolve various integer conversion warnings from MSVC | Jack Lloyd | 2019-12-06 | 1 | -1/+1 |
| | |||||
* | Deprecate many publically available headers | Jack Lloyd | 2019-09-06 | 38 | -0/+60 |
| | |||||
* | Make ssse3/sse2 dependencies explicit rather than implicit | Jack Lloyd | 2019-09-04 | 2 | -0/+2 |
| | | | | Previously --disable-sse2/--disable-ssse3 would not work as expected | ||||
* | Add BOTAN_FORCE_INLINE and use it in BLAKE2b | Jack Lloyd | 2019-08-31 | 1 | -3/+3 |
| | | | | Closes #2089 | ||||
* | Fix a carry handling bug in Streebog | Jack Lloyd | 2019-08-26 | 1 | -3/+4 |
| | | | | Closes #2082 | ||||
* | Remove BearSSL provider | Jack Lloyd | 2019-07-05 | 1 | -16/+1 |
| | | | | | | BearSSL is much slower than Botan's builtins, and it is not commonly included in distributions so doesn't even have the advantage of ubiquity. | ||||
* | Fix conflict when BMI2 is enabled and --single-amalgamation-file | Jack Lloyd | 2019-06-19 | 1 | -3/+3 |
| | | | | Not sure why this wasn't causing an error in the MSVC CI builds. | ||||
* | Make the ISA list a list | Jack Lloyd | 2019-04-17 | 8 | -8/+28 |
| | |||||
* | Fix some extra semicolons | Jack Lloyd | 2019-03-27 | 1 | -1/+1 |
| | |||||
* | Work around problem with GCC 4.8 | Jack Lloyd | 2019-03-26 | 2 | -2/+4 |
| | |||||
* | Fix some warnings from GCC 9 | Jack Lloyd | 2019-03-25 | 2 | -2/+2 |
| | | | | New redundant-move and pessimizing-move warnings found some | ||||
* | s/Blake2b/BLAKE2b/ | Jack Lloyd | 2019-02-22 | 2 | -18/+20 |
| | | | | As that is the proper name of the hash. Add a typedef for compat. | ||||
* | Unroll SHA-3 | Jack Lloyd | 2019-02-21 | 2 | -132/+158 |
| | | | | Improves performance by about 10-12% | ||||
* | Recognize BLAKE2b also [ci skip] | Jack Lloyd | 2019-01-31 | 1 | -1/+1 |
| | | | | See #1822 | ||||
* | Add BMI2 variants for SHA-512 and SHA-3 | Jack Lloyd | 2019-01-18 | 10 | -10/+413 |
| | | | | Both about 33% faster on Skylake | ||||
* | Avoid including rotate.h in bswap.h | Jack Lloyd | 2018-12-21 | 9 | -0/+9 |
| | | | | | | | It was only needed for one case which is easily hardcoded. Include rotate.h in all the source files that actually use rotr/rotl but implicitly picked it up via loadstor.h -> bswap.h -> rotate.h include chain. | ||||
* | Fix more MSVC warnings | Jack Lloyd | 2018-12-10 | 1 | -1/+1 |
| | |||||
* | Fix some MSVC warnings | Jack Lloyd | 2018-12-10 | 1 | -1/+1 |
| | |||||
* | Merge GH #1776 Clean ups in MDx_HashFunction | Jack Lloyd | 2018-12-08 | 2 | -33/+49 |
|\ | |||||
| * | Require MDx_HashFunction block size to be a power of 2 | Jack Lloyd | 2018-12-08 | 2 | -14/+25 |
| | | | | | | | | | | | | Allows replacing div/mod by a variable with a shift/mask. Allows storing just the bit count, which saves a few bytes. | ||||
| * | Cleanups in MDx_HashFunction | Jack Lloyd | 2018-12-08 | 2 | -32/+37 |
| | | |||||
* | | Clean up Streebog and fix use of unaligned loads | Jack Lloyd | 2018-12-08 | 2 | -94/+114 |
|/ | |||||
* | Avoid calling memset, memcpy within library code | Jack Lloyd | 2018-11-17 | 1 | -1/+3 |
| | | | | | | | | | Prefer using wrappers in mem_utils for this. Current exception is where memcpy is being used to convert between two different types, since copy_mem requires input and output pointers have the same type. There should be a new function to handle conversion-via-memcpy operation. | ||||
* | Fix some warnings in ARM specific code | Jack Lloyd | 2018-10-01 | 1 | -12/+12 |
| | |||||
* | Add support for hashing with CommonCrypto | Jose Pereira | 2018-09-03 | 1 | -3/+17 |
| | |||||
* | Tiny optimization in MDx_HashFunction::final_result | Jack Lloyd | 2018-05-28 | 1 | -2/+1 |
| | | | | Typically not a bottleneck but this shows up in XMSS profiling | ||||
* | Add BMI2-specific SHA-256 | Jack Lloyd | 2018-05-27 | 4 | -2/+167 |
| | | | | | Currently just a copy of the baseline compression function, but compiled with BMI2 flags. On Skylake improves performance by about 40%. | ||||
* | Add message to BOTAN_ARG_CHECK and use it more widely | Jack Lloyd | 2018-05-13 | 1 | -2/+2 |
| | |||||
* | Rename threefish module to threefish_512 | Jack Lloyd | 2018-03-06 | 2 | -2/+2 |
| | | | | GH #1477 | ||||
* | Optimize SHA_3::expand | Jack Lloyd | 2018-01-31 | 1 | -15/+14 |
| | | | | Noticable speedup for SHAKE esp with longer output lengths | ||||
* | Whitespace | Jack Lloyd | 2018-01-30 | 1 | -5/+5 |
| | |||||
* | Use copy_out_vec_le instead of explicit loop in SHA-3 and Keccak | Jack Lloyd | 2018-01-30 | 2 | -4/+2 |
| | |||||
* | Reorganize SHA-3 source file [ci skip] | Jack Lloyd | 2018-01-30 | 1 | -35/+35 |
| | | | | Put all the statics at beginning followed by member functions. | ||||
* | Avoid allocating zero bytes for SHA-3 padding | Jack Lloyd | 2018-01-30 | 4 | -27/+28 |
| | | | | Inspired by #1433 | ||||
* | ABI for Aarch64 crypto | Jack Lloyd | 2018-01-12 | 2 | -8/+2 |
| | |||||
* | Make stream, block, hash and cipher mode base classes optional | Jack Lloyd | 2018-01-12 | 2 | -0/+8 |
| | |||||
* | Add missing ISA annotations | Jack Lloyd | 2018-01-04 | 3 | -2/+3 |
| | | | | Lack of these broke single file amalgamation (GH #1386) | ||||
* | Avoid macros in Blake2b to workaround Visual C++ 2017 infinite loop | Jack Lloyd | 2017-12-30 | 1 | -39/+44 |
| | | | | | Was fixed in 2017 SP1. Same bug hit Crypto++ - https://gihub.com/weidai11/cryptopp/issues/527 | ||||
* | Rename SSE4.x names to avoid underscores | Jack Lloyd | 2017-12-11 | 2 | -2/+2 |
| | | | | | | This breaks how we determine the ISA flags for amalgamation files. The code for doing that is kind of a hack but I don't want to mess with it right now, easier to just rename the ISA internally. | ||||
* | Rename the SSE4 ISA extensions | Jack Lloyd | 2017-12-11 | 2 | -2/+2 |
| | | | | Simplifies macro generation | ||||
* | Rename CRC24 tables | Jack Lloyd | 2017-12-10 | 1 | -9/+9 |
| | | | | These conflict with name of temp variables and MSVC gets noisy. | ||||
* | Fix a typo in sha1_sse2.cpp | Felix Yan | 2017-12-03 | 1 | -1/+1 |
| | |||||
* | Minor documentation fix in HashFunction::create_or_throw. | Marcus Brinkmann | 2017-11-26 | 1 | -1/+1 |
| | |||||
* | Merge GH #1281 CRC24 optimizations | Jack Lloyd | 2017-10-29 | 2 | -67/+213 |
|\ | |||||
| * | CRC24 performance improvement (32 bits in parallel) | Krzysztof Kwiatkowski | 2017-10-29 | 2 | -67/+213 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Algorithm uses 4 tables of precalculated CRC24 values, thanks to which it can process in parallel 32 bits of data. This tric doubles performance Further improvements are possible. Results - (tested with RNP) processing 1GB armor data ``` OLD: rnp --enarmor=msg /tmp/1gb.rnd --output 4.48s user 0.89s system 98% cpu 5.429 total NEW: rnp --enarmor=msg /tmp/1gb.rnd --output 2.38s user 0.86s system 79% cpu 4.089 total OLD: rnp --dearmor out.xxx --output out.d 5.58s user 0.65s system 98% cpu 6.338 total NEW: rnp --dearmor out.xxx --output out.d 3.28s user 0.84s system 96% cpu 4.275 total ``` | ||||
* | | Include <memory> in base type headers | Jack Lloyd | 2017-10-29 | 1 | -0/+1 |
|/ | | | | Needed for the create calls | ||||
* | Fix build on 32-bit | Jack Lloyd | 2017-10-26 | 1 | -1/+1 |
| | |||||
* | Avoid invalid iterator woes | Jack Lloyd | 2017-10-26 | 1 | -8/+18 |
| | |||||
* | Blake2b optimizations | Jack Lloyd | 2017-10-26 | 3 | -133/+94 |
| | | | | | Nothing major but does improve perf for large buffers from 910 MB/s to 970 MB/s on Skylake. |