summaryrefslogtreecommitdiffstats
path: root/botan/src/stream/stream_cipher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'botan/src/stream/stream_cipher.cpp')
-rw-r--r--botan/src/stream/stream_cipher.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/botan/src/stream/stream_cipher.cpp b/botan/src/stream/stream_cipher.cpp
new file mode 100644
index 0000000..68bb5d4
--- /dev/null
+++ b/botan/src/stream/stream_cipher.cpp
@@ -0,0 +1,30 @@
+/**
+* Stream Cipher Default Implementation for IV and Seek
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#include <botan/stream_cipher.h>
+
+namespace Botan {
+
+/*
+* Default StreamCipher Resync Operation
+*/
+void StreamCipher::resync(const byte[], u32bit length)
+ {
+ if(length)
+ throw Exception("The stream cipher " + name() +
+ " does not support resyncronization");
+ }
+
+/*
+* Default StreamCipher Seek Operation
+*/
+void StreamCipher::seek(u32bit)
+ {
+ throw Exception("The stream cipher " + name() + " does not support seek()");
+ }
+
+}