diff options
Diffstat (limited to 'src/lib/pbkdf/pbkdf.h')
-rw-r--r-- | src/lib/pbkdf/pbkdf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/pbkdf/pbkdf.h b/src/lib/pbkdf/pbkdf.h index a86f4d5c1..7c397da22 100644 --- a/src/lib/pbkdf/pbkdf.h +++ b/src/lib/pbkdf/pbkdf.h @@ -33,6 +33,15 @@ class BOTAN_PUBLIC_API(2,0) PBKDF const std::string& provider = ""); /** + * Create an instance based on a name, or throw if the + * algo/provider combination cannot be found. If provider is + * empty then best available is chosen. + */ + static std::unique_ptr<PBKDF> + create_or_throw(const std::string& algo_spec, + const std::string& provider = ""); + + /** * @return list of available providers for this algorithm, empty if not available */ static std::vector<std::string> providers(const std::string& algo_spec); |