aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-01 18:43:19 -0500
committerJack Lloyd <[email protected]>2016-12-01 18:43:19 -0500
commit5c49dbac212e53be821b0771d3df46f78801efbe (patch)
treed1535455a61cb09435aba1a18fc66f3c43054be3 /src
parent48f60da58c5a9c6664519a33abb635357d2eae0d (diff)
parentfa6f766baa2f6a04d4d31bbec262c5e5dc11f8e4 (diff)
Merge GH #749 Prohibit SHAKE in BSI mode. Avoid XMSS test fails if SHAKE disabled.
Diffstat (limited to 'src')
-rw-r--r--src/build-data/policy/bsi.txt2
-rw-r--r--src/tests/test_pubkey.cpp12
2 files changed, 12 insertions, 2 deletions
diff --git a/src/build-data/policy/bsi.txt b/src/build-data/policy/bsi.txt
index 3815f9c1f..782cf36dd 100644
--- a/src/build-data/policy/bsi.txt
+++ b/src/build-data/policy/bsi.txt
@@ -14,7 +14,6 @@ ctr
sha2_32
sha2_64
sha3
-shake
# mac
cmac
@@ -141,6 +140,7 @@ md4
rmd160
#sha1 // needed for tls
#sha1_sse2 // needed for tls
+shake
skein
tiger
whirlpool
diff --git a/src/tests/test_pubkey.cpp b/src/tests/test_pubkey.cpp
index c2c1bb256..293756db9 100644
--- a/src/tests/test_pubkey.cpp
+++ b/src/tests/test_pubkey.cpp
@@ -88,7 +88,17 @@ PK_Signature_Generation_Test::run_one_test(const std::string&, const VarMap& var
Test::Result result(algo_name() + "/" + padding + " signature generation");
- std::unique_ptr<Botan::Private_Key> privkey = load_private_key(vars);
+ std::unique_ptr<Botan::Private_Key> privkey;
+ try
+ {
+ privkey = load_private_key(vars);
+ }
+ catch(Botan::Lookup_Error& e)
+ {
+ result.note_missing(e.what());
+ return result;
+ }
+
std::unique_ptr<Botan::Public_Key> pubkey(Botan::X509::load_key(Botan::X509::BER_encode(*privkey)));
std::vector<std::unique_ptr<Botan::PK_Verifier>> verifiers;