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