diff options
Diffstat (limited to 'src/lib/kdf')
-rw-r--r-- | src/lib/kdf/kdf_utils.h | 28 |
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 |