diff options
Diffstat (limited to 'src/lib/base/sym_algo.cpp')
-rw-r--r-- | src/lib/base/sym_algo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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) |