From 1e18edf2673519c8f8c01dbbaacc5a189f0c0a92 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 9 Aug 2018 14:05:29 -0400 Subject: Add PK_Signer::signature_length --- src/tests/test_pubkey.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tests') diff --git a/src/tests/test_pubkey.cpp b/src/tests/test_pubkey.cpp index 8340e1d54..6b40e8d3c 100644 --- a/src/tests/test_pubkey.cpp +++ b/src/tests/test_pubkey.cpp @@ -157,6 +157,9 @@ PK_Signature_Generation_Test::run_one_test(const std::string& pad_hdr, const Var signer.reset(new Botan::PK_Signer(*privkey, Test::rng(), padding, Botan::IEEE_1363, sign_provider)); generated_signature = signer->sign_message(message, rng ? *rng : Test::rng()); + + result.test_lte("Generated signature within announced bound", + generated_signature.size(), signer->signature_length()); } catch(Botan::Lookup_Error&) { -- cgit v1.2.3