Botan  1.11.10
Public Member Functions | List of all members
Botan::PK_Decryptor Class Referenceabstract

#include <pubkey.h>

Inheritance diagram for Botan::PK_Decryptor:
Botan::DLIES_Decryptor Botan::PK_Decryptor_EME

Public Member Functions

secure_vector< bytedecrypt (const byte in[], size_t length) const
 
template<typename Alloc >
secure_vector< bytedecrypt (const std::vector< byte, Alloc > &in) const
 
PK_Decryptoroperator= (const PK_Decryptor &)=delete
 
 PK_Decryptor ()
 
 PK_Decryptor (const PK_Decryptor &)=delete
 
virtual ~PK_Decryptor ()
 

Detailed Description

Public Key Decryptor

Definition at line 88 of file pubkey.h.

Constructor & Destructor Documentation

Botan::PK_Decryptor::PK_Decryptor ( )
inline

Definition at line 113 of file pubkey.h.

113 {}
virtual Botan::PK_Decryptor::~PK_Decryptor ( )
inlinevirtual

Definition at line 114 of file pubkey.h.

114 {}
Botan::PK_Decryptor::PK_Decryptor ( const PK_Decryptor )
delete

Member Function Documentation

secure_vector<byte> Botan::PK_Decryptor::decrypt ( const byte  in[],
size_t  length 
) const
inline

Decrypt a ciphertext.

Parameters
inthe ciphertext as a byte array
lengththe length of the above byte array
Returns
decrypted message

Definition at line 97 of file pubkey.h.

Referenced by Botan::KeyPair::encryption_consistency_check(), and Botan::PK_Decryptor_Filter::end_msg().

98  {
99  return dec(in, length);
100  }
template<typename Alloc >
secure_vector<byte> Botan::PK_Decryptor::decrypt ( const std::vector< byte, Alloc > &  in) const
inline

Decrypt a ciphertext.

Parameters
inthe ciphertext
Returns
decrypted message

Definition at line 108 of file pubkey.h.

109  {
110  return dec(&in[0], in.size());
111  }
PK_Decryptor& Botan::PK_Decryptor::operator= ( const PK_Decryptor )
delete

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