Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid (implicitly) using std::rand with std::random_shuffle | Jack Lloyd | 2017-12-23 | 1 | -1/+8 |
| | | | | This causes link-time warnings on BSD and may make static analyzers angry. | ||||
* | Avoid undefined behavior in SipHash | Jack Lloyd | 2017-12-23 | 1 | -0/+51 |
| | |||||
* | Avoid possible null pointer deref | Jack Lloyd | 2017-12-22 | 1 | -2/+2 |
| | | | | Caught with Coverity | ||||
* | Enable signing X509 structures with rsa-pss | Fabian Weissberg | 2017-12-22 | 3 | -37/+289 |
| | |||||
* | Avoid test failures when PKCSv1.5 signatures are disabled in build | Jack Lloyd | 2017-12-20 | 4 | -10/+17 |
| | |||||
* | Fix some shadow and unused parameter warnings | Jack Lloyd | 2017-12-20 | 1 | -1/+1 |
| | |||||
* | Fix various x509 path validation bugs + path building with ambiguous DNs | Fabian Weissberg | 2017-12-20 | 424 | -161/+8927 |
| | | | | Signed-off-by: Fabian Weissberg <[email protected]> | ||||
* | Correct expected PSS error | Jack Lloyd | 2017-12-19 | 1 | -2/+2 |
| | |||||
* | Merge GH #1365 Always set domain encoding correctly when loading an ECC key | Jack Lloyd | 2017-12-19 | 1 | -0/+2 |
|\ | |||||
| * | Always set domain encoding correctly when loading an ECC key | René Korthaus | 2017-12-19 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | When loading an ECC key from file, the domain encoding was always set to explicit instead of depending on the encoded key file read. This resulted in different encodings and therefore different fingerprints of the same key when encoding the same key twice (once after generation, once after re-reading it). | ||||
* | | Add accessors to ASN1_Attribute and AlgorithmIdentifier | Jack Lloyd | 2017-12-19 | 1 | -1/+1 |
|/ | |||||
* | Fix a bug in PEM decoding | Jack Lloyd | 2017-12-16 | 1 | -0/+58 |
| | | | | | | | | If the label param was set to a non-empty string, the decoding would treat it as part of the label and then end up throwing a decoding error. The key fix here is adding the clear() call in decode. Private bug report by email. Add some basic tests for the PEM decoder. | ||||
* | Fix missing comma in test runner [ci skip] | Jack Lloyd | 2017-12-11 | 1 | -1/+1 |
| | | | | | This ended up trying to run the "aeadkdf" suite first, and then the actual aead and kdf suites didn't end up running until later. | ||||
* | Enable using NEON on Clang | Jack Lloyd | 2017-12-10 | 1 | -2/+2 |
| | | | | | Clang doesn't like the way SIMD shifts were implemented, I guess it fails to inline the constant. Make it a template parameter instead. | ||||
* | Fix seeding of test RNG | Jack Lloyd | 2017-12-06 | 1 | -4/+3 |
| | | | | | If no explicit seed was provided, it ended up ignoring the timestamp derived seed. | ||||
* | Add some basic tests of CPUID class | Jack Lloyd | 2017-12-06 | 1 | -0/+44 |
| | |||||
* | Merge GH #1339 Add ability to query supported named groups | Jack Lloyd | 2017-12-06 | 1 | -31/+15 |
|\ | |||||
| * | Add known_named_groups to EC_Group to list known curves. Fixes GX #1338. | J08nY | 2017-12-05 | 1 | -31/+15 |
| | | |||||
* | | Merge GH #1335 Support uninitialized X509 objects | Jack Lloyd | 2017-12-05 | 2 | -0/+37 |
|\ \ | |||||
| * | | Need binary IO for Windows | Jack Lloyd | 2017-12-04 | 1 | -1/+1 |
| | | | |||||
| * | | Support uninitialized certificate objects | Jack Lloyd | 2017-12-04 | 2 | -0/+37 |
| | | | | | | | | | | | | | | | | | | | | | Issued raised by @securitykernel on Slack, there was no non-hacky way to decode a list of certificate objects because creating an uninitialized one wasn't allowed. However after #884 that got much closer to being viable, this is the last pieces. | ||||
* | | | Simplify date conversion by avoiding OS utilities | Jack Lloyd | 2017-12-04 | 1 | -14/+14 |
| |/ |/| | | | | | | | | | | | We have to rely on non-portable OS calls to convert UTC times, and they are not available on many systems (including Solaris and MinGW). But instead there is a simple algorithm due to Howard Hinnant that does the same job. Woo. | ||||
* | | Better debug output in date conversion tests [ci skip] | Jack Lloyd | 2017-12-04 | 1 | -13/+14 |
|/ | |||||
* | Add copyright statements to files modified in the preceding 2 commits | Harry Reimann | 2017-12-04 | 1 | -0/+1 |
| | |||||
* | Make support for certificate status messages optional via policy | Harry Reimann | 2017-12-04 | 1 | -0/+3 |
| | | | | | | | | Don't postpone the verification of a server certificate if certificate status messages are not expected in client handshake. When using an external crypto device it may be necessary to verify the certificate before using the public key for verification of the signature in the server key exchange message. | ||||
* | Merge GH #1302 Add PSK database interface | Jack Lloyd | 2017-11-26 | 1 | -0/+248 |
|\ | |||||
| * | PSK Database | Jack Lloyd | 2017-11-26 | 1 | -0/+248 |
| | | |||||
* | | Fix errors caught with tlsfuzzer | Jack Lloyd | 2017-11-26 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | Don't send EC point format extension in server hello unless an EC suite was negotiated *and* the client sent the extension. Fix server FFDHE logic, this effectively disabled DHE ciphersuites for clients without FFDHE extension. Use unexpected_message alert in case of an unexpected message. (Previously an internal_error alert was sent.) | ||||
* | | Merge #1311 Add create and create_or_throw factories for ↵ | Jack Lloyd | 2017-11-25 | 1 | -0/+58 |
|\ \ | |/ |/| | | | Compression_Algorithm and Decompression_Algorithm. | ||||
| * | Add create and create_or_throw factories for Compression_Algorithm and ↵ | Marcus Brinkmann | 2017-11-25 | 1 | -0/+58 |
| | | | | | | | | Decompression_Algorithm. | ||||
* | | Fix bzip2 compression issue. | Jack Lloyd | 2017-11-25 | 2 | -22/+40 |
| | | | | | | | | | | | | When finishing, bzip2 returns BZ_STREAM_END when it has produced all output. If we end up calling the compression routine again (even with avail_in == 0), bzip2 returns an error. | ||||
* | | Add test case for bzip2 compression filter. | Marcus Brinkmann | 2017-11-25 | 1 | -0/+36 |
|/ | |||||
* | Add Pipe::append_filter | Jack Lloyd | 2017-11-24 | 1 | -0/+13 |
| | | | | | Similar to append but it only allows modfication before start_msg. See GH #1306 | ||||
* | Avoid uncontrolled recusion on indefinite length encodings | Jack Lloyd | 2017-11-20 | 1 | -0/+43 |
| | | | | | A sufficiently nested indefinite length construction would cause stack exhaustion and a crash. Found by OSS-Fuzz - issue 4353 | ||||
* | Add AES key wrap with padding | Jack Lloyd | 2017-11-19 | 4 | -1/+715 |
| | |||||
* | Avoid OCSPing on the Let's Encrypt CA cert | Jack Lloyd | 2017-11-19 | 1 | -6/+2 |
| | | | | | | Their issuing CA seems to have some performance problems with OCSP (https://github.com/letsencrypt/boulder/issues/1929) and it's currently causing timeouts in the tests. | ||||
* | Optimize Twofish | Jack Lloyd | 2017-11-16 | 1 | -18/+2 |
| | | | | | Interleaving two blocks is 40-50% faster for any mode that supports parallel operation. | ||||
* | Fix path to cert test data | Jack Lloyd | 2017-11-16 | 1 | -1/+1 |
| | |||||
* | Move all the various X509 test data files under src/tests/data/x509 | Jack Lloyd | 2017-11-16 | 659 | -41/+41 |
| | |||||
* | Correct CAST-128 decryption with more than 1 block | Jack Lloyd | 2017-11-16 | 1 | -0/+4 |
| | |||||
* | Catch exceptions in NIST validation tests | Jack Lloyd | 2017-11-14 | 1 | -33/+41 |
| | |||||
* | Fix PKCS10 subject alt name usage | Jack Lloyd | 2017-11-14 | 1 | -0/+5 |
| | | | | GH #1010 | ||||
* | Add a test for GH #1252 | Jack Lloyd | 2017-11-14 | 3 | -0/+54 |
| | |||||
* | Small cleanups in X509 tests | Jack Lloyd | 2017-11-14 | 1 | -22/+41 |
| | |||||
* | Move X509_DN and AlternativeName from asn1 to x509 | Jack Lloyd | 2017-11-14 | 2 | -2/+3 |
| | |||||
* | Support seeking in Salsa20 | Jack Lloyd | 2017-11-14 | 2 | -0/+38 |
| | | | | Add a test that StreamCipher::seek throws if not keyed. | ||||
* | rename cert containing UTF8String consistently | René Meusel | 2017-11-10 | 2 | -1/+1 |
| | |||||
* | TEST: read (self signed) cert containing BMPString fields | René Meusel | 2017-11-10 | 2 | -0/+52 |
| | |||||
* | Switch test code to use big-endian UCS2/UCS4 | Jack Lloyd | 2017-11-09 | 1 | -13/+11 |
| | | | | | | Specifications are somewhat unclear but as best I can tell only big-endian codepoints are allowed and that follows OpenSSL and GnuTLS behavior. | ||||
* | Remove use of transcode | Jack Lloyd | 2017-11-09 | 1 | -21/+14 |
| |