diff options
author | lloyd <[email protected]> | 2012-08-13 20:40:47 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-08-13 20:40:47 +0000 |
commit | 404ae3514fbbdb51e32af1c2c1434acacf5ec20c (patch) | |
tree | 6f4107667adb924d763f6c6ab699e1ee416025d0 /src/engine/core_engine | |
parent | 53d53fbe291f1e049f55d9018d2b07cf62fbef24 (diff) |
Fix various issues flagged by cppcheck. Nothing too interesting.
Diffstat (limited to 'src/engine/core_engine')
-rw-r--r-- | src/engine/core_engine/core_modes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/core_engine/core_modes.cpp b/src/engine/core_engine/core_modes.cpp index ffd8aa04f..21a5863e2 100644 --- a/src/engine/core_engine/core_modes.cpp +++ b/src/engine/core_engine/core_modes.cpp @@ -140,10 +140,10 @@ Keyed_Filter* get_cipher_mode(const BlockCipher* block_cipher, if(mode.find("CFB") != std::string::npos || mode.find("EAX") != std::string::npos) { - size_t bits = 0; - std::vector<std::string> algo_info = parse_algorithm_name(mode); - std::string mode_name = algo_info[0]; + const std::string mode_name = algo_info[0]; + + size_t bits = 0; if(algo_info.size() == 1) bits = 8 * block_cipher->block_size(); else if(algo_info.size() == 2) |