aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/aead
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-08-19 14:31:17 +0000
committerlloyd <[email protected]>2013-08-19 14:31:17 +0000
commit394033c9fe998dc6a64162414bbc2b705f1ec901 (patch)
tree0c5f8331cde1296a2c266800cbc5c594d128098d /src/modes/aead
parent178fe54130c3582e5a292bac063f53a77dc4c4df (diff)
Add Cipher_Mode intermediate class. Add missing BOTAN_DLL exports
Diffstat (limited to 'src/modes/aead')
-rw-r--r--src/modes/aead/aead.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modes/aead/aead.h b/src/modes/aead/aead.h
index 97f156d60..25958a36a 100644
--- a/src/modes/aead/aead.h
+++ b/src/modes/aead/aead.h
@@ -8,7 +8,7 @@
#ifndef BOTAN_AEAD_MODE_H__
#define BOTAN_AEAD_MODE_H__
-#include <botan/transform.h>
+#include <botan/cipher_mode.h>
namespace Botan {
@@ -19,9 +19,11 @@ namespace Botan {
* which is not included in the ciphertext (for instance a sequence
* number).
*/
-class AEAD_Mode : public Transformation
+class BOTAN_DLL AEAD_Mode : public Cipher_Mode
{
public:
+ bool authenticated() const override { return true; }
+
/**
* Set associated data that is not included in the ciphertext but
* that should be authenticated. Must be called after set_key
@@ -44,7 +46,7 @@ class AEAD_Mode : public Transformation
/**
* Default AEAD nonce size (a commonly supported value among AEAD
- * modes, and, large enough that random collisions are unlikely).
+ * modes, and large enough that random collisions are unlikely).
*/
size_t default_nonce_size() const override { return 12; }
};