7 #include <botan/emsa.h>
8 #include <botan/scan_name.h>
10 #if defined(BOTAN_HAS_EMSA1)
11 #include <botan/emsa1.h>
14 #if defined(BOTAN_HAS_EMSA_X931)
15 #include <botan/emsa_x931.h>
18 #if defined(BOTAN_HAS_EMSA_PKCS1)
19 #include <botan/emsa_pkcs1.h>
22 #if defined(BOTAN_HAS_EMSA_PSSR)
23 #include <botan/pssr.h>
26 #if defined(BOTAN_HAS_EMSA_RAW)
27 #include <botan/emsa_raw.h>
30 #if defined(BOTAN_HAS_ISO_9796)
31 #include <botan/iso9796.h>
40 #if defined(BOTAN_HAS_EMSA1)
48 #if defined(BOTAN_HAS_EMSA_PKCS1)
55 if(req.
arg(0) ==
"Raw")
70 #if defined(BOTAN_HAS_EMSA_PSSR)
78 if(req.
arg(1,
"MGF1") !=
"MGF1")
90 #if defined(BOTAN_HAS_ISO_9796)
98 const bool implicit = req.
arg(1,
"exp") ==
"imp";
110 const bool implicit = req.
arg(1,
"exp") ==
"imp";
117 #if defined(BOTAN_HAS_EMSA_X931)
132 #if defined(BOTAN_HAS_EMSA_RAW)
148 const std::string pos_hash = emsa_name.
arg(0);
std::string arg(size_t i) const
std::string hash_for_emsa(const std::string &algo_spec)
EMSA * get_emsa(const std::string &algo_spec)
bool arg_count_between(size_t lower, size_t upper) const
static std::unique_ptr< HashFunction > create(const std::string &algo_spec, const std::string &provider="")
size_t arg_as_integer(size_t i, size_t def_value) const
const std::string & algo_name() const