aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_dl_group.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-25 13:40:52 -0500
committerJack Lloyd <[email protected]>2018-02-25 13:40:52 -0500
commit8c3ce8fba6802b821ce1307e3ca10b06d82a04ce (patch)
tree6e79f7fa54d517a31a502245dbf8b42e8629f764 /src/tests/test_dl_group.cpp
parentc297a4b32f20a9870a6dab468f1c9a74382c55b3 (diff)
Only test strong DL_Group generation in long tests
Diffstat (limited to 'src/tests/test_dl_group.cpp')
-rw-r--r--src/tests/test_dl_group.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tests/test_dl_group.cpp b/src/tests/test_dl_group.cpp
index c513bcd55..99724a7fb 100644
--- a/src/tests/test_dl_group.cpp
+++ b/src/tests/test_dl_group.cpp
@@ -106,10 +106,13 @@ class DL_Group_Tests final : public Test
result.test_eq("DH q size", dh_implicit_q.get_q().bits(), Botan::dl_exponent_size(1040));
result.test_eq("DH group verifies", dh_implicit_q.verify_group(rng, true), true);
- Botan::DL_Group dh_strong(rng, Botan::DL_Group::Strong, 1025);
- result.test_eq("DH p size", dh_strong.get_p().bits(), 1025);
- result.test_eq("DH q size", dh_strong.get_q().bits(), 1024);
- result.test_eq("DH group verifies", dh_strong.verify_group(rng, true), true);
+ if(Test::run_long_tests())
+ {
+ Botan::DL_Group dh_strong(rng, Botan::DL_Group::Strong, 1025);
+ result.test_eq("DH p size", dh_strong.get_p().bits(), 1025);
+ result.test_eq("DH q size", dh_strong.get_q().bits(), 1024);
+ result.test_eq("DH group verifies", dh_strong.verify_group(rng, true), true);
+ }
#if defined(BOTAN_HAS_SHA1)
Botan::DL_Group dsa1024(rng, Botan::DL_Group::DSA_Kosherizer, 1024);