diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/build-data/policy/bsi.txt | 2 | ||||
-rw-r--r-- | src/tests/test_pubkey.cpp | 12 |
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; |