aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Avoid protected data member in TLS testsJack Lloyd2017-10-021-4/+5
|
* Remove redundant "virtual override" declarations.Jack Lloyd2017-10-021-2/+2
|
* Remove another expensive keygen testJack Lloyd2017-10-011-1/+1
| | | | [ci skip]
* Fix some cast warnings from SonarJack Lloyd2017-10-012-9/+12
|
* Use explicit :: or std:: to refer to functions in namespacesJack Lloyd2017-10-011-1/+1
|
* Remove 2048-bit keygen testsJack Lloyd2017-10-012-2/+2
| | | | Slow, and doesn't buy us much vs just the 1024 bit test.
* Address some MSVC warningsJack Lloyd2017-09-301-1/+1
|
* Windows!!!!!!!Jack Lloyd2017-09-291-1/+1
|
* Work around some MSVC 2013 sillynessJack Lloyd2017-09-291-1/+3
|
* Ensure files are closed before trying to remove itJack Lloyd2017-09-291-0/+4
| | | | Windows ...
* Avoid using std::rand in test codeJack Lloyd2017-09-291-2/+4
| | | | It makes static analyzers mad
* Check return value of std::remove in testJack Lloyd2017-09-291-2/+5
| | | | Coverity find
* Fix test error if mceies disabledJack Lloyd2017-09-291-3/+5
| | | | [ci skip]
* Avoid crash in DLIES tests if AEADs disabledJack Lloyd2017-09-291-0/+6
|
* Unused variableJack Lloyd2017-09-291-1/+1
| | | | [ci skip]
* In TLS CBC padding check, only need to verify last 256 bytesJack Lloyd2017-09-291-2/+26
| | | | | No reason to scan the entire record since it's assured at most 256 bytes of padding are used. Inspired by GH #1227
* Add a test of TLS CBC padding verificationJack Lloyd2017-09-292-0/+76
| | | | See also GH #1227
* Further header cleanupsJack Lloyd2017-09-2811-13/+35
|
* Make poly_dbl.h a submodule of utilsJack Lloyd2017-09-271-1/+8
| | | | | Only required by a few modules and if none of them are in use then the whole thing can just be skipped from the build.
* Merge GH #1226 Add HKDF-Expand-LabelJack Lloyd2017-09-272-0/+62
|\
| * Add HKDF-Expand-LabelJack Lloyd2017-09-272-0/+62
| | | | | | | | Step 1/n of TLS 1.3
* | Remove OutputLen parameter from KDF test dataJack Lloyd2017-09-2712-1405/+3
|/ | | | | We already know how long the output should be, it should match the test vector :)
* Add a GCD testJack Lloyd2017-09-253-0/+34
|
* Improve test coverage slightly and correct macroJack Lloyd2017-09-251-8/+3
|
* Fix for threadless buildsJack Lloyd2017-09-251-0/+5
| | | | [ci skip]