diff options
author | lloyd <[email protected]> | 2008-11-10 19:48:28 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-10 19:48:28 +0000 |
commit | 148c4ecbd4116f9420229853b567cc17310b1cd1 (patch) | |
tree | b524196bbfc31bd4c3bc2b9b28b024c8cd530cd7 /src/libstate/engine/def_engine/def_eng.h | |
parent | 25ba52f32245a1624cbf5dcd3ca748b7f09d9ab2 (diff) |
Use Algorithm_Factory and SCAN_Name for all hash lookups. Modify engines
accordingly.
Diffstat (limited to 'src/libstate/engine/def_engine/def_eng.h')
-rw-r--r-- | src/libstate/engine/def_engine/def_eng.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstate/engine/def_engine/def_eng.h b/src/libstate/engine/def_engine/def_eng.h index 377333856..490ef1def 100644 --- a/src/libstate/engine/def_engine/def_eng.h +++ b/src/libstate/engine/def_engine/def_eng.h @@ -16,6 +16,8 @@ namespace Botan { class BOTAN_DLL Default_Engine : public Engine { public: + std::string provider_name() const { return "core"; } + #if defined(BOTAN_HAS_IF_PUBLIC_KEY_FAMILY) IF_Operation* if_op(const BigInt&, const BigInt&, const BigInt&, const BigInt&, const BigInt&, const BigInt&, @@ -61,7 +63,10 @@ class BOTAN_DLL Default_Engine : public Engine private: BlockCipher* find_block_cipher(const std::string&) const; StreamCipher* find_stream_cipher(const std::string&) const; - HashFunction* find_hash(const std::string&) const; + + HashFunction* find_hash(const SCAN_Name& requst, + Algorithm_Factory&) const; + MessageAuthenticationCode* find_mac(const std::string&) const; }; |