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

◆ PK_Decryptor()

Botan::PK_Decryptor::PK_Decryptor ( )
inline

Definition at line 109 of file pubkey.h.

109{}

◆ ~PK_Decryptor()

virtual Botan::PK_Decryptor::~PK_Decryptor ( )
inlinevirtual

Definition at line 110 of file pubkey.h.

110{}

Member Function Documentation

◆ decrypt() [1/2]

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.

95 {
96 return dec(in, length);
97 }

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

◆ decrypt() [2/2]

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.

105 {
106 return dec(&in[0], in.size());
107 }

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


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