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/get_enc.cpp | |
parent | 86221e5f9b501eaf9c5370f158432d34cc713110 (diff) |
Remove get_mgf - unsused internally, and I doubt apps use it much
Diffstat (limited to 'src/libstate/get_enc.cpp')
-rw-r--r-- | src/libstate/get_enc.cpp | 19 |
1 files changed, 0 insertions, 19 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); - } - } |