aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge GH #2298 Clean up prime generation logicJack Lloyd2020-03-063-44/+52
|\
| * Clean up prime generation logic slightlyJack Lloyd2020-03-063-44/+52
| | | | | | | | | | | | We were trying to generate safe primes using a weak check on q but actually this was rounded up to 128 bit probability check anyway. So just do that from the start then check p=2*q+1
* | Merge GH #2297 Add BigInt::ct_cond_addJack Lloyd2020-03-064-25/+38
|\ \
| * | Add BigInt::ct_cond_addJack Lloyd2020-03-064-25/+38
| |/ | | | | | | Also make low_zero_bits constant time.
* | Merge GH #2296 Optimize inverse_modJack Lloyd2020-03-063-95/+95
|\ \
| * | Optimize inverse_modJack Lloyd2020-03-063-95/+95
| |/ | | | | | | About 25% faster
* | Merge GH #2295 Optimize NIST field reduction functionsJack Lloyd2020-03-061-94/+90
|\ \
| * | Optimize NIST prime reductionsJack Lloyd2020-03-061-94/+90
| |/ | | | | | | | | Depending on curve, improves ECDSA sign and verify performance by between 3 and 9%.
* | Merge GH #2294 Remove install_name hacks for macOSJack Lloyd2020-03-067-27/+1
|\ \
| * | Remove support for running macOS binaries from local dirJack Lloyd2020-03-047-27/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is a lot of complications just to work around a user misaprehension about ld paths. And likely most macOS users are getting it via Homebrew anyway. Taken from #1505
* | | Remove commented out non-constant-time codeJack Lloyd2020-03-061-19/+0
| |/ |/| | | | | Quick testing indicates it is not even faster than the CT version anymore.
* | Reorder report from TLS HTTP test server cliJack Lloyd2020-03-041-1/+1
|/
* Merge GH #2293 Fix DER encoded ECDSA signatures with PKCS11Jack Lloyd2020-03-042-9/+37
|\
| * Add missing overloads to PKCS11_ECDSA_PrivateKeyRené Korthaus2020-03-042-9/+37
|/ | | | | | | | Since we don't derive from ECDSA_PrivateKey, message_parts() and message_part_size() need to be implemented additionally here. Fixes generating PKCS#11 ECDSA signatures as a DER sequence, which is required by strongswan, for example.
* Merge GH #2278 Support raw block ciphers from CommonCryptoJack Lloyd2020-03-033-8/+17
|\
| * CommonCrypto: improve name parsing for block cipherRichard Huveneers2020-02-183-8/+17
| | | | | | | | | | | | make_commoncrypto_block_cipher called commoncrypto_opts_from_algo to parse the supplied name. commoncrypto_opts_from_algo requires the supplied string to contain a cipher mode and non-empty padding which made make_commoncrypto_block_cipher always fail. The logic to parse just the algo_name has been moved to a seperate function commoncrypto_opts_from_algo_name.
* | Merge GH #2289 Avoid inlining the deprecated modular inverse functionsJack Lloyd2020-03-033-13/+21
|\ \
| * | Avoid inlining the deprecated modular inverse functionsJack Lloyd2020-03-023-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | Since doing so breaks ABI which otherwise is not touched so far in 2.14.0 release. Add BOTAN_DEPRECATED_API which is combination of DLL export and a deprecation warning.
* | | Fuzzer improvementsJack Lloyd2020-03-032-19/+23
| | |
* | | Fix SHACAL2 AVX2 inliningJack Lloyd2020-03-032-13/+22
| | | | | | | | | | | | | | | If compiled without -mavx2 (eg in amalgamation) things would not be inlined correctly
* | | Update expiration of git signing PGP keyJack Lloyd2020-03-031-26/+33
| | |
* | | Fix formattingJack Lloyd2020-03-031-1/+1
|/ /
* | Update newsJack Lloyd2020-03-021-8/+10
| |
* | Merge GH #2288 Avoid using symlink on Windows even when cross compilingJack Lloyd2020-03-021-13/+21
|\ \
| * | Avoid using symlink on Windows even when cross compilingJack Lloyd2020-03-021-13/+21
|/ / | | | | | | Fixes #2286. See also #2285.
* | Update newsJack Lloyd2020-03-011-0/+22
| |
* | Merge GH #2287 Remove use of BEEA for modular inversion computationsJack Lloyd2020-03-0111-393/+490
|\ \
| * | Clarify const-time guarantees of inverse_mod function [ci skip]Jack Lloyd2020-03-011-2/+5
| | |
| * | Remove use of Binary Extended Euclidean Algorithm for inversionJack Lloyd2020-03-0111-393/+487
|/ / | | | | | | | | Instead use two specialized algorithms, one for odd modulus and the other for power of 2 modulus, then combine the results using CRT.
* | Remove unused member variableJack Lloyd2020-03-012-3/+1
| |
* | Fix shadow warnings from GCCJack Lloyd2020-03-011-2/+2
| |
* | Merge GH #2280 Add support for CryptoAPI certstore on MinGWJack Lloyd2020-02-225-2/+17
|\ \
| * | Disable certstore system test on Wine (cross-mingw64 target) - fixes CIPGP2020-02-221-0/+4
| | |
| * | Conditionally disable test case (feature macro: BOTAN_HAS_CERTSTOR_WINDOWS)pgp2020-02-211-0/+7
| | |
| * | Use WINCRYPT_UNUSED_PARAM instead of NULL in CertFindCertificateInStore as wellpgp2020-02-211-1/+1
| | |
| * | Avoid mingw warning in case of NULL as unused argument to win32 API that ↵pgp2020-02-211-1/+3
| | | | | | | | | | | | accept non-pointer types
| * | Enable certstore_system_windows also for mingw configurationPGP2020-02-202-0/+2
|/ /
* | Correct comment [ci skip]Jack Lloyd2020-02-201-1/+1
| |
* | Merge GH #2279 Avoid a crash in system_rng test on macOS 10.5Jack Lloyd2020-02-191-1/+5
|\ \
| * | Fix a crash in System_RNG on macOS 10.15Jack Lloyd2020-02-191-1/+5
|/ / | | | | | | See #2268
* | Move Clang 8 build down in the Travis listJack Lloyd2020-02-181-8/+8
| |
* | In X509 DN fuzzer allow the names to be different lengthsJack Lloyd2020-02-181-8/+3
| | | | | | | | | | No reason to restrict them to have the same length here since the encodings can differ (UTF-8 vs UCS-4, etc)
* | Merge GH #2277 Avoid double free in PKCS8::load_key under Clang 8Jack Lloyd2020-02-184-2/+135
|\ \ | |/ |/|
| * use bind rather than a lambdaHannes Rantzsch2020-02-181-2/+6
| | | | | | | | This avoids crashing due to a bug in Clang 8.
| * travis: run tests on Ubuntu with Clang 8Hannes Rantzsch2020-02-182-0/+12
| |
| * test case to reproduce the bugHannes Rantzsch2020-02-181-0/+117
| |
* | Merge GH #2272 Fix header inclusion for CommonCrypto codeJack Lloyd2020-02-156-14/+11
|\ \
| * | FixJack Lloyd2020-02-151-0/+1
| | |
| * | Fix inclusion of headers for commoncrypto moduleJack Lloyd2020-02-155-14/+10
| | | | | | | | | | | | GH #2271
* | | Merge GH #2270 Small cleanupsJack Lloyd2020-02-153-7/+13
|\ \ \