|
Botan 3.14.1
Crypto and TLS for C&
|
#include <pk_options_readers.h>
Public Member Functions | |
| const std::optional< std::vector< uint8_t > > & | context () const |
| const std::optional< std::string > & | externally_computed_prehash_function () const |
| const std::optional< std::string > & | hash_function () const |
| const std::string & | hash_function_name () const |
| PK_Signature_Options_Reader & | operator= (const PK_Signature_Options_Reader &)=delete |
| PK_Signature_Options_Reader & | operator= (PK_Signature_Options_Reader &&)=delete |
| const std::optional< std::string > & | padding () const |
| PK_Signature_Options_Reader (const PK_Signature_Options_Reader &)=delete | |
| PK_Signature_Options_Reader (PK_Signature_Options_Reader &&)=delete | |
| const std::optional< std::string > & | prehash_function () const |
| const std::optional< std::string > & | provider () const |
| const std::optional< size_t > & | salt_size () const |
| std::string | to_string () const |
| Format the options as a string, for error messages. | |
| bool | using_context () const |
| bool | using_der_encoded_signature () const |
| bool | using_deterministic_signature () const |
| bool | using_explicit_trailer_field () const |
| bool | using_externally_computed_prehash () const |
| bool | using_hash () const |
| bool | using_padding () const |
| bool | using_prehash () const |
| bool | using_provider () const |
| bool | using_salt_size () const |
| ~PK_Signature_Options_Reader ()=default | |
Friends | |
| class | PK_Options_Reader_Access |
| class | PK_Signer |
| class | PK_Verifier |
Read access to a PK_Signature_Options
The library creates one of these when a PK_Signer or PK_Verifier is constructed and passes it to the key's _create_signature_op or _create_verification_op; applications never create or hold one.
Each getter records that the scheme examined the option. Any option the caller set which the scheme never examined is then rejected, since it would otherwise be silently ignored. A scheme should therefore only read an option that it will actually act on.
Definition at line 38 of file pk_options_readers.h.
|
delete |
References PK_Signature_Options_Reader().
Referenced by operator=(), operator=(), PK_Signature_Options_Reader(), and PK_Signature_Options_Reader().
|
delete |
References PK_Signature_Options_Reader().
|
default |
|
inline |
Definition at line 74 of file pk_options_readers.h.
Referenced by using_context().
|
inline |
Definition at line 64 of file pk_options_readers.h.
Referenced by Botan::externally_computed_prehash_name().
|
inline |
Definition at line 54 of file pk_options_readers.h.
Referenced by Botan::SphincsPlus_PrivateKey::_create_signature_op(), Botan::SphincsPlus_PublicKey::_create_verification_op(), Botan::externally_computed_prehash_name(), and using_hash().
| const std::string & Botan::PK_Signature_Options_Reader::hash_function_name | ( | ) | const |
Return the name of the hash function to use
This will throw an exception if no hash function was configured
Definition at line 140 of file pk_options.cpp.
Referenced by Botan::TPM_PrivateKey::_create_signature_op(), Botan::SignaturePaddingScheme::create_or_throw(), Botan::PKCS11::MechanismWrapper::create_rsa_sign_mechanism(), and Botan::validate_for_hash_based_signature().
|
delete |
References PK_Signature_Options_Reader().
|
delete |
References PK_Signature_Options_Reader().
|
inline |
Definition at line 69 of file pk_options_readers.h.
Referenced by Botan::TPM_PrivateKey::_create_signature_op(), Botan::SignaturePaddingScheme::create_or_throw(), Botan::PKCS11::MechanismWrapper::create_rsa_sign_mechanism(), and using_padding().
|
inline |
Definition at line 59 of file pk_options_readers.h.
Referenced by Botan::Ed25519_PrivateKey::_create_signature_op(), Botan::Ed448_PrivateKey::_create_signature_op(), Botan::Ed25519_PublicKey::_create_verification_op(), and Botan::Ed448_PublicKey::_create_verification_op().
|
inline |
Definition at line 79 of file pk_options_readers.h.
|
inline |
Definition at line 84 of file pk_options_readers.h.
Referenced by Botan::PKCS11::MechanismWrapper::create_rsa_sign_mechanism(), and using_salt_size().
|
inline |
Format the options as a string, for error messages.
Definition at line 47 of file pk_options_readers.h.
Referenced by Botan::SignaturePaddingScheme::create_or_throw().
|
inline |
Definition at line 106 of file pk_options_readers.h.
References context().
|
inline |
Definition at line 89 of file pk_options_readers.h.
Referenced by Botan::PK_Signer::PK_Signer(), and Botan::PK_Verifier::PK_Verifier().
|
inline |
Definition at line 94 of file pk_options_readers.h.
Referenced by Botan::SphincsPlus_PrivateKey::_create_signature_op(), Botan::acknowledge_always_deterministic(), Botan::PKCS11::MechanismWrapper::create_rsa_sign_mechanism(), Botan::ISO_9796_DS2::ISO_9796_DS2(), Botan::PSS_Raw::PSS_Raw(), and Botan::PSSR::PSSR().
|
inline |
Definition at line 99 of file pk_options_readers.h.
|
inline |
Definition at line 113 of file pk_options_readers.h.
Referenced by Botan::SignaturePaddingScheme::create_or_throw(), Botan::PKCS11::MechanismWrapper::create_rsa_sign_mechanism(), Botan::externally_computed_prehash_name(), and Botan::PKCS1v15_Raw_SignaturePaddingScheme::PKCS1v15_Raw_SignaturePaddingScheme().
|
inline |
Definition at line 104 of file pk_options_readers.h.
References hash_function().
Referenced by Botan::SignaturePaddingScheme::create_or_throw(), Botan::PKCS11::MechanismWrapper::create_rsa_sign_mechanism(), and Botan::validate_for_hash_based_signature().
|
inline |
Definition at line 118 of file pk_options_readers.h.
References padding().
Referenced by Botan::TPM_PrivateKey::_create_signature_op(), Botan::SignaturePaddingScheme::create_or_throw(), and Botan::PKCS11::MechanismWrapper::create_rsa_sign_mechanism().
|
inline |
Definition at line 108 of file pk_options_readers.h.
Referenced by Botan::Ed25519_PrivateKey::_create_signature_op(), Botan::Ed448_PrivateKey::_create_signature_op(), Botan::Ed25519_PublicKey::_create_verification_op(), and Botan::Ed448_PublicKey::_create_verification_op().
| bool Botan::PK_Signature_Options_Reader::using_provider | ( | ) | const |
Definition at line 135 of file pk_options.cpp.
|
inline |
Definition at line 120 of file pk_options_readers.h.
References salt_size().
Referenced by Botan::PKCS11::MechanismWrapper::create_rsa_sign_mechanism().
|
friend |
Definition at line 127 of file pk_options_readers.h.
References PK_Options_Reader_Access.
Referenced by PK_Options_Reader_Access.
|
friend |
|
friend |
Definition at line 126 of file pk_options_readers.h.
References PK_Verifier.
Referenced by PK_Verifier.