diff options
author | Jack Lloyd <[email protected]> | 2018-05-21 19:52:02 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-05-21 19:52:02 -0400 |
commit | 0c9ff2333c2c80868fbc3ec6aa763259bb5bf9dd (patch) | |
tree | 2e4178d6aa2e405bc4bda62b16a5eec15c143ac0 /src/lib/base/sym_algo.cpp | |
parent | 29dcc926932d187e34b2e6994e2d5d329d6a6d93 (diff) |
Inline SymmetricAlgorithm::verify_key_set
Instead just put the throw into a compiled function.
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) |