diff options
author | lloyd <[email protected]> | 2008-11-08 21:17:05 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-08 21:17:05 +0000 |
commit | 719ccb5ca6319ea48ba1102cba404f537bb47c50 (patch) | |
tree | ac561a8c7968ae8ca0520bd7272e692099a008cc /src/libstate | |
parent | 86221e5f9b501eaf9c5370f158432d34cc713110 (diff) |
Remove get_mgf - unsused internally, and I doubt apps use it much
Diffstat (limited to 'src/libstate')
-rw-r--r-- | src/libstate/get_enc.cpp | 19 | ||||
-rw-r--r-- | src/libstate/lookup.h | 7 |
2 files changed, 0 insertions, 26 deletions
diff --git a/src/libstate/get_enc.cpp b/src/libstate/get_enc.cpp index e42ab784e..b3bfe5273 100644 --- a/src/libstate/get_enc.cpp +++ b/src/libstate/get_enc.cpp @@ -218,23 +218,4 @@ KDF* get_kdf(const std::string& algo_spec) throw Algorithm_Not_Found(algo_spec); } -/************************************************* -* Get a MGF by name * -*************************************************/ -MGF* get_mgf(const std::string& algo_spec) - { - std::vector<std::string> name = parse_algorithm_name(algo_spec); - const std::string mgf_name = global_state().deref_alias(name[0]); - -#ifdef BOTAN_HAS_MGF1 - if(mgf_name == "MGF1") - { - if(name.size() == 2) - return new MGF1(get_hash(name[1])); - } -#endif - - throw Algorithm_Not_Found(algo_spec); - } - } diff --git a/src/libstate/lookup.h b/src/libstate/lookup.h index 051bbd801..8845fedf8 100644 --- a/src/libstate/lookup.h +++ b/src/libstate/lookup.h @@ -115,13 +115,6 @@ BOTAN_DLL EME* get_eme(const std::string& name); BOTAN_DLL EMSA* get_emsa(const std::string& name); /** -* Factory method for MGF (mask generation function) -* @param name the name of the MGF to create -* @return the desired MGF object -*/ -BOTAN_DLL MGF* get_mgf(const std::string& name); - -/** * Factory method for KDF (key derivation function) * @param name the name of the KDF to create * @return the desired KDF object |