#include <pk_ops_impl.h>
Definition at line 43 of file pk_ops_impl.h.
◆ ~Decryption_with_Padding()
| Botan::PK_Ops::Decryption_with_Padding::~Decryption_with_Padding |
( |
| ) |
|
|
overridedefault |
◆ Decryption_with_Padding()
| Botan::PK_Ops::Decryption_with_Padding::Decryption_with_Padding |
( |
std::string_view | padding | ) |
|
|
explicitprotected |
Definition at line 50 of file pk_ops.cpp.
50 :
static std::unique_ptr< EncryptionPaddingScheme > create(std::string_view algo_spec)
◆ decrypt()
| secure_vector< uint8_t > Botan::PK_Ops::Decryption_with_Padding::decrypt |
( |
uint8_t & | valid_mask, |
|
|
std::span< const uint8_t > | ctext ) |
|
overridevirtual |
Implements Botan::PK_Ops::Decryption.
Definition at line 55 of file pk_ops.cpp.
55 {
57
59 auto len = m_padding->unpad(ptext, raw);
60
62
63
64
65
66
67
68
69
70
71
72
73 ptext.resize(len.value_or(0));
74 return ptext;
75}
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: