aboutsummaryrefslogtreecommitdiffstats
path: root/lib/modes/cipher_mode.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/modes/cipher_mode.h')
-rw-r--r--lib/modes/cipher_mode.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/modes/cipher_mode.h b/lib/modes/cipher_mode.h
new file mode 100644
index 000000000..91e2af5a9
--- /dev/null
+++ b/lib/modes/cipher_mode.h
@@ -0,0 +1,30 @@
+/*
+* Cipher Modes
+* (C) 2013 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_CIPHER_MODE_H__
+#define BOTAN_CIPHER_MODE_H__
+
+#include <botan/transform.h>
+
+namespace Botan {
+
+/**
+* Interface for cipher modes
+*/
+class BOTAN_DLL Cipher_Mode : public Transformation
+ {
+ public:
+ /**
+ * Returns true iff this mode provides authentication as well as
+ * confidentiality.
+ */
+ virtual bool authenticated() const { return false; }
+ };
+
+}
+
+#endif