|
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 > & | hash_function () const |
| const std::string & | hash_function_name () const |
| const std::optional< std::string > & | mgf1_hash_function () const |
| PK_Encryption_Options_Reader & | operator= (const PK_Encryption_Options_Reader &)=delete |
| PK_Encryption_Options_Reader & | operator= (PK_Encryption_Options_Reader &&)=delete |
| const std::optional< std::string > & | padding () const |
| PK_Encryption_Options_Reader (const PK_Encryption_Options_Reader &)=delete | |
| PK_Encryption_Options_Reader (PK_Encryption_Options_Reader &&)=delete | |
| const std::optional< std::string > & | provider () const |
| std::string | to_string () const |
| Format the options as a string, for error messages. | |
| bool | using_context () const |
| bool | using_hash () const |
| bool | using_mgf1_hash () const |
| bool | using_padding () const |
| bool | using_provider () const |
| ~PK_Encryption_Options_Reader ()=default | |
Friends | |
| class | PK_Decryptor_EME |
| class | PK_Encryptor_EME |
| class | PK_Options_Reader_Access |
Read access to a PK_Encryption_Options
The library creates one of these when a PK_Encryptor_EME or PK_Decryptor_EME is constructed and passes it to the key's _create_encryption_op or _create_decryption_op; applications never create or hold one.
As with PK_Signature_Options_Reader, each getter records that the scheme examined the option, and any option set but never examined is rejected.
Definition at line 178 of file pk_options_readers.h.
|
delete |
References PK_Encryption_Options_Reader().
Referenced by operator=(), operator=(), PK_Encryption_Options_Reader(), PK_Encryption_Options_Reader(), and PK_Options_Reader_Access.
|
delete |
References PK_Encryption_Options_Reader().
|
default |
|
inline |
Definition at line 209 of file pk_options_readers.h.
Referenced by Botan::PKCS11::MechanismWrapper::create_rsa_crypt_mechanism(), Botan::OAEP::OAEP(), and using_context().
|
inline |
Definition at line 199 of file pk_options_readers.h.
Referenced by Botan::SM2_PrivateKey::_create_decryption_op(), Botan::SM2_PublicKey::_create_encryption_op(), and using_hash().
| const std::string & Botan::PK_Encryption_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 325 of file pk_options.cpp.
Referenced by Botan::PKCS11::MechanismWrapper::create_rsa_crypt_mechanism(), and Botan::OAEP::OAEP().
|
inline |
Definition at line 204 of file pk_options_readers.h.
Referenced by Botan::PKCS11::MechanismWrapper::create_rsa_crypt_mechanism(), Botan::OAEP::OAEP(), and using_mgf1_hash().
|
delete |
References PK_Encryption_Options_Reader().
|
delete |
References PK_Encryption_Options_Reader().
|
inline |
Definition at line 194 of file pk_options_readers.h.
Referenced by Botan::EncryptionPaddingScheme::create_or_throw(), Botan::PKCS11::MechanismWrapper::create_rsa_crypt_mechanism(), and using_padding().
|
inline |
Definition at line 214 of file pk_options_readers.h.
|
inline |
Format the options as a string, for error messages.
Definition at line 187 of file pk_options_readers.h.
Referenced by Botan::EncryptionPaddingScheme::create_or_throw().
|
inline |
Definition at line 225 of file pk_options_readers.h.
References context().
|
inline |
Definition at line 221 of file pk_options_readers.h.
References hash_function().
Referenced by Botan::PKCS11::MechanismWrapper::create_rsa_crypt_mechanism(), and Botan::OAEP::OAEP().
|
inline |
Definition at line 223 of file pk_options_readers.h.
References mgf1_hash_function().
Referenced by Botan::PKCS11::MechanismWrapper::create_rsa_crypt_mechanism(), and Botan::OAEP::OAEP().
|
inline |
Definition at line 219 of file pk_options_readers.h.
References padding().
Referenced by Botan::EncryptionPaddingScheme::create_or_throw(), and Botan::PKCS11::MechanismWrapper::create_rsa_crypt_mechanism().
| bool Botan::PK_Encryption_Options_Reader::using_provider | ( | ) | const |
Definition at line 320 of file pk_options.cpp.
|
friend |
Definition at line 231 of file pk_options_readers.h.
References PK_Decryptor_EME.
Referenced by PK_Decryptor_EME.
|
friend |
Definition at line 230 of file pk_options_readers.h.
References PK_Encryptor_EME.
Referenced by PK_Encryptor_EME.
|
friend |
Definition at line 232 of file pk_options_readers.h.
References PK_Encryption_Options_Reader(), and PK_Options_Reader_Access.
Referenced by PK_Options_Reader_Access.