aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Use the global thread pool for XMSS signaturesJack Lloyd2019-03-262-34/+39
| | | | | | | * i7-6700K (4 core w/SMT): 10% improvements * Ryzen 7 2700 (8 core w/SMT): 25% improvement except SHA-256 which is over twice as fast. * POWER8 (160 cores w/SMT): between 25 and 60% faster
* Work around problem with GCC 4.8Jack Lloyd2019-03-262-2/+4
|
* Fix some warnings from GCC 9Jack Lloyd2019-03-253-3/+3
| | | | New redundant-move and pessimizing-move warnings found some
* Support xz compression of releasesJack Lloyd2019-03-251-3/+19
| | | | Also fix the bzip2 support
* Now getentropy is used by default, remove from CI scriptJack Lloyd2019-03-241-4/+0
|
* Darwin supports getentropy tooDavid Carlier2019-03-241-0/+1
|
* Avoid a warning when building in single file amalgamation modeJack Lloyd2019-03-131-1/+1
|
* Replace upper_bound with lower_bound in pgp_s2kEvgeny Pokhilko2019-03-112-1/+4
| | | | | | | | Fix: RFC4880_encode_count doesn't return consistent results when processing exact iterations. It returns RFC4880 code + 1. Update PGP_S2K_Iter test to verify PGP formula Add test to verify that encoded values match the PGP formula
* Android can possibly support arc4random API.David Carlier2019-03-071-0/+3
|
* Fix Coverity warningsJack Lloyd2019-03-072-20/+38
| | | | | | | | Checking a ptr against null after dereferencing it. Allowing exception throw to escape a noexcept function. Both harmless.
* Add references for these addition chains [ci skip]Jack Lloyd2019-03-071-0/+4
|
* Merge GH #1849 Prefer to_string over as_stringJack Lloyd2019-03-0324-38/+51
|\
| * Fix MSVC and avoid deprecated function callJack Lloyd2019-03-012-2/+2
| |
| * s/as_string/to_string/Jack Lloyd2019-03-0123-37/+50
| | | | | | | | | | A few older APIs use as_string where everywhere else uses to_string. Add to_string's where missing, and deprecate X::as_string.
* | Handle invalid public key length in Ed25519Jack Lloyd2019-03-032-14/+20
|/ | | | Closes #1850
* Constify a few things in X509_Certificate::to_string()Jack Lloyd2019-03-011-5/+12
|
* Split CLI utils.cpp into more partsJack Lloyd2019-02-287-240/+351
| | | | | | Add base58 encoding/decoding CLI Use decrypt_or_random in pk_decrypt
* Add long Blowfish ECB testJack Lloyd2019-02-281-0/+4
| | | | We were not testing 4-wide encryption
* Prevent a warning with old GCCJack Lloyd2019-02-271-4/+5
| | | | GCC 4.8 seems to dislike returns_nonnull attribute, GCC 5 is ok.
* Add Boost to the coverage buildJack Lloyd2019-02-242-3/+4
| | | | So we can test coverage on things like #1839
* Fix testJack Lloyd2019-02-241-1/+1
| | | | Closes #1843
* s/Blake2b/BLAKE2b/Jack Lloyd2019-02-223-22/+24
| | | | As that is the proper name of the hash. Add a typedef for compat.
* Windows compilation fixVitaly Ivanov2019-02-221-1/+1
|
* macOS fix for tls_server in UDP/DTLS modeVitaly Ivanov2019-02-211-1/+4
|
* Merge GH #1838 Unroll SHA-3Jack Lloyd2019-02-214-134/+160
|\
| * Unroll SHA-3Jack Lloyd2019-02-214-134/+160
| | | | | | | | Improves performance by about 10-12%
* | Reset the crash count in test fuzzer scriptJack Lloyd2019-02-211-0/+2
| | | | | | | | It carried over across all fuzzer types
* | In fuzzer remove debug print and check return value of posix_memalignJack Lloyd2019-02-211-2/+2
|/
* For Clang use explicit enabling flag for Aarch64 crypto ISAJack Lloyd2019-02-211-1/+1
| | | | | For whatever reason Android's Clang does not recognize the function attributes.
* Merge GH #1830 Add MacOS certificate storeJack Lloyd2019-02-195-0/+902
|\
| * add an adaptor for certificate keychain access on macOSRené Meusel2019-02-185-0/+902
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FIX: build on non-macOS platforms FIX: move constructor of scoped_CFType implement Certificate_Store_MacOS::all_subjects() Refactor: factor out X509 policy creation FIX: cosmetics FIX: code cosmetics * Refactor: use a unique_ptr rather than free() * Refactor: use a unique_ptr rather than free() * use std::shared_ptr<> for Pimpl * double-check opening of cert stores * add some documentation * copyright notice dates shush clang compiler warning -Wcast-qual See here for details: https://bugs.webkit.org/show_bug.cgi?id=177893 shush -Wmissing-braces on Travis CI (hopefully) FIX: crash when no certificate matches FIX: 'normalize' DNs according to Apple's needs FIX: take early review comments into account FIX: compiler warning regarding variable shadowing add timers to the cerstore tests FIX: catch invalid SHA-1 parameter FIX: handle ambiguous match in .find_cert_by_pubkey_sha1() according to the super-class's documentation FIX: API documentation FIX: cosmetics make Certificate_Store_MacOS::find_crl_for() return {} FIX: low-hanging review comments FIX: more review comments FIX: compiler warnings
* | Default McEliece and XMSS to SIV modeJack Lloyd2019-02-181-2/+10
| |
* | Add additional annotations for malloc functionsJack Lloyd2019-02-171-1/+1
| | | | | | | | May help codegen slightly.
* | Name pdb file properlyJack Lloyd2019-02-171-1/+1
| | | | | | | | GH #1831
* | Fixes for minimized buildsJack Lloyd2019-02-1614-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 Martins2019-02-151-1/+1
| |
* | Use /Fd flag when building lib with MSVCJack Lloyd2019-02-143-3/+7
| | | | | | | | See #1831
* | Support arbitrary key lengths in SHAKE-128 cipherJack Lloyd2019-02-133-22/+70
| | | | | | | | | | We need this for Kyber, which uses 34 byte inputs to XOF when computing the public matrix.
* | Remove redundant call to start_timerJack Lloyd2019-02-131-2/+0
|/
* cli: sign and verify emsa default is empty for Ed25519 (fix #1828)Nuno Goncalves2019-02-071-14/+33
| | | | Signed-off-by: Nuno Goncalves <[email protected]>
* Skip setting -momit-leaf-frame-pointerJack Lloyd2019-02-051-5/+0
| | | | | It turns out GCC already uses -fomit-frame-pointer by default since at least GCC 4.7
* Use threads for Asan tests tooJack Lloyd2019-02-051-1/+1
|
* Properly detect embedded PowerPCJack Lloyd2019-02-051-1/+6
| | | | GH #1820
* Clean up test registration a bitJack Lloyd2019-02-052-24/+31
|
* Build fixes for GNU/HurdJack Lloyd2019-02-042-0/+3
| | | | Thanks to @noloader for testing this and the relevant info.
* Merge GH #1819 Add Thread_Pool and use it for running testsJack Lloyd2019-01-3113-84/+454
|\
| * Add a simple Thread_Pool testJack Lloyd2019-01-312-0/+88
| | | | | | | | And allow registering one-off functions as tests
| * Run the tests in multithreaded mode in CIJack Lloyd2019-01-311-2/+5
| |
| * Run the test suite in multiple threadsJack Lloyd2019-01-316-68/+149
| | | | | | | | Refactor areas where data was being shared
| * Add a thread poolJack Lloyd2019-01-315-14/+212
| |