#include <pk_ops_impl.h>
Definition at line 41 of file pk_ops_impl.h.
◆ ~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 47 of file pk_ops.cpp.
static std::unique_ptr< EME > create(std::string_view algo_spec)
◆ decrypt()
secure_vector< uint8_t > Botan::PK_Ops::Decryption_with_EME::decrypt |
( |
uint8_t & | valid_mask, |
|
|
std::span< const uint8_t > | ctext ) |
|
overridevirtual |
Implements Botan::PK_Ops::Decryption.
Definition at line 51 of file pk_ops.cpp.
51 {
53
55 auto len = m_eme->unpad(ptext, raw);
56
58
59
60
61
62
63
64
65
66
67
68
69 ptext.resize(len.value_or(0));
70 return ptext;
71}
static constexpr Mask< T > from_choice(Choice c)
std::vector< T, secure_allocator< T > > secure_vector
References Botan::CT::Mask< T >::from_choice().
◆ 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: