Botan
1.10.9
|
#include <pubkey.h>
Public Member Functions | |
SecureVector< byte > | encrypt (const byte in[], size_t length, RandomNumberGenerator &rng) const |
SecureVector< byte > | encrypt (const MemoryRegion< byte > &in, RandomNumberGenerator &rng) const |
size_t | maximum_input_size () const |
PK_Encryptor_EME (const Public_Key &key, const std::string &eme) | |
~PK_Encryptor_EME () | |
Botan::PK_Encryptor_EME::PK_Encryptor_EME | ( | const Public_Key & | key, |
const std::string & | eme | ||
) |
Construct an instance.
key | the key to use inside the decryptor |
eme | the EME to use |
Definition at line 25 of file pubkey.cpp.
References Botan::Public_Key::algo_name(), Botan::get_eme(), Botan::Global_State_Management::global_state(), and Botan::Algorithm_Factory::Engine_Iterator::next().
|
inline |
|
inlineinherited |
Encrypt a message.
in | the message as a byte array |
length | the length of the above byte array |
rng | the random number source to use |
Definition at line 48 of file pubkey.h.
Referenced by Botan::Client_Key_Exchange::Client_Key_Exchange(), Botan::KeyPair::encryption_consistency_check(), and Botan::PK_Encryptor_Filter::end_msg().
|
inlineinherited |
Encrypt a message.
in | the message |
rng | the random number source to use |
Definition at line 60 of file pubkey.h.
References rng, and Botan::MemoryRegion< T >::size().
|
virtual |
Return the maximum allowed message size in bytes.
Implements Botan::PK_Encryptor.
Definition at line 75 of file pubkey.cpp.
References Botan::PK_Ops::Encryption::max_input_bits(), and Botan::EME::maximum_input_size().
Referenced by Botan::KeyPair::encryption_consistency_check().