Botan 3.6.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, std::string_view def_value) const |
size_t | arg_as_integer (size_t i) 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 |
std::string | cipher_mode () const |
std::string | cipher_mode_pad () const |
SCAN_Name (const char *algo_spec) | |
SCAN_Name (std::string_view 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 22 of file scan_name.h.
|
explicit |
Create a SCAN_Name
algo_spec | A SCAN-format name |
Definition at line 56 of file scan_name.cpp.
|
explicit |
Create a SCAN_Name
algo_spec | A SCAN-format name |
Definition at line 58 of file scan_name.cpp.
References name.
|
inline |
Definition at line 44 of file scan_name.h.
Referenced by Botan::TPM2::cipher_botan_to_tss2(), Botan::commoncrypto_opts_from_algo(), Botan::AEAD_Mode::create(), Botan::BlockCipher::create(), Botan::Cipher_Mode::create(), Botan::EME::create(), Botan::EMSA::create(), Botan::HashFunction::create(), Botan::KDF::create(), Botan::MessageAuthenticationCode::create(), Botan::PasswordHashFamily::create(), Botan::PBKDF::create(), Botan::StreamCipher::create(), Botan::XOF::create(), Botan::PKCS11::MechanismWrapper::create_ecdsa_mechanism(), Botan::PSS_Params::from_emsa_name(), Botan::HSS_LMS_Params::HSS_LMS_Params(), Botan::TPM2::rsa_encryption_scheme_botan_to_tss2(), and Botan::TPM2::rsa_signature_scheme_botan_to_tss2().
std::string Botan::SCAN_Name::arg | ( | size_t | i | ) | const |
i | which argument |
Definition at line 119 of file scan_name.cpp.
Referenced by Botan::TPM2::cipher_botan_to_tss2(), Botan::AEAD_Mode::create(), Botan::BlockCipher::create(), Botan::Cipher_Mode::create(), Botan::EME::create(), Botan::EMSA::create(), Botan::HashFunction::create(), Botan::KDF::create(), Botan::MessageAuthenticationCode::create(), Botan::PasswordHashFamily::create(), Botan::PBKDF::create(), Botan::StreamCipher::create(), Botan::PKCS11::MechanismWrapper::create_ecdh_mechanism(), Botan::PKCS11::MechanismWrapper::create_ecdsa_mechanism(), Botan::PSS_Params::from_emsa_name(), Botan::HSS_LMS_Params::HSS_LMS_Params(), Botan::TPM2::rsa_encryption_scheme_botan_to_tss2(), and Botan::TPM2::rsa_signature_scheme_botan_to_tss2().
std::string Botan::SCAN_Name::arg | ( | size_t | i, |
std::string_view | def_value ) const |
i | which argument |
def_value | the default value |
Definition at line 126 of file scan_name.cpp.
size_t Botan::SCAN_Name::arg_as_integer | ( | size_t | i | ) | const |
i | which argument |
Definition at line 140 of file scan_name.cpp.
References Botan::to_u32bit().
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 133 of file scan_name.cpp.
References Botan::to_u32bit().
Referenced by Botan::AEAD_Mode::create(), Botan::BlockCipher::create(), Botan::Cipher_Mode::create(), Botan::EMSA::create(), Botan::HashFunction::create(), Botan::MessageAuthenticationCode::create(), Botan::StreamCipher::create(), Botan::PSS_Params::from_emsa_name(), and Botan::HSS_LMS_Params::HSS_LMS_Params().
|
inline |
Definition at line 49 of file scan_name.h.
Referenced by arg_count_between(), Botan::TPM2::cipher_botan_to_tss2(), Botan::AEAD_Mode::create(), Botan::BlockCipher::create(), Botan::Cipher_Mode::create(), Botan::EME::create(), Botan::EMSA::create(), Botan::HashFunction::create(), Botan::KDF::create(), Botan::MessageAuthenticationCode::create(), Botan::PasswordHashFamily::create(), Botan::PBKDF::create(), Botan::StreamCipher::create(), Botan::XOF::create(), Botan::PKCS11::MechanismWrapper::create_ecdh_mechanism(), Botan::PKCS11::MechanismWrapper::create_ecdsa_mechanism(), Botan::PSS_Params::from_emsa_name(), Botan::HSS_LMS_Params::HSS_LMS_Params(), Botan::TPM2::rsa_encryption_scheme_botan_to_tss2(), and Botan::TPM2::rsa_signature_scheme_botan_to_tss2().
|
inline |
lower | is the lower bound |
upper | is the upper bound |
Definition at line 56 of file scan_name.h.
References arg_count().
Referenced by Botan::BlockCipher::create(), Botan::EMSA::create(), and Botan::StreamCipher::create().
|
inline |
Definition at line 89 of file scan_name.h.
Referenced by Botan::commoncrypto_opts_from_algo().
|
inline |
Definition at line 94 of file scan_name.h.
Referenced by Botan::commoncrypto_opts_from_algo().
|
inline |
Definition at line 39 of file scan_name.h.