aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-16 14:32:39 +0000
committerlloyd <[email protected]>2010-06-16 14:32:39 +0000
commit3fc42518b21efe2e4fce042065647503ebe270df (patch)
tree5b151c5448bbdd98ef42d3853a1598389842cd5a
parent4ec179fa73b94d940138e0862a7025d815aa831e (diff)
We can expose valid_iv_length in the header without problems.
Remove include of assert.h in basefilt.cpp
-rw-r--r--src/filters/basefilt.cpp8
-rw-r--r--src/filters/key_filt.h3
2 files changed, 3 insertions, 8 deletions
diff --git a/src/filters/basefilt.cpp b/src/filters/basefilt.cpp
index e5ecd5418..124c0a887 100644
--- a/src/filters/basefilt.cpp
+++ b/src/filters/basefilt.cpp
@@ -8,17 +8,11 @@
#include <botan/basefilt.h>
#include <botan/key_filt.h>
-#include <assert.h>
-
namespace Botan {
void Keyed_Filter::set_iv(const InitializationVector&)
{
- }
-
-bool Keyed_Filter::valid_iv_length(u32bit length) const
- {
- return (length == 0);
+ // assert that the iv is empty?
}
/*
diff --git a/src/filters/key_filt.h b/src/filters/key_filt.h
index 55d4f8580..0afea446c 100644
--- a/src/filters/key_filt.h
+++ b/src/filters/key_filt.h
@@ -45,7 +45,8 @@ class BOTAN_DLL Keyed_Filter : public Filter
* @param length the IV length to be checked for validity
* @return true if the IV length is valid, false otherwise
*/
- virtual bool valid_iv_length(u32bit length) const;
+ virtual bool valid_iv_length(u32bit length) const
+ { return (length == 0); }
};
}