aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge GH #683 Avoid SHA-1 use in ElGamal+ECKCDSA self testsJack Lloyd2016-10-252-2/+2
|\
| * Fix hardcoded SHA-1 in eckcdsa consistency checkRené Korthaus2016-10-241-1/+1
| |
| * Fix hardcoded SHA-1 in elgamal consistency checkRené Korthaus2016-10-241-1/+1
| |
* | Remote unused macrosJack Lloyd2016-10-242-5/+1
| |
* | Initialize member variable in PKCS11_EC_PrivateKeyJack Lloyd2016-10-242-2/+2
|/ | | | | One of the constructors initialized the member, the others did not. Found by Coverity scanner.
* Limit locking_allocator only to OSes that even might support it.Jack Lloyd2016-10-241-0/+8
| | | | | | The pool allocator itself is portable code, but it doesn't do anything useful unless we have the ability to mlock/VirtualLock memory, which is OS specific.
* Fixes for build without 25519Jack Lloyd2016-10-241-3/+3
|
* Merge GH #673 X25519 TLS key exchangeJack Lloyd2016-10-246-42/+108
|\
| * X25519 key exchange for TLSJack Lloyd2016-10-216-42/+108
| | | | | | | | | | Client interops with google.com, server not tested against an independent client yet.
* | Merge GH #675 Lucky13 countermeasuresJack Lloyd2016-10-242-0/+82
|\ \
| * | Final changes, now using the countermeasure from the Lucky 13 paper again ↵Juraj Somorovsky2016-10-231-36/+32
| | | | | | | | | | | | | | | | | | (or a countermeasure that is very similar to it). Timing differences in the test suite show at most 120 clock cycle difference (SHA-1/256/384).
| * | SHA384 countermeasure (not perfect, but makes the attack harder)Juraj Somorovsky2016-10-221-19/+27
| | |
| * | Lucky 13 patch for SHA-1 and SHA-256Juraj Somorovsky2016-10-162-0/+78
| | |
* | | Merge GH #668: Remove Algo_Registry and associated global locksJack Lloyd2016-10-2493-1576/+1478
|\ \ \
| * | | Missing include, noticed by Clang on OS XJack Lloyd2016-10-211-0/+1
| | | |
| * | | Cleanup from rebaseJack Lloyd2016-10-211-5/+0
| | | |
| * | | Fix PSSRJack Lloyd2016-10-211-1/+1
| | | |
| * | | Remove unused functions from SCAN_NameJack Lloyd2016-10-212-39/+0
| | | |
| * | | Small cleanup in OpenSSL ECJack Lloyd2016-10-211-12/+13
| | | |
| * | | Remove alias logic from SCAN_NameJack Lloyd2016-10-2112-182/+168
| | | | | | | | | | | | | | | | | | | | | | | | This required taking a global lock and doing a map lookup each time an algorithm was requested (and so many times during a TLS handshake).
| * | | Remove Algo_RegistryJack Lloyd2016-10-2191-1455/+1413
| | |/ | |/| | | | | | | | | | | | | | | | I repent my use of global constructors. I repent my use of global locks. Hopefully I will never touch this code again. :)
* | | Fix invalid UTF-8 char in API doc [ci skip]René Korthaus2016-10-221-1/+1
| | | | | | | | | | | | | | | | | | An invalid UTF-8 character prevented Latex from generating a PDF document from the doxygen-generated Latex API docs via make pdf.
* | | Fix handling of file descriptor zeroJack Lloyd2016-10-221-13/+11
| | | | | | | | | | | | | | | If opening /dev/*random resulted in fd 0, we would both not use that RNG and leak the file descriptor. Found with Coverity.
* | | Address some Coverity warningsJack Lloyd2016-10-223-9/+9
| | | | | | | | | | | | Nothing exciting.
* | | GH #674 Check Doxygen and Sphinx builds as part of CIJack Lloyd2016-10-221-0/+4
|\ \ \
| * | | Build the docs during CIJack Lloyd2016-10-221-0/+4
| |/ / | | | | | | | | | Fix various doc building problems/warnings.
* / / Use correct macro for ECC in create_private_keyJack Lloyd2016-10-221-1/+1
|/ /
* | Allow setting the validation time during PKIX path validationJack Lloyd2016-10-212-18/+29
| | | | | | | | | | | | | | Previously validation asked the system clock which is not always the correct thing (for example when using Roughtime protocol). Had been on the todo list forever, forced into it by some of the test certs expiring today.
* | Add create_private_key, expose key loading functions in pk_algs.hJack Lloyd2016-10-207-69/+225
| |
* | Tighten up TLS server handshake logic.Jack Lloyd2016-10-201-20/+15
| | | | | | | | | | | | | | | | | | Previously client was allowed to omit the Certificate message, a leftover from supporting SSLv3. In all versions of TLS, an empty message must be sent if the client does not want to use a cert. No known security impact, but nothing we need to allow anymore. Clean up the handshake switch a bit by using return statements.
* | Merge GH #669 Add SHA-3, SHAKE-128, and BoringSSL-mode NewHopeJack Lloyd2016-10-2015-209/+554
|\ \
| * | Add SHAKE-128 as stream cipherJack Lloyd2016-10-198-106/+240
| | | | | | | | | | | | | | | Updates NewHope to use that instead of the hard-coded SHAKE-128, and adds toggle for BoringSSL compat mode using AES-128/CTR + SHA-256.
| * | Add proper SHA-3Jack Lloyd2016-10-1910-115/+326
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kind of a copy and paste of Keccak, but only a single copy of the permutation at least. Keccak depends on SHA-3 instead of the reverse, so that SHA-3 can be enabled without also bringing in an unapproved hash function. Updates newhope code and removes API function newhope_hash which was an unofficial SHA-3-256.
* | | Reorganize anon namespace code to fix last doxygen warn [ci skip]René Korthaus2016-10-201-8/+8
| | |
* | | Fix doxygen warnings [ci skip]René Korthaus2016-10-1939-58/+101
| | |
* | | Minor doxygen fixes [ci skip]René Korthaus2016-10-1910-10/+10
| | |
* | | Improve pubkey doxygen [ci skip]René Korthaus2016-10-1915-17/+251
| | |
* | | Improve tls doxygen [ci skip]René Korthaus2016-10-199-0/+99
| | |
* | | Improve stream doxygen [ci skip]René Korthaus2016-10-194-7/+26
| | |
* | | Improve rng doxygen [ci skip]René Korthaus2016-10-196-11/+82
| | |
* | | Improve pkcs11 doxygen [ci skip]René Korthaus2016-10-193-13/+49
| | |
* | | Improve pk_pad doxygen [ci skip]René Korthaus2016-10-196-5/+13
| | |
* | | Improve pbkdf doxygen [ci skip]René Korthaus2016-10-191-4/+54
| | |
* | | Improve modes doxygen [ci skip]René Korthaus2016-10-199-8/+104
| | |
* | | Improve misc doxygen [ci skip]René Korthaus2016-10-192-0/+18
| | |
* | | Improve mac doxygen [ci skip]René Korthaus2016-10-191-4/+6
| | |
* | | Improve kdf doxygen [ci skip]René Korthaus2016-10-198-8/+54
| | |
* | | Improve hash doxygen [ci skip]René Korthaus2016-10-192-4/+13
| | |
* | | Improve block doxygen [ci skip]René Korthaus2016-10-191-3/+6
|/ /
* | Maintainer mode fixesJack Lloyd2016-10-173-14/+12
| |