8#ifndef BOTAN_SCAN_NAME_H_
9#define BOTAN_SCAN_NAME_H_
11#include <botan/types.h>
28 explicit SCAN_Name(
const char* algo_spec);
34 explicit SCAN_Name(std::string_view algo_spec);
39 const std::string&
to_string()
const {
return m_orig_algo_spec; }
44 const std::string&
algo_name()
const {
return m_alg_name; }
64 std::string
arg(
size_t i)
const;
71 std::string
arg(
size_t i, std::string_view def_value)
const;
89 std::string
cipher_mode()
const {
return (!m_mode_info.empty()) ? m_mode_info[0] :
""; }
94 std::string
cipher_mode_pad()
const {
return (m_mode_info.size() >= 2) ? m_mode_info[1] :
""; }
97 std::string m_orig_algo_spec;
98 std::string m_alg_name;
99 std::vector<std::string> m_args;
100 std::vector<std::string> m_mode_info;
106 const std::vector<std::string>& possible = {
"base"}) {
107 std::vector<std::string> providers;
108 for(
auto&& prov : possible) {
109 auto o = T::create(algo_spec, prov);
111 providers.push_back(prov);
std::string arg(size_t i) const
const std::string & to_string() const
SCAN_Name(const char *algo_spec)
const std::string & algo_name() const
std::string cipher_mode_pad() const
std::string cipher_mode() const
size_t arg_as_integer(size_t i, size_t def_value) const
bool arg_count_between(size_t lower, size_t upper) const
int(* final)(unsigned char *, CTX *)
std::vector< std::string > probe_providers_of(std::string_view algo_spec, const std::vector< std::string > &possible={"base"})