aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-31 07:28:36 -0500
committerJack Lloyd <[email protected]>2016-12-31 07:28:36 -0500
commit0a97554ce6eb3056de08beb760beece67bedfb15 (patch)
tree5a96d5964761f4c0c79e13a6afb4e18a5f3bc399 /src
parentad508d9926e934347457af61db3fa6897feee441 (diff)
Fix test with SHA-1 disabled
Diffstat (limited to 'src')
-rw-r--r--src/tests/test_dl_group.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/test_dl_group.cpp b/src/tests/test_dl_group.cpp
index bb3e3d962..3180107d9 100644
--- a/src/tests/test_dl_group.cpp
+++ b/src/tests/test_dl_group.cpp
@@ -85,6 +85,7 @@ class DL_Group_Tests : public Test
result.test_lte("DH g size", dh1050.get_g().bits(), 1050);
result.test_eq("DH group verifies", dh1050.verify_group(rng, true), true);
+#if defined(BOTAN_HAS_SHA1)
// From FIPS 186-3 test data
const std::vector<uint8_t> seed = Botan::hex_decode("1F5DA0AF598EEADEE6E6665BF880E63D8B609BA2");
@@ -101,6 +102,8 @@ class DL_Group_Tests : public Test
result.test_eq("DSA p from seed", dsa_from_seed.get_p() % 4294967291, 2513712339);
result.test_eq("DSA group from seed verifies", dsa_from_seed.verify_group(rng, true), true);
+#endif
+
result.end_timer();
return result;