aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_dl_group.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Using preprocessor for the testsDavid Carlier2019-04-121-9/+8
|
* Simplify exception messagesJack Lloyd2018-08-221-3/+3
| | | | Remove "Invalid argument" and "Decoding Error" prefixes
* Fix the botan-test --verbose flag, which did nothingJack Lloyd2018-04-111-1/+1
| | | | It used to do something, then I broke it.
* Moves UBSAN macros from test files to Test_OptionsMatthias Gierlings2018-04-071-4/+1
| | | | | | | | | | | | To keep the code more readable change the behavior of `Test_Options::no_avoid_undefined_behavior()`, instead of the conditionals inside the tests. `Test_Options::no_avoid_undefined_behavior()` will always return `true` if UBSAN is inactive. This way all tests, including those that cause undefined behaviour, will run. Once botan is compiled with UBSAN those tests will be automatically skipped unless the `--no-avoid-undefined` is passed to the test-bench.
* Make tests pass by default in UBSAN modeMatthias Gierlings2018-04-061-2/+5
| | | | | | | | - Adds macros to check if botan was compiled with a certain sanitizers. - Automatically excludes the tests that are intended to provoke undefined behaviour from the test bench, when botan is compiled with UBSAN. - Changes option `--avoid-undefined` to `--no-avoid-undefined` so the failing tests can be explicitly activated when needed.
* Add --avoid-undefined optionJack Lloyd2018-03-311-6/+9
| | | | GH #1518
* Fix sanitizer issue in DL_Group testsJack Lloyd2018-03-251-1/+1
| | | | Out of range enum
* Only test strong DL_Group generation in long testsJack Lloyd2018-02-251-4/+7
|
* Add DL_Group::estimated_strengthJack Lloyd2018-02-231-0/+5
|
* Improve DL_Group testsJack Lloyd2018-02-201-2/+47
|
* Fix validation of SRP groupsJack Lloyd2018-02-191-15/+8
| | | | | For whatever reason in the SRP groups g generates the group mod p rather than the subgroup of size q.
* Add shared_ptr for DL_Group stateJack Lloyd2018-02-191-13/+11
| | | | Add precomputations for mod-p math and g^x%p calcualations.
* Add supported groups TLS extension (RFC 7919)René Korthaus2017-10-171-0/+6
|
* Add final annotations as appropriate in the test codeJack Lloyd2017-09-221-1/+1
|
* Reformat code with astyle + fix code styleTomasz Frydrych2017-05-011-6/+7
|
* Another fix for missing SHA1, and workaround Apple Clang problem.Jack Lloyd2016-12-311-8/+9
|
* Fix test with SHA-1 disabledJack Lloyd2016-12-311-0/+3
|
* Add more tests for random prime and DL group generationJack Lloyd2016-12-301-3/+23
|
* Add test option --run-long-testsJack Lloyd2016-12-241-5/+13
| | | | | | Previously longer tests were hidden behind higher 'soak levels' but these arbitrary cutoffs are confusing compared to a simple short tests/long tests split.
* Ignore the right thingJack Lloyd2016-12-231-1/+1
|
* Fix minimized buildJack Lloyd2016-12-231-0/+4
|
* Add DL_Group testsJack Lloyd2016-12-231-0/+146
Fix a bug in how the 6144 and 8192 IETF MODP groups were encoded; they have g and q values switched. Fixed by just switching the PEM header to match the actual encoded format. Rename DL_Group::X942_DH_PARAMETERS to ANSI_X9_42_DH_PARAMETERS to avoid a macro conflict with Windows cryptography headers (GH #482)