diff options
author | Jack Lloyd <[email protected]> | 2015-09-19 07:43:45 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-09-19 07:43:45 -0400 |
commit | e1ae1d68309573134fc1242c3bfb8a8ce0672737 (patch) | |
tree | d4cbfc7b2c1f70d06fa57403f533be5e434c869f /src/lib/hash/hash.cpp | |
parent | e2e0f8f2b595122c1f8acb3b3a46501f96a2b218 (diff) |
Internal header cleanups
Only user-visible change is the removal of get_byte.h
Diffstat (limited to 'src/lib/hash/hash.cpp')
-rw-r--r-- | src/lib/hash/hash.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/lib/hash/hash.cpp b/src/lib/hash/hash.cpp index f965cfde8..fe210705e 100644 --- a/src/lib/hash/hash.cpp +++ b/src/lib/hash/hash.cpp @@ -7,7 +7,7 @@ #include <botan/hash.h> #include <botan/cpuid.h> -#include <botan/internal/hash_utils.h> +#include <botan/internal/algo_registry.h> #if defined(BOTAN_HAS_ADLER32) #include <botan/adler32.h> @@ -106,6 +106,19 @@ HashFunction::HashFunction() {} HashFunction::~HashFunction() {} +#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, pref) \ + BOTAN_COND_REGISTER_NAMED_T_NOARGS(cond, HashFunction, type, name, provider, pref) + #if defined(BOTAN_HAS_ADLER32) BOTAN_REGISTER_HASH_NOARGS(Adler32); #endif |