Botan 3.3.0
Crypto and TLS for C&
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:
Botan::PK_Ops::Decryption

Public Member Functions

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

Protected Member Functions

 Decryption_with_EME (std::string_view eme)
 

Detailed Description

Definition at line 36 of file pk_ops_impl.h.

Constructor & Destructor Documentation

◆ ~Decryption_with_EME()

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

◆ Decryption_with_EME()

Botan::PK_Ops::Decryption_with_EME::Decryption_with_EME ( std::string_view eme)
explicitprotected

Definition at line 42 of file pk_ops.cpp.

42: m_eme(EME::create(eme)) {}
static std::unique_ptr< EME > create(std::string_view algo_spec)
Definition eme.cpp:28

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 )
overridevirtual

Implements Botan::PK_Ops::Decryption.

Definition at line 44 of file pk_ops.cpp.

46 {
47 const secure_vector<uint8_t> raw = raw_decrypt(ciphertext, ciphertext_len);
48 return m_eme->unpad(valid_mask, raw.data(), raw.size());
49}

◆ plaintext_length()

virtual size_t Botan::PK_Ops::Decryption::plaintext_length ( size_t ctext_len) const
pure virtualinherited

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