Botan
1.11.15
|
#include <pubkey.h>
Public Member Functions | |
std::vector< byte > | encrypt (const byte in[], size_t length, RandomNumberGenerator &rng) const |
template<typename Alloc > | |
std::vector< byte > | encrypt (const std::vector< byte, Alloc > &in, RandomNumberGenerator &rng) const |
virtual size_t | maximum_input_size () const =0 |
PK_Encryptor & | operator= (const PK_Encryptor &) |
PK_Encryptor () | |
PK_Encryptor (const PK_Encryptor &) | |
virtual | ~PK_Encryptor () |
Botan::PK_Encryptor::PK_Encryptor | ( | ) | [inline] |
virtual Botan::PK_Encryptor::~PK_Encryptor | ( | ) | [inline, virtual] |
Botan::PK_Encryptor::PK_Encryptor | ( | const PK_Encryptor & | ) |
std::vector<byte> Botan::PK_Encryptor::encrypt | ( | const byte | in[], |
size_t | length, | ||
RandomNumberGenerator & | rng | ||
) | const [inline] |
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::TLS::Client_Key_Exchange::Client_Key_Exchange(), and Botan::KeyPair::encryption_consistency_check().
{
return enc(in, length, rng);
}
std::vector<byte> Botan::PK_Encryptor::encrypt | ( | const std::vector< byte, Alloc > & | in, |
RandomNumberGenerator & | rng | ||
) | const [inline] |
virtual size_t Botan::PK_Encryptor::maximum_input_size | ( | ) | const [pure virtual] |
Return the maximum allowed message size in bytes.
Implemented in Botan::PK_Encryptor_EME.
PK_Encryptor& Botan::PK_Encryptor::operator= | ( | const PK_Encryptor & | ) |