aboutsummaryrefslogtreecommitdiffstats
path: root/src/pbe/get_pbe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pbe/get_pbe.h')
-rw-r--r--src/pbe/get_pbe.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/pbe/get_pbe.h b/src/pbe/get_pbe.h
new file mode 100644
index 000000000..830dbb29f
--- /dev/null
+++ b/src/pbe/get_pbe.h
@@ -0,0 +1,31 @@
+/*************************************************
+* PBE Lookup Header File *
+* (C) 1999-2007 Jack Lloyd *
+*************************************************/
+
+#ifndef BOTAN_LOOKUP_PBE_H__
+#define BOTAN_LOOKUP_PBE_H__
+
+#include <botan/pbe.h>
+#include <string>
+
+namespace Botan {
+
+/**
+* Factory function for PBEs.
+* @param pbe_name the name of the PBE algorithm to retrieve
+* @return a PBE with randomly created parameters
+*/
+BOTAN_DLL PBE* get_pbe(const std::string&);
+
+/**
+* Factory function for PBEs.
+* @param pbe_oid the oid of the desired PBE
+* @param params a DataSource providing the DER encoded parameters to use
+* @return the PBE with the specified parameters
+*/
+BOTAN_DLL PBE* get_pbe(const OID&, DataSource&);
+
+}
+
+#endif