summaryrefslogtreecommitdiffstats
path: root/old/botan/build/botan/ofb.h
diff options
context:
space:
mode:
Diffstat (limited to 'old/botan/build/botan/ofb.h')
-rw-r--r--old/botan/build/botan/ofb.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/old/botan/build/botan/ofb.h b/old/botan/build/botan/ofb.h
new file mode 100644
index 0000000..a3aadc1
--- /dev/null
+++ b/old/botan/build/botan/ofb.h
@@ -0,0 +1,33 @@
+/*
+* OFB Mode
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_OUTPUT_FEEDBACK_MODE_H__
+#define BOTAN_OUTPUT_FEEDBACK_MODE_H__
+
+#include <botan/modebase.h>
+#include <botan/block_cipher.h>
+
+namespace Botan {
+
+/*
+* OFB Mode
+*/
+class BOTAN_DLL OFB : public BlockCipherMode
+ {
+ public:
+ OFB(BlockCipher* cipher);
+
+ OFB(BlockCipher* cipher,
+ const SymmetricKey& key,
+ const InitializationVector& iv);
+ private:
+ void write(const byte[], u32bit);
+ };
+
+}
+
+#endif