aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pbe/pbe.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pbe/pbe.h')
-rw-r--r--lib/pbe/pbe.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/pbe/pbe.h b/lib/pbe/pbe.h
new file mode 100644
index 000000000..45c98e2c8
--- /dev/null
+++ b/lib/pbe/pbe.h
@@ -0,0 +1,39 @@
+/*
+* PBE
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_PBE_BASE_H__
+#define BOTAN_PBE_BASE_H__
+
+#include <botan/asn1_oid.h>
+#include <botan/data_src.h>
+#include <botan/filter.h>
+#include <botan/rng.h>
+
+namespace Botan {
+
+/**
+* Password Based Encryption (PBE) Filter.
+*/
+class BOTAN_DLL PBE : public Filter
+ {
+ public:
+ /**
+ * DER encode the params (the number of iterations and the salt value)
+ * @return encoded params
+ */
+ virtual std::vector<byte> encode_params() const = 0;
+
+ /**
+ * Get this PBE's OID.
+ * @return object identifier
+ */
+ virtual OID get_oid() const = 0;
+ };
+
+}
+
+#endif