|
Botan 3.14.1
Crypto and TLS for C&
|
#include <oaep.h>
Public Member Functions | |
| size_t | maximum_input_size (size_t keybits) const override |
| OAEP (const PK_Encryption_Options_Reader &options) | |
| OAEP (std::unique_ptr< HashFunction > hash, std::string_view P="") | |
| OAEP (std::unique_ptr< HashFunction > hash, std::unique_ptr< HashFunction > mgf1_hash, std::string_view P="") | |
Static Public Member Functions | |
| static std::unique_ptr< EncryptionPaddingScheme > | create_or_throw (const PK_Encryption_Options_Reader &options) |
OAEP (called EME1 in IEEE 1363 and in earlier versions of the library) as specified in PKCS#1 v2.0 (RFC 2437) or PKCS#1 v2.1 (RFC 3447)
|
explicit |
| options | must specify the hash; may specify a distinct MGF1 hash and a label (as the context) |
Definition at line 150 of file oaep.cpp.
References Botan::PK_Encryption_Options_Reader::context(), Botan::HashFunction::create_or_throw(), Botan::PK_Encryption_Options_Reader::hash_function_name(), Botan::PK_Encryption_Options_Reader::mgf1_hash_function(), Botan::PK_Encryption_Options_Reader::using_hash(), and Botan::PK_Encryption_Options_Reader::using_mgf1_hash().
|
explicit |
| Botan::OAEP::OAEP | ( | std::unique_ptr< HashFunction > | hash, |
| std::unique_ptr< HashFunction > | mgf1_hash, | ||
| std::string_view | P = "" ) |
| Hashes | function to use for hashing (takes ownership) |
| mgf1_hash | function to use for MGF1 (takes ownership) |
| P | an optional label. Normally empty. |
Definition at line 174 of file oaep.cpp.
|
staticinherited |
Factory method for encryption padding schemes
| options | the padding scheme and its parameters |
Definition at line 26 of file enc_padding.cpp.
References Botan::PK_Encryption_Options_Reader::padding(), Botan::PK_Encryption_Options_Reader::to_string(), and Botan::PK_Encryption_Options_Reader::using_padding().
Referenced by ~EncryptionPaddingScheme().
|
overridevirtual |
Return the maximum input size in bytes we can support
| keybits | the size of the key in bits |
Implements Botan::EncryptionPaddingScheme.
Definition at line 142 of file oaep.cpp.