Botan 3.8.1
Crypto and TLS for C&
|
#include <oaep.h>
Public Member Functions | |
size_t | maximum_input_size (size_t) const override |
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< EME > | create (std::string_view algo_spec) |
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)
Botan::OAEP::OAEP | ( | std::unique_ptr< HashFunction > | hash, |
std::string_view | P = "" ) |
Botan::OAEP::OAEP | ( | std::unique_ptr< HashFunction > | hash, |
std::unique_ptr< HashFunction > | mgf1_hash, | ||
std::string_view | P = "" ) |
hash | 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 153 of file oaep.cpp.
|
staticinherited |
Factory method for EME (message-encoding methods for encryption) objects
algo_spec | the name of the EME to create |
Definition at line 28 of file eme.cpp.
References Botan::SCAN_Name::algo_name(), Botan::SCAN_Name::arg(), Botan::SCAN_Name::arg_count(), Botan::HashFunction::create(), and Botan::parse_algorithm_name().
Referenced by ~EME().
|
overridevirtual |
Return the maximum input size in bytes we can support
keybits | the size of the key in bits |
Implements Botan::EME.
Definition at line 141 of file oaep.cpp.