aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/filters/basefilt.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filters/basefilt.cpp b/src/filters/basefilt.cpp
index 008d04b02..dfb81386b 100644
--- a/src/filters/basefilt.cpp
+++ b/src/filters/basefilt.cpp
@@ -10,9 +10,10 @@
namespace Botan {
-void Keyed_Filter::set_iv(const InitializationVector&)
+void Keyed_Filter::set_iv(const InitializationVector& iv)
{
- // assert that the iv is empty?
+ if(iv.length() != 0)
+ throw Invalid_IV_Length(name(), iv.length());
}
/*