diff options
Diffstat (limited to 'src/stream/ctr')
-rw-r--r-- | src/stream/ctr/ctr.cpp | 6 | ||||
-rw-r--r-- | src/stream/ctr/ctr.h | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/stream/ctr/ctr.cpp b/src/stream/ctr/ctr.cpp index dc2f334a8..e01f2432c 100644 --- a/src/stream/ctr/ctr.cpp +++ b/src/stream/ctr/ctr.cpp @@ -14,11 +14,7 @@ namespace Botan { * CTR-BE Constructor */ -CTR_BE::CTR_BE(BlockCipher* ciph) : - StreamCipher(ciph->MINIMUM_KEYLENGTH, - ciph->MAXIMUM_KEYLENGTH, - ciph->KEYLENGTH_MULTIPLE), - permutation(ciph) +CTR_BE::CTR_BE(BlockCipher* ciph) : permutation(ciph) { position = 0; diff --git a/src/stream/ctr/ctr.h b/src/stream/ctr/ctr.h index e62ab2860..64b43b0f5 100644 --- a/src/stream/ctr/ctr.h +++ b/src/stream/ctr/ctr.h @@ -26,6 +26,11 @@ class BOTAN_DLL CTR_BE : public StreamCipher bool valid_iv_length(size_t iv_len) const { return (iv_len <= permutation->block_size()); } + Key_Length_Specification key_spec() const + { + return permutation->key_spec(); + } + std::string name() const; CTR_BE* clone() const |