From 0c9ff2333c2c80868fbc3ec6aa763259bb5bf9dd Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 21 May 2018 19:52:02 -0400 Subject: Inline SymmetricAlgorithm::verify_key_set Instead just put the throw into a compiled function. --- src/lib/base/sym_algo.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/base/sym_algo.cpp') diff --git a/src/lib/base/sym_algo.cpp b/src/lib/base/sym_algo.cpp index c6062667b..fff4afbd1 100644 --- a/src/lib/base/sym_algo.cpp +++ b/src/lib/base/sym_algo.cpp @@ -9,10 +9,9 @@ namespace Botan { -void SymmetricAlgorithm::verify_key_set(bool cond) const +void SymmetricAlgorithm::throw_key_not_set_error() const { - if(cond == false) - throw Key_Not_Set(name()); + throw Key_Not_Set(name()); } void SymmetricAlgorithm::set_key(const uint8_t key[], size_t length) -- cgit v1.2.3