aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/lookup.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-03-16 23:00:05 +0000
committerlloyd <[email protected]>2013-03-16 23:00:05 +0000
commite3dd5e0c2d782bb27599aac5e1bc151863abfdc6 (patch)
tree8413822a9584db0ea0673c02df82c8f52c7a1b58 /src/libstate/lookup.h
parentaa5dc5d28f41d69b47b4180032fe57c8dc1a74ac (diff)
Add get_aead in lookup.h
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