aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Move all the various X509 test data files under src/tests/data/x509Jack Lloyd2017-11-16659-41/+41
|
* Correct CAST-128 decryption with more than 1 blockJack Lloyd2017-11-161-0/+4
|
* Catch exceptions in NIST validation testsJack Lloyd2017-11-141-33/+41
|
* Fix PKCS10 subject alt name usageJack Lloyd2017-11-141-0/+5
| | | | GH #1010
* Add a test for GH #1252Jack Lloyd2017-11-143-0/+54
|
* Small cleanups in X509 testsJack Lloyd2017-11-141-22/+41
|
* Move X509_DN and AlternativeName from asn1 to x509Jack Lloyd2017-11-142-2/+3
|
* Support seeking in Salsa20Jack Lloyd2017-11-142-0/+38
| | | | Add a test that StreamCipher::seek throws if not keyed.
* rename cert containing UTF8String consistentlyRené Meusel2017-11-102-1/+1
|
* TEST: read (self signed) cert containing BMPString fieldsRené Meusel2017-11-102-0/+52
|
* Switch test code to use big-endian UCS2/UCS4Jack Lloyd2017-11-091-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 transcodeJack Lloyd2017-11-091-21/+14
|
* FIX: test method namespacingRené Meusel2017-11-091-2/+2
|
* FIX: coding styleRene Meusel2017-11-091-94/+92
|
* add tests for UCS-2/4 parsingRene Meusel2017-11-091-0/+65
|
* add conversion from UCS-2/4 to UTF-8Rene Meusel2017-11-091-2/+5
|
* add test reading UTF-8 X509 certRene Meusel2017-11-093-2/+61
|
* allow encoding of UTF-8 stringsRene Meusel2017-11-091-4/+69
|
* add a failing test for an UTF-8 string and a successful test for ASCIIRene Meusel2017-11-091-0/+57
|
* Add UCS-2 and UCS-4 to UTF-8 conversion functionsJack Lloyd2017-11-092-5/+34
| | | | | | Crosschecked by fuzzing and comparing with iconv Needed in #1250
* Add SHACAL2 test from Bouncy CastleJack Lloyd2017-11-051-0/+5
| | | | [ci skip]
* Fix shadow warningJack Lloyd2017-11-051-2/+3
| | | | [ci skip]
* Add support for ARIA GCM ciphersuitesJack Lloyd2017-11-031-0/+5
| | | | Tested against OpenSSL master
* Add some KDF2 values from Bouncy CastleJack Lloyd2017-11-021-0/+19
|
* Use a simple PRNG for the testsJack Lloyd2017-10-294-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 useJack Lloyd2017-10-264-3/+115
| | | | | Previously calling update or encrypt without calling set_key first would result in invalid outputs or else crashing.
* Add more SipHash testsJack Lloyd2017-10-261-0/+187
| | | | Generated by ref implementation
* Fix botan-test --helpJack Lloyd2017-10-243-36/+48
| | | | [ci skip]
* Inline Test::run_test into only callerJack Lloyd2017-10-243-45/+21
|
* Merge GH #1273 Refactor test and cli runner codeJack Lloyd2017-10-243-411/+403
|\
| * Refactor option parsing in cli and test codeJack Lloyd2017-10-243-411/+403
| | | | | | | | Allows cleaning up header includes, also somewhat smaller binaries.
* | Avoid "using namespace" in test codeJack Lloyd2017-10-243-64/+51
|/
* Merge GH #1263 Support FFDHE negotiation in TLSJack Lloyd2017-10-225-8/+19
|\
| * Add supported groups TLS extension (RFC 7919)René Korthaus2017-10-175-8/+19
| |
* | Merge GH #1270 Support verification of PSS X.509 objectsJack Lloyd2017-10-22233-0/+8971
|\ \
| * | review changesDaniel Neus2017-10-211-225/+225
| | |
| * | X.509 RSA-PSS verificationDaniel Neus2017-10-20233-0/+8971
| | |
* | | Allow setting CTR width via stringJack Lloyd2017-10-201-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 SSSE3Jack Lloyd2017-10-201-1/+1
|/ / | | | | | | About 30% faster than scalar on Skylake
* / GMAC test fixesJack Lloyd2017-10-182-2/+2
|/ | | | [ci skip]
* Additional final annotationsJack Lloyd2017-10-152-2/+2
|
* Optimize GCMJack Lloyd2017-10-131-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 functionsJack Lloyd2017-10-121-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 Lloyd2017-10-111-2/+6
| | | | Not needed here
* Update test for new error returnJack Lloyd2017-10-111-1/+1
|
* Restart state in Text_Based_Test after test is overJack Lloyd2017-10-061-0/+2
| | | | This allows --test-runs= to work as expected
* Correct the SHA-3 PKCSv1.5 IDsJack Lloyd2017-10-051-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 commentJack Lloyd2017-10-031-1/+0
| | | | Sonar
* Remove various unused variablesJack Lloyd2017-10-025-9/+7
| | | | Sonar finds
* Remove protected data from Fixed_Output_RNG in test codeJack Lloyd2017-10-021-31/+15
|