aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/ctr/ctr.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-08 13:05:13 -0400
committerJack Lloyd <[email protected]>2018-08-08 13:05:13 -0400
commit9eb10b06036840822c03aec900a1e64f90e77181 (patch)
tree3f0eb3ec3739d8779d08ac51894a2e714390d038 /src/lib/stream/ctr/ctr.h
parentdfbc940e4dbc032b925e4ff54429a18e4923bbd2 (diff)
Add StreamCipher::default_iv_length
Diffstat (limited to 'src/lib/stream/ctr/ctr.h')
-rw-r--r--src/lib/stream/ctr/ctr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/stream/ctr/ctr.h b/src/lib/stream/ctr/ctr.h
index c4c598161..3e0208363 100644
--- a/src/lib/stream/ctr/ctr.h
+++ b/src/lib/stream/ctr/ctr.h
@@ -23,6 +23,8 @@ class BOTAN_PUBLIC_API(2,0) CTR_BE final : public StreamCipher
void set_iv(const uint8_t iv[], size_t iv_len) override;
+ size_t default_iv_length() const override { return m_cipher->block_size(); }
+
bool valid_iv_length(size_t iv_len) const override
{ return (iv_len <= m_cipher->block_size()); }