aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstate/get_enc.cpp19
-rw-r--r--src/libstate/lookup.h7
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