diff options
author | lloyd <[email protected]> | 2014-01-10 23:07:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-01-10 23:07:16 +0000 |
commit | ad6555f522ae16f6284e8dafa02f630b88bcf289 (patch) | |
tree | bd63c51dbeab75eb0f90c72589bc922141237056 /src/lib/engine | |
parent | 6894dca64c04936d07048c0e8cbf7e25858548c3 (diff) |
Split up docs into the reference manual, the website, and everything else.
Add `website` target to makefile.
Some progress towards fixing minimized builds.
TLS now hard requires ECDSA and GCM since otherwise a minimized build
has only insecure options.
Remove boost_thread dependency in command line tool
Diffstat (limited to 'src/lib/engine')
-rw-r--r-- | src/lib/engine/core_engine/core_modes.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/engine/core_engine/core_modes.cpp b/src/lib/engine/core_engine/core_modes.cpp index 6524d9c16..fa8c9babf 100644 --- a/src/lib/engine/core_engine/core_modes.cpp +++ b/src/lib/engine/core_engine/core_modes.cpp @@ -10,6 +10,7 @@ #include <botan/filters.h> #include <botan/algo_factory.h> #include <botan/mode_pad.h> +#include <botan/transform_filter.h> #include <memory> #if defined(BOTAN_HAS_MODE_CFB) @@ -170,11 +171,11 @@ Keyed_Filter* get_cipher_mode(const BlockCipher* block_cipher, } #endif -#if defined(BOTAN_HAS_AEAD_FILTER) - if(bits % 8 != 0) throw std::invalid_argument("AEAD interface does not support non-octet length tags"); +#if defined(BOTAN_HAS_AEAD_FILTER) + const size_t tag_size = bits / 8; #if defined(BOTAN_HAS_AEAD_CCM) |