diff options
author | lloyd <[email protected]> | 2015-02-01 23:46:07 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-02-01 23:46:07 +0000 |
commit | 69d2cd919c698a6b138b2ccba0de5d5aa2a33a03 (patch) | |
tree | 1386c3a1524717a21997804a76219093c3790218 /src/lib/hash | |
parent | fd3016d10124d2b7ccd7bc885235f2e407d73800 (diff) |
Add missing files. Remove cipher lookup from engine code.
Diffstat (limited to 'src/lib/hash')
-rw-r--r-- | src/lib/hash/hash_utils.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/hash/hash_utils.h b/src/lib/hash/hash_utils.h new file mode 100644 index 000000000..00eabe820 --- /dev/null +++ b/src/lib/hash/hash_utils.h @@ -0,0 +1,33 @@ +/* +* Hash Utility Header +* (C) 2015 Jack Lloyd +* +* Botan is released under the Simplified BSD License (see license.txt) +*/ + +#ifndef BOTAN_HASH_UTIL_H__ +#define BOTAN_HASH_UTIL_H__ + +#include <botan/hash.h> +#include <botan/algo_registry.h> +#include <botan/loadstor.h> +#include <botan/rotate.h> + +namespace Botan { + +#define BOTAN_REGISTER_HASH(name, maker) BOTAN_REGISTER_T(HashFunction, name, maker) +#define BOTAN_REGISTER_HASH_NOARGS(name) BOTAN_REGISTER_T_NOARGS(HashFunction, name) + +#define BOTAN_REGISTER_HASH_1LEN(name, def) BOTAN_REGISTER_T_1LEN(HashFunction, name, def) + +#define BOTAN_REGISTER_HASH_NAMED_NOARGS(type, name) \ + BOTAN_REGISTER_NAMED_T(HashFunction, name, type, make_new_T<type>) +#define BOTAN_REGISTER_HASH_NAMED_1LEN(type, name, def) \ + BOTAN_REGISTER_NAMED_T(HashFunction, name, type, (make_new_T_1len<type,def>)) + +#define BOTAN_REGISTER_HASH_NOARGS_IF(cond, type, name, provider) \ + BOTAN_COND_REGISTER_NAMED_T_NOARGS(cond, HashFunction, type, name, provider) + +} + +#endif |