Botan  1.10.9
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

SecureVector< bytedecrypt (const byte in[], size_t length) const
 
SecureVector< bytedecrypt (const MemoryRegion< byte > &in) const
 
 PK_Decryptor ()
 
virtual ~PK_Decryptor ()
 

Detailed Description

Public Key Decryptor

Definition at line 85 of file pubkey.h.

Constructor & Destructor Documentation

Botan::PK_Decryptor::PK_Decryptor ( )
inline

Definition at line 109 of file pubkey.h.

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

Definition at line 110 of file pubkey.h.

110 {}

Member Function Documentation

SecureVector<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 94 of file pubkey.h.

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

95  {
96  return dec(in, length);
97  }
SecureVector<byte> Botan::PK_Decryptor::decrypt ( const MemoryRegion< byte > &  in) const
inline

Decrypt a ciphertext.

Parameters
inthe ciphertext
Returns
decrypted message

Definition at line 104 of file pubkey.h.

References Botan::MemoryRegion< T >::size().

105  {
106  return dec(&in[0], in.size());
107  }
size_t size() const
Definition: secmem.h:29

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