aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream/stream_cipher.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-16 03:22:08 +0000
committerlloyd <[email protected]>2010-06-16 03:22:08 +0000
commit59fed0e232008a3ff42a70d0f3ecbe0b65104c76 (patch)
tree503813a3aa6333d07bc644b63e1787a2038d1352 /src/stream/stream_cipher.cpp
parent46086387b45c713a11001d8d037ffd280f5c56c3 (diff)
Move a couple of StreamCipher functions to a source file to avoid the
Doxygen vs GCC problem.
Diffstat (limited to 'src/stream/stream_cipher.cpp')
-rw-r--r--src/stream/stream_cipher.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/stream/stream_cipher.cpp b/src/stream/stream_cipher.cpp
new file mode 100644
index 000000000..9ae548a9e
--- /dev/null
+++ b/src/stream/stream_cipher.cpp
@@ -0,0 +1,24 @@
+/*
+* Stream Cipher
+* (C) 1999-2010 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#include <botan/stream_cipher.h>
+
+namespace Botan {
+
+void StreamCipher::set_iv(const byte[], u32bit iv_len)
+ {
+ if(iv_len)
+ throw Invalid_Argument("The stream cipher " + name() +
+ " does not support resyncronization");
+ }
+
+bool StreamCipher::valid_iv_length(u32bit iv_len) const
+ {
+ return (iv_len == 0);
+ }
+
+}