aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/kdf
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-02-01 23:46:07 +0000
committerlloyd <[email protected]>2015-02-01 23:46:07 +0000
commit69d2cd919c698a6b138b2ccba0de5d5aa2a33a03 (patch)
tree1386c3a1524717a21997804a76219093c3790218 /src/lib/kdf
parentfd3016d10124d2b7ccd7bc885235f2e407d73800 (diff)
Add missing files. Remove cipher lookup from engine code.
Diffstat (limited to 'src/lib/kdf')
-rw-r--r--src/lib/kdf/kdf_utils.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/kdf/kdf_utils.h b/src/lib/kdf/kdf_utils.h
new file mode 100644
index 000000000..bf2bfb235
--- /dev/null
+++ b/src/lib/kdf/kdf_utils.h
@@ -0,0 +1,28 @@
+/*
+* KDF Utility Header
+* (C) 2015 Jack Lloyd
+*
+* Botan is released under the Simplified BSD License (see license.txt)
+*/
+
+#ifndef BOTAN_KDF_UTIL_H__
+#define BOTAN_KDF_UTIL_H__
+
+#include <botan/kdf.h>
+#include <botan/algo_registry.h>
+#include <botan/exceptn.h>
+#include <botan/internal/xor_buf.h>
+
+namespace Botan {
+
+#define BOTAN_REGISTER_KDF_NOARGS(type, name) \
+ BOTAN_REGISTER_NAMED_T(KDF, name, type, (make_new_T<type>))
+#define BOTAN_REGISTER_KDF_1HASH(type, name) \
+ BOTAN_REGISTER_NAMED_T(KDF, name, type, (make_new_T_1X<type, HashFunction>))
+
+#define BOTAN_REGISTER_KDF_NAMED_1STR(type, name) \
+ BOTAN_REGISTER_NAMED_T(KDF, name, type, (make_new_T_1str_req<type>))
+
+}
+
+#endif