Botan  1.11.15
Public Member Functions
Botan::PK_Encryptor Class Reference

#include <pubkey.h>

Inheritance diagram for Botan::PK_Encryptor:
Botan::DLIES_Encryptor Botan::PK_Encryptor_EME

List of all members.

Public Member Functions

std::vector< byteencrypt (const byte in[], size_t length, RandomNumberGenerator &rng) const
template<typename Alloc >
std::vector< byteencrypt (const std::vector< byte, Alloc > &in, RandomNumberGenerator &rng) const
virtual size_t maximum_input_size () const =0
PK_Encryptoroperator= (const PK_Encryptor &)
 PK_Encryptor ()
 PK_Encryptor (const PK_Encryptor &)
virtual ~PK_Encryptor ()

Detailed Description

Public Key Encryptor

Definition at line 37 of file pubkey.h.


Constructor & Destructor Documentation

Definition at line 73 of file pubkey.h.

{}
virtual Botan::PK_Encryptor::~PK_Encryptor ( ) [inline, virtual]

Definition at line 74 of file pubkey.h.

{}

Member Function Documentation

std::vector<byte> Botan::PK_Encryptor::encrypt ( const byte  in[],
size_t  length,
RandomNumberGenerator rng 
) const [inline]

Encrypt a message.

Parameters:
inthe message as a byte array
lengththe length of the above byte array
rngthe random number source to use
Returns:
encrypted message

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);
         }
template<typename Alloc >
std::vector<byte> Botan::PK_Encryptor::encrypt ( const std::vector< byte, Alloc > &  in,
RandomNumberGenerator rng 
) const [inline]

Encrypt a message.

Parameters:
inthe message
rngthe random number source to use
Returns:
encrypted message

Definition at line 61 of file pubkey.h.

         {
         return enc(&in[0], in.size(), rng);
         }
virtual size_t Botan::PK_Encryptor::maximum_input_size ( ) const [pure virtual]

Return the maximum allowed message size in bytes.

Returns:
maximum message size in bytes

Implemented in Botan::PK_Encryptor_EME.

PK_Encryptor& Botan::PK_Encryptor::operator= ( const PK_Encryptor )

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