Botan  1.11.26
Public Member Functions | List of all members
Botan::PK_Decryptor_EME Class Reference

#include <pubkey.h>

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

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_Decryptor_EME (const Private_Key &key, const std::string &eme, const std::string &provider="")
 

Detailed Description

Decryption with an MR algorithm and an EME.

Definition at line 427 of file pubkey.h.

Constructor & Destructor Documentation

Botan::PK_Decryptor_EME::PK_Decryptor_EME ( const Private_Key key,
const std::string &  eme,
const std::string &  provider = "" 
)

Construct an instance.

Parameters
keythe key to use inside the encryptor
emethe EME to use

Definition at line 51 of file pubkey.cpp.

53  {
54  m_op.reset(get_pk_op<PK_Ops::Decryption>("Decryption", key, padding, provider));
55  }

Member Function Documentation

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

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
inlineinherited

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  }

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