Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | FIX: test method namespacing | René Meusel | 2017-11-09 | 1 | -2/+2 |
| | |||||
* | FIX: coding style | Rene Meusel | 2017-11-09 | 1 | -94/+92 |
| | |||||
* | add tests for UCS-2/4 parsing | Rene Meusel | 2017-11-09 | 1 | -0/+65 |
| | |||||
* | add conversion from UCS-2/4 to UTF-8 | Rene Meusel | 2017-11-09 | 1 | -2/+5 |
| | |||||
* | add test reading UTF-8 X509 cert | Rene Meusel | 2017-11-09 | 3 | -2/+61 |
| | |||||
* | allow encoding of UTF-8 strings | Rene Meusel | 2017-11-09 | 1 | -4/+69 |
| | |||||
* | add a failing test for an UTF-8 string and a successful test for ASCII | Rene Meusel | 2017-11-09 | 1 | -0/+57 |
| | |||||
* | Add UCS-2 and UCS-4 to UTF-8 conversion functions | Jack Lloyd | 2017-11-09 | 2 | -5/+34 |
| | | | | | | Crosschecked by fuzzing and comparing with iconv Needed in #1250 | ||||
* | Add SHACAL2 test from Bouncy Castle | Jack Lloyd | 2017-11-05 | 1 | -0/+5 |
| | | | | [ci skip] | ||||
* | Fix shadow warning | Jack Lloyd | 2017-11-05 | 1 | -2/+3 |
| | | | | [ci skip] | ||||
* | Add support for ARIA GCM ciphersuites | Jack Lloyd | 2017-11-03 | 1 | -0/+5 |
| | | | | Tested against OpenSSL master | ||||
* | Add some KDF2 values from Bouncy Castle | Jack Lloyd | 2017-11-02 | 1 | -0/+19 |
| | |||||
* | Use a simple PRNG for the tests | Jack Lloyd | 2017-10-29 | 4 | -123/+114 |
| | | | | | | | | | | | Not cryptographically secure, but fast! Cuts several seconds off the test suite even on a very fast machine. Probably even more effective for 32-bit systems since the default for HMAC_DRBG is SHA-384. Also it means deterministic tests are used regardless of build configuration which is nice. Improve output for --test-runs which was useful for me when debugging SM2 encryption issue. | ||||
* | Add checks that keyed algorithms are actually keyed before use | Jack Lloyd | 2017-10-26 | 4 | -3/+115 |
| | | | | | Previously calling update or encrypt without calling set_key first would result in invalid outputs or else crashing. | ||||
* | Add more SipHash tests | Jack Lloyd | 2017-10-26 | 1 | -0/+187 |
| | | | | Generated by ref implementation | ||||
* | Fix botan-test --help | Jack Lloyd | 2017-10-24 | 3 | -36/+48 |
| | | | | [ci skip] | ||||
* | Inline Test::run_test into only caller | Jack Lloyd | 2017-10-24 | 3 | -45/+21 |
| | |||||
* | Merge GH #1273 Refactor test and cli runner code | Jack Lloyd | 2017-10-24 | 3 | -411/+403 |
|\ | |||||
| * | Refactor option parsing in cli and test code | Jack Lloyd | 2017-10-24 | 3 | -411/+403 |
| | | | | | | | | Allows cleaning up header includes, also somewhat smaller binaries. | ||||
* | | Avoid "using namespace" in test code | Jack Lloyd | 2017-10-24 | 3 | -64/+51 |
|/ | |||||
* | Merge GH #1263 Support FFDHE negotiation in TLS | Jack Lloyd | 2017-10-22 | 5 | -8/+19 |
|\ | |||||
| * | Add supported groups TLS extension (RFC 7919) | René Korthaus | 2017-10-17 | 5 | -8/+19 |
| | | |||||
* | | Merge GH #1270 Support verification of PSS X.509 objects | Jack Lloyd | 2017-10-22 | 233 | -0/+8971 |
|\ \ | |||||
| * | | review changes | Daniel Neus | 2017-10-21 | 1 | -225/+225 |
| | | | |||||
| * | | X.509 RSA-PSS verification | Daniel Neus | 2017-10-20 | 233 | -0/+8971 |
| | | | |||||
* | | | Allow setting CTR width via string | Jack Lloyd | 2017-10-20 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Prohibit very small counter widths (under 4 bytes), since they lead to trivial keystream reuse. Add tests. Fix clone which always returned an object with a block-wide counter. | ||||
* | | | Add GHASH using SSSE3 | Jack Lloyd | 2017-10-20 | 1 | -1/+1 |
|/ / | | | | | | | About 30% faster than scalar on Skylake | ||||
* / | GMAC test fixes | Jack Lloyd | 2017-10-18 | 2 | -2/+2 |
|/ | | | | [ci skip] | ||||
* | Additional final annotations | Jack Lloyd | 2017-10-15 | 2 | -2/+2 |
| | |||||
* | Optimize GCM | Jack Lloyd | 2017-10-13 | 1 | -0/+2 |
| | | | | | | | | | | By allowing multiple blocks for clmul, slight speedup there though still far behind optimum. Precompute a table of multiples of H, 3-4x faster on systems without clmul (and still no secret indexes). Refactor GMAC to not derive from GHASH | ||||
* | Add compile-time rotation functions | Jack Lloyd | 2017-10-12 | 1 | -17/+15 |
| | | | | | | | | | | | | | | | | | The problem with asm rol/ror is the compiler can't schedule effectively. But we only need asm in the case when the rotation is variable, so distinguish the two cases. If a compile time constant, then static_assert that the rotation is in the correct range and do the straightforward expression knowing the compiler will probably do the right thing. Otherwise do a tricky expression that both GCC and Clang happen to have recognize. Avoid the reduction case; instead require that the rotation be in range (this reverts 2b37c13dcf). Remove the asm rotations (making this branch illnamed), because now both Clang and GCC will create a roll without any extra help. Remove the reduction/mask by the word size for the variable case. The compiler can't optimize that it out well, but it's easy to ensure it is valid in the callers, especially now that the variable input cases are easy to grep for. | ||||
* | Avoid <thread> | Jack Lloyd | 2017-10-11 | 1 | -2/+6 |
| | | | | Not needed here | ||||
* | Update test for new error return | Jack Lloyd | 2017-10-11 | 1 | -1/+1 |
| | |||||
* | Restart state in Text_Based_Test after test is over | Jack Lloyd | 2017-10-06 | 1 | -0/+2 |
| | | | | This allows --test-runs= to work as expected | ||||
* | Correct the SHA-3 PKCSv1.5 IDs | Jack Lloyd | 2017-10-05 | 1 | -0/+94 |
| | | | | | | | Thanks to @noloader for pointing me at draft-jivsov-openpgp-sha3-01 which has the correct values. Adds a test so this can't happen again. | ||||
* | Avoid empty methods, use =default or add a comment | Jack Lloyd | 2017-10-03 | 1 | -1/+0 |
| | | | | Sonar | ||||
* | Remove various unused variables | Jack Lloyd | 2017-10-02 | 5 | -9/+7 |
| | | | | Sonar finds | ||||
* | Remove protected data from Fixed_Output_RNG in test code | Jack Lloyd | 2017-10-02 | 1 | -31/+15 |
| |