aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/lookup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstate/lookup.h')
-rw-r--r--src/libstate/lookup.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstate/lookup.h b/src/libstate/lookup.h
index 7387a3471..2a47c7f14 100644
--- a/src/libstate/lookup.h
+++ b/src/libstate/lookup.h
@@ -11,6 +11,7 @@
#include <botan/libstate.h>
#include <botan/engine.h>
#include <botan/filters.h>
+#include <botan/aead.h>
#include <botan/mode_pad.h>
#include <botan/kdf.h>
#include <botan/eme.h>
@@ -219,6 +220,17 @@ BOTAN_DLL Keyed_Filter* get_cipher(const std::string& algo_spec,
Cipher_Dir direction);
/**
+* Factory method for AEAD filters. No key will be set in the filter.
+*
+* @param algo_spec the name of the desired AEAD mode (eg "AES-128/OCB")
+* @param direction determines whether the filter will be an encrypting or
+* decrypting filter
+* @return pointer to the encryption or decryption filter
+*/
+BOTAN_DLL AEAD_Mode* get_aead(const std::string& algo_spec,
+ Cipher_Dir direction);
+
+/**
* Check if an algorithm exists.
* @param algo_spec the name of the algorithm to check for
* @return true if the algorithm exists, false otherwise