Botan 2.19.1
Crypto and TLS for C&
|
#include <scan_name.h>
Public Member Functions | |
const std::string & | algo_name () const |
std::string | arg (size_t i) const |
std::string | arg (size_t i, const std::string &def_value) const |
size_t | arg_as_integer (size_t i, size_t def_value) const |
size_t | arg_count () const |
bool | arg_count_between (size_t lower, size_t upper) const |
const std::string & | as_string () const |
std::string | cipher_mode () const |
std::string | cipher_mode_pad () const |
SCAN_Name (const char *algo_spec) | |
SCAN_Name (std::string algo_spec) | |
const std::string & | to_string () const |
A class encapsulating a SCAN name (similar to JCE conventions) http://www.users.zetnet.co.uk/hopwood/crypto/scan/
Definition at line 23 of file scan_name.h.
|
explicit |
Create a SCAN_Name
algo_spec | A SCAN-format name |
Definition at line 59 of file scan_name.cpp.
|
explicit |
Create a SCAN_Name
algo_spec | A SCAN-format name |
Definition at line 63 of file scan_name.cpp.
References name.
|
inline |
Definition at line 51 of file scan_name.h.
Referenced by Botan::commoncrypto_opts_from_algo(), Botan::AEAD_Mode::create(), Botan::Cipher_Mode::create(), Botan::BlockCipher::create(), Botan::HashFunction::create(), Botan::KDF::create(), Botan::MessageAuthenticationCode::create(), Botan::PBKDF::create(), Botan::PasswordHashFamily::create(), Botan::StreamCipher::create(), Botan::get_eme(), Botan::get_emsa(), Botan::get_kdf(), and Botan::SP800_56A_HMAC::SP800_56A_HMAC().
std::string Botan::SCAN_Name::arg | ( | size_t | i | ) | const |
i | which argument |
Definition at line 127 of file scan_name.cpp.
References arg_count(), to_string(), and Botan::ASN1::to_string().
Referenced by Botan::AEAD_Mode::create(), Botan::Cipher_Mode::create(), Botan::BlockCipher::create(), Botan::HashFunction::create(), Botan::KDF::create(), Botan::MessageAuthenticationCode::create(), Botan::PBKDF::create(), Botan::PasswordHashFamily::create(), Botan::StreamCipher::create(), Botan::PKCS11::MechanismWrapper::create_ecdh_mechanism(), Botan::get_eme(), Botan::get_emsa(), and Botan::hash_for_emsa().
std::string Botan::SCAN_Name::arg | ( | size_t | i, |
const std::string & | def_value | ||
) | const |
i | which argument |
def_value | the default value |
Definition at line 135 of file scan_name.cpp.
References arg_count().
size_t Botan::SCAN_Name::arg_as_integer | ( | size_t | i, |
size_t | def_value | ||
) | const |
i | which argument |
def_value | the default value |
Definition at line 142 of file scan_name.cpp.
References arg_count(), and Botan::to_u32bit().
Referenced by Botan::AEAD_Mode::create(), Botan::Cipher_Mode::create(), Botan::BlockCipher::create(), Botan::HashFunction::create(), Botan::MessageAuthenticationCode::create(), Botan::StreamCipher::create(), and Botan::get_emsa().
|
inline |
Definition at line 56 of file scan_name.h.
Referenced by arg(), arg_as_integer(), Botan::AEAD_Mode::create(), Botan::Cipher_Mode::create(), Botan::BlockCipher::create(), Botan::HashFunction::create(), Botan::KDF::create(), Botan::MessageAuthenticationCode::create(), Botan::PBKDF::create(), Botan::PasswordHashFamily::create(), Botan::StreamCipher::create(), Botan::PKCS11::MechanismWrapper::create_ecdh_mechanism(), Botan::get_eme(), Botan::get_emsa(), and Botan::hash_for_emsa().
|
inline |
lower | is the lower bound |
upper | is the upper bound |
Definition at line 63 of file scan_name.h.
Referenced by Botan::BlockCipher::create(), Botan::StreamCipher::create(), and Botan::get_emsa().
|
inline |
Definition at line 43 of file scan_name.h.
References Botan::ASN1::to_string().
|
inline |
Definition at line 89 of file scan_name.h.
Referenced by Botan::commoncrypto_opts_from_algo(), and Botan::X509_CA::X509_CA().
|
inline |
Definition at line 95 of file scan_name.h.
Referenced by Botan::commoncrypto_opts_from_algo().
|
inline |
Definition at line 41 of file scan_name.h.
Referenced by arg().