#include <pk_ops_impl.h>
Definition at line 36 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 41 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 43 of file pk_ops.cpp.
43 {
45
47 auto len = m_eme->unpad(ptext, raw);
48
50
51
52
53
54
55
56
57
58
59
60
61 ptext.resize(len.value_or(0));
62 return ptext;
63}
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: