Botan  1.11.15
src/lib/kdf/kdf_utils.h
Go to the documentation of this file.
00001 /*
00002 * KDF Utility Header
00003 * (C) 2015 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #ifndef BOTAN_KDF_UTILS_H__
00009 #define BOTAN_KDF_UTILS_H__
00010 
00011 #include <botan/kdf.h>
00012 #include <botan/internal/algo_registry.h>
00013 #include <botan/exceptn.h>
00014 #include <botan/internal/xor_buf.h>
00015 
00016 namespace Botan {
00017 
00018 #define BOTAN_REGISTER_KDF_NOARGS(type, name)                    \
00019    BOTAN_REGISTER_NAMED_T(KDF, name, type, (make_new_T<type>))
00020 #define BOTAN_REGISTER_KDF_1HASH(type, name)                    \
00021    BOTAN_REGISTER_NAMED_T(KDF, name, type, (make_new_T_1X<type, HashFunction>))
00022 
00023 #define BOTAN_REGISTER_KDF_NAMED_1STR(type, name) \
00024    BOTAN_REGISTER_NAMED_T(KDF, name, type, (make_new_T_1str_req<type>))
00025 
00026 }
00027 
00028 #endif