Botan  1.11.17
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 80 of file pubkey.h.

Constructor & Destructor Documentation

Botan::PK_Decryptor::PK_Decryptor ( )
inline

Definition at line 105 of file pubkey.h.

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

Definition at line 106 of file pubkey.h.

106 {}
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 89 of file pubkey.h.

Referenced by Botan::KeyPair::encryption_consistency_check().

90  {
91  return dec(in, length);
92  }
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 100 of file pubkey.h.

101  {
102  return dec(in.data(), in.size());
103  }
PK_Decryptor& Botan::PK_Decryptor::operator= ( const PK_Decryptor )
delete

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