Botan  2.11.0
Crypto and TLS for C++11
Public Member Functions | Protected Member Functions | List of all members
Botan::PK_Ops::Decryption_with_EME Class Referenceabstract

#include <pk_ops_impl.h>

Inheritance diagram for Botan::PK_Ops::Decryption_with_EME:

Public Member Functions

secure_vector< uint8_t > decrypt (uint8_t &valid_mask, const uint8_t msg[], size_t msg_len) override
 ~Decryption_with_EME ()=default

Protected Member Functions

 Decryption_with_EME (const std::string &eme)

Detailed Description

Definition at line 39 of file pk_ops_impl.h.

Constructor & Destructor Documentation

◆ ~Decryption_with_EME()

Botan::PK_Ops::Decryption_with_EME::~Decryption_with_EME ( )

◆ Decryption_with_EME()

Botan::PK_Ops::Decryption_with_EME::Decryption_with_EME ( const std::string &  eme)

Definition at line 34 of file pk_ops.cpp.

35  {
36  m_eme.reset(get_eme(eme));
37  if(!m_eme.get())
38  throw Algorithm_Not_Found(eme);
39  }
EME * get_eme(const std::string &algo_spec)
Definition: eme.cpp:27

References Botan::get_eme().

Member Function Documentation

◆ decrypt()

secure_vector< uint8_t > Botan::PK_Ops::Decryption_with_EME::decrypt ( uint8_t &  valid_mask,
const uint8_t  msg[],
size_t  msg_len 

Definition at line 42 of file pk_ops.cpp.

45  {
46  const secure_vector<uint8_t> raw = raw_decrypt(ciphertext, ciphertext_len);
47  return m_eme->unpad(valid_mask,, raw.size());
48  }
uint8_t size_t const uint8_t size_t ciphertext_len
Definition: ffi.h:1381
uint8_t size_t const uint8_t ciphertext[]
Definition: ffi.h:1381

References ciphertext, and ciphertext_len.

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