Botan 2.19.3
Crypto and TLS for C&
|
#include <pubkey.h>
Public Member Functions | |
virtual size_t | ciphertext_length (size_t ctext_len) const =0 |
template<typename Alloc > | |
std::vector< uint8_t > | encrypt (const std::vector< uint8_t, Alloc > &in, RandomNumberGenerator &rng) const |
std::vector< uint8_t > | encrypt (const uint8_t in[], size_t length, RandomNumberGenerator &rng) const |
virtual size_t | maximum_input_size () const =0 |
PK_Encryptor & | operator= (const PK_Encryptor &)=delete |
PK_Encryptor ()=default | |
PK_Encryptor (const PK_Encryptor &)=delete | |
virtual | ~PK_Encryptor ()=default |
Public Key Encryptor This is the primary interface for public key encryption
|
default |
|
virtualdefault |
|
delete |
|
pure virtual |
Return an upper bound on the ciphertext length
Implemented in Botan::PK_Encryptor_EME.
Referenced by botan_pk_op_encrypt_output_length().
|
inline |
|
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 40 of file pubkey.h.
Referenced by Botan::KeyPair::encryption_consistency_check().
|
pure virtual |
Return the maximum allowed message size in bytes.
Implemented in Botan::PK_Encryptor_EME.
|
delete |