Botan 3.6.1
Crypto and TLS for C&
Botan::PK_Ops::Encryption Class Referenceabstract

#include <pk_ops.h>

Inheritance diagram for Botan::PK_Ops::Encryption:
Botan::PK_Ops::Encryption_with_EME

Public Member Functions

virtual size_t ciphertext_length (size_t ptext_len) const =0
 
virtual std::vector< uint8_t > encrypt (std::span< const uint8_t > msg, RandomNumberGenerator &rng)=0
 
virtual size_t max_input_bits () const =0
 
virtual ~Encryption ()=default
 

Detailed Description

Public key encryption interface

Definition at line 44 of file pk_ops.h.

Constructor & Destructor Documentation

◆ ~Encryption()

virtual Botan::PK_Ops::Encryption::~Encryption ( )
virtualdefault

Member Function Documentation

◆ ciphertext_length()

virtual size_t Botan::PK_Ops::Encryption::ciphertext_length ( size_t ptext_len) const
pure virtual

Given the plaintext length, return an upper bound of the ciphertext length for this key and padding.

◆ encrypt()

virtual std::vector< uint8_t > Botan::PK_Ops::Encryption::encrypt ( std::span< const uint8_t > msg,
RandomNumberGenerator & rng )
pure virtual

Encrypt a message returning the ciphertext

Implemented in Botan::PK_Ops::Encryption_with_EME.

◆ max_input_bits()

virtual size_t Botan::PK_Ops::Encryption::max_input_bits ( ) const
pure virtual

Return the maximum input size for this key

Implemented in Botan::PK_Ops::Encryption_with_EME.


The documentation for this class was generated from the following file: