11#include <botan/build.h>
12#include <botan/exceptn.h>
17#if defined(BOTAN_HAS_BLOCK_CIPHER)
18 #include <botan/block_cipher.h>
21#if defined(BOTAN_HAS_STREAM_CIPHER)
22 #include <botan/stream_cipher.h>
25#if defined(BOTAN_HAS_HASH)
26 #include <botan/hash.h>
29#if defined(BOTAN_HAS_MAC)
30 #include <botan/mac.h>
48#if defined(BOTAN_HAS_BLOCK_CIPHER)
57BOTAN_DEPRECATED(
"Use BlockCipher::create")
58inline BlockCipher* get_block_cipher(const
std::
string& algo_spec,
59 const
std::
string& provider = "")
64BOTAN_DEPRECATED(
"Use BlockCipher::create_or_throw")
65inline
std::unique_ptr<BlockCipher> make_block_cipher(const
std::
string& algo_spec,
66 const
std::
string& provider = "")
71BOTAN_DEPRECATED(
"Use BlockCipher::providers")
72inline
std::vector<
std::
string> get_block_cipher_providers(const
std::
string& algo_spec)
79#if defined(BOTAN_HAS_STREAM_CIPHER)
88BOTAN_DEPRECATED(
"Use StreamCipher::create")
89inline StreamCipher* get_stream_cipher(const
std::
string& algo_spec,
90 const
std::
string& provider = "")
95BOTAN_DEPRECATED(
"Use StreamCipher::create_or_throw")
96inline
std::unique_ptr<StreamCipher> make_stream_cipher(const
std::
string& algo_spec,
97 const
std::
string& provider = "")
102BOTAN_DEPRECATED(
"Use StreamCipher::providers")
103inline
std::vector<
std::
string> get_stream_cipher_providers(const
std::
string& algo_spec)
110#if defined(BOTAN_HAS_HASH)
119BOTAN_DEPRECATED(
"Use HashFunction::create")
120inline HashFunction* get_hash_function(const
std::
string& algo_spec,
121 const
std::
string& provider = "")
126BOTAN_DEPRECATED(
"Use HashFunction::create_or_throw")
127inline
std::unique_ptr<HashFunction> make_hash_function(const
std::
string& algo_spec,
128 const
std::
string& provider = "")
133BOTAN_DEPRECATED(
"Use HashFunction::create")
134inline HashFunction* get_hash(const
std::
string& algo_spec,
135 const
std::
string& provider = "")
140BOTAN_DEPRECATED(
"Use HashFunction::providers")
141inline
std::vector<
std::
string> get_hash_function_providers(const
std::
string& algo_spec)
148#if defined(BOTAN_HAS_MAC)
156BOTAN_DEPRECATED(
"MessageAuthenticationCode::create")
157inline MessageAuthenticationCode* get_mac(const
std::
string& algo_spec,
158 const
std::
string& provider = "")
163BOTAN_DEPRECATED(
"MessageAuthenticationCode::create_or_throw")
164inline
std::unique_ptr<MessageAuthenticationCode> make_message_auth(const
std::
string& algo_spec,
165 const
std::
string& provider = "")
170BOTAN_DEPRECATED(
"MessageAuthenticationCode::providers")
171inline
std::vector<
std::
string> get_mac_providers(const
std::
string& algo_spec)
static std::vector< std::string > providers(const std::string &algo_spec)
static std::unique_ptr< BlockCipher > create(const std::string &algo_spec, const std::string &provider="")
static std::unique_ptr< BlockCipher > create_or_throw(const std::string &algo_spec, const std::string &provider="")
static std::vector< std::string > providers(const std::string &algo_spec)
static std::unique_ptr< HashFunction > create_or_throw(const std::string &algo_spec, const std::string &provider="")
static std::unique_ptr< HashFunction > create(const std::string &algo_spec, const std::string &provider="")
static std::vector< std::string > providers(const std::string &algo_spec)
static std::unique_ptr< MessageAuthenticationCode > create(const std::string &algo_spec, const std::string &provider="")
static std::vector< std::string > providers(const std::string &algo_spec)
static std::unique_ptr< StreamCipher > create(const std::string &algo_spec, const std::string &provider="")
static std::unique_ptr< StreamCipher > create_or_throw(const std::string &algo_spec, const std::string &provider="")
#define BOTAN_DEPRECATED_HEADER(hdr)
std::string lookup(const OID &oid)