Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid using std::invalid_argument | Jack Lloyd | 2018-11-07 | 3 | -4/+4 |
| | | | | See #1726 | ||||
* | Merge GH #1733 Add includes for MSVC 2019 | Jack Lloyd | 2018-11-07 | 2 | -2/+2 |
|\ | |||||
| * | Add missing <stdexcept> <string> necessary | Larry-Hu | 2018-11-07 | 2 | -2/+2 |
|/ | |||||
* | Simplify BigInt::is_zero | Jack Lloyd | 2018-11-06 | 1 | -6/+1 |
| | | | | | | The definition of return value of sig_words() means the integer is zero iff sig_words() returns zero, so there is no reason to scan over the data twice. | ||||
* | Update news | Jack Lloyd | 2018-11-06 | 1 | -1/+6 |
| | |||||
* | Merge GH #1730 Optimize AVX2 ChaCha | Jack Lloyd | 2018-11-06 | 2 | -238/+209 |
|\ | |||||
| * | Optimize AVX2 ChaCha | Jack Lloyd | 2018-11-05 | 2 | -238/+209 |
| | | | | | | | | | | | | Using the same transposition trick used for SSE2 in #1728 On my Skylake desktop about 5-10% faster depending on buffer sizes. | ||||
* | | Merge GH #1729 Optimize SIMD_4x32 for NEON | Jack Lloyd | 2018-11-06 | 1 | -33/+32 |
|\ \ | |||||
| * | | Fix for 32-bit ARM | Jack Lloyd | 2018-11-05 | 1 | -0/+9 |
| | | | |||||
| * | | Some optimizations for NEON in SIMD_4x32 | Jack Lloyd | 2018-11-05 | 1 | -35/+25 |
| |/ | |||||
* / | Remove SIMD_32 typedef | Jack Lloyd | 2018-11-05 | 4 | -50/+48 |
|/ | | | | | It is confusing since its not clear from the name how many elements it has, and this gives consistency with SIMD_8x32 type. | ||||
* | Update news | Jack Lloyd | 2018-11-05 | 1 | -1/+1 |
| | |||||
* | Merge GH #1728 Fix ChaCha bug, optimize, add AltiVec support | Jack Lloyd | 2018-11-05 | 17 | -621/+305 |
|\ | |||||
| * | Add ChaCha using SIMD_4x32 | Jack Lloyd | 2018-11-04 | 14 | -612/+279 |
| | | | | | | | | | | | | | | | | | | | | | | This allows supporting SSE2, NEON and AltiVec in a single codebase, so drop the NEON and SSE2 code. This new impl avoids having to do shuffles with every round and so is about 10% faster on Skylake. Also, fix bugs in both baseline and AVX2 implementations when the low counter overflowed. The SSE2 and NEON code were also buggy here. | ||||
| * | Use 64-bit integer for seek value in stream cipher tests | Jack Lloyd | 2018-11-04 | 1 | -1/+1 |
| | | |||||
| * | Add VarMap::get_opt_u64 | Jack Lloyd | 2018-11-04 | 2 | -8/+25 |
|/ | |||||
* | Ensure this works even if par mult param is set to 1 | Jack Lloyd | 2018-11-02 | 1 | -1/+1 |
| | | | | As this paramater is technically a user configurable toggle. | ||||
* | Correct test | Jack Lloyd | 2018-11-02 | 4 | -3/+18 |
| | | | | This was trying to test for issue in #1723 but was incorrect. | ||||
* | Fix issue when CXX was set to 'ccache g++' see ↵ | Jack Lloyd | 2018-11-02 | 1 | -1/+1 |
| | | | | https://github.com/randombit/botan-rs/pull/9 | ||||
* | Merge GH #1724 Increase update granularity of GCM to work around FFI problem | Jack Lloyd | 2018-11-02 | 1 | -1/+1 |
|\ | |||||
| * | Fixed an issue where update_granularity is equal to tag_size in GCM mode, ↵ | chux0519 | 2018-11-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | which will cause incremental decoding to fail in ffi. related code(ffi_cipher.cpp): ```cpp BOTAN_ASSERT(cipher.update_granularity() > cipher.minimum_final_size(), "logic error"); ``` | ||||
* | | Merge GH #1726 Add missing includes caught by VC2019 | Jack Lloyd | 2018-11-02 | 1 | -0/+2 |
|\ \ | |/ |/| | |||||
| * | Add missing <stdexcept> <string> necessary | Cheney-Wang | 2018-11-02 | 1 | -0/+2 |
|/ | |||||
* | Minor optimization when primality checking | Jack Lloyd | 2018-10-31 | 1 | -2/+4 |
| | | | | | | | Avoid doing the comparison against the largest hard coded prime, when we know the prime table is 16 bits and we already have to compute the bitsize of n in order to calculate the required number of Miller-Rabin iterations. | ||||
* | Handle setting AD after a nonce correctly in AEADs | Jack Lloyd | 2018-10-31 | 4 | -7/+40 |
| | | | | | | | | | | | In some cases (EAX, GCM, ChaCha20Poly1305) the mode does not handle this. However previously it handled it incorrectly by producing incorrect output. Instead reject it with an exception. Add a test that, if the mode accepts an AD before the nonce, then it must process the message correctly. This is similar to the existing test that if the mode accepts an AD before the key is set it must do the right thing with it. | ||||
* | Update cipher mode documantation | Jack Lloyd | 2018-10-31 | 1 | -9/+55 |
| | |||||
* | Fix some ReST format errors | Jack Lloyd | 2018-10-30 | 4 | -17/+17 |
| | | | | Diagnosed by Sphinx 1.8.0 | ||||
* | Update news | Jack Lloyd | 2018-10-30 | 1 | -0/+6 |
| | |||||
* | Merge GH #1722 TSS improvements and bug fix | Jack Lloyd | 2018-10-30 | 13 | -66/+612 |
|\ | |||||
| * | Lint fix [ci skip] | Jack Lloyd | 2018-10-30 | 1 | -4/+4 |
| | | |||||
| * | Document TSS | Jack Lloyd | 2018-10-30 | 4 | -1/+71 |
| | | |||||
| * | Add test for TSS cli util | Jack Lloyd | 2018-10-30 | 2 | -2/+56 |
| | | |||||
| * | Add CLI util for threshold secret sharing | Jack Lloyd | 2018-10-29 | 2 | -0/+115 |
| | | |||||
| * | Fixes and improvments for TSS code | Jack Lloyd | 2018-10-29 | 5 | -62/+341 |
| | | | | | | | | Fix a bug (bad length field), new APIs, etc | ||||
| * | Add VarMap::get_req_bin_list | Jack Lloyd | 2018-10-29 | 2 | -2/+30 |
|/ | |||||
* | Fix compilation problem when scrypt is disabled | Jack Lloyd | 2018-10-29 | 1 | -0/+1 |
| | | | | Fixes GH #1720 | ||||
* | Rename --disable-sha to --disable-sha-ni | Jack Lloyd | 2018-10-26 | 1 | -1/+1 |
| | | | | | Which should hopefully be less confusing, and optparse will accept the truncated version so no compat problem. GH #1718 | ||||
* | Remove duplicated news item [ci skip] | Jack Lloyd | 2018-10-26 | 1 | -4/+1 |
| | |||||
* | Update news | Jack Lloyd | 2018-10-26 | 1 | -0/+14 |
| | |||||
* | Merge GH #1719 Add NEON ChaCha | Jack Lloyd | 2018-10-26 | 7 | -81/+403 |
|\ | |||||
| * | Add ChaCha in NEON | Jack Lloyd | 2018-10-26 | 5 | -1/+324 |
| | | | | | | | | | | Originally written by Jeffrey Walton for Crypto++, which was in turn based on my SSE2 ChaCha. | ||||
| * | In ChaCha AVX2/SSE2 code s/input/state/ | Jack Lloyd | 2018-10-26 | 2 | -80/+79 |
|/ | | | | | It is confusing as while the stream cipher state is the input to the permutation, the stream cipher has an unrelated input (the text). | ||||
* | Merge GH #1717 Fix building FFI when HOTP is disabled | Jack Lloyd | 2018-10-25 | 1 | -2/+2 |
|\ | |||||
| * | Fix FFI compilation without hotp module | Tobias Brunner | 2018-10-25 | 1 | -2/+2 |
|/ | |||||
* | Merge GH #1715 Add missing string include | Jack Lloyd | 2018-10-24 | 1 | -0/+1 |
|\ | |||||
| * | Add missing <string> necessary to use std::string in tss.h | Billy Robert O'Neal III | 2018-10-23 | 1 | -0/+1 |
|/ | |||||
* | Use more informative error message for invalid CBC padding | Jack Lloyd | 2018-10-23 | 1 | -1/+1 |
| | | | | GH #1714 | ||||
* | Add some long Blowfish tests | Jack Lloyd | 2018-10-18 | 2 | -0/+14 |
| | | | | | The test suite was not hitting the 4x unrolled Blowfish added in f7a8bd2780c | ||||
* | Merge GH #1712 Cleanups for configure | Jack Lloyd | 2018-10-18 | 7 | -40/+64 |
|\ | |||||
| * | Canonicalize OS name first | Jack Lloyd | 2018-10-18 | 1 | -11/+13 |
| | | | | | | | | | | | | We need the canonical OS name to be able to look up the relevant data for defaults, but the defaults need to be set before the rest of the canonicalization code runs. |