|
Botan 3.14.1
Crypto and TLS for C&
|
#include <enc_padding.h>
Public Member Functions | |
| virtual size_t | maximum_input_size (size_t keybits) const =0 |
| virtual size_t | pad (std::span< uint8_t > output, std::span< const uint8_t > input, size_t key_length, RandomNumberGenerator &rng) const =0 |
| virtual CT::Option< size_t > | unpad (std::span< uint8_t > output, std::span< const uint8_t > input) const =0 |
| virtual | ~EncryptionPaddingScheme () |
Static Public Member Functions | |
| static std::unique_ptr< EncryptionPaddingScheme > | create_or_throw (const PK_Encryption_Options_Reader &options) |
Encoding Method for Encryption
Definition at line 24 of file enc_padding.h.
|
virtualdefault |
References create_or_throw().
|
static |
Factory method for encryption padding schemes
| options | the padding scheme and its parameters |
Definition at line 26 of file enc_padding.cpp.
References Botan::PK_Encryption_Options_Reader::padding(), Botan::PK_Encryption_Options_Reader::to_string(), and Botan::PK_Encryption_Options_Reader::using_padding().
Referenced by ~EncryptionPaddingScheme().
|
pure virtual |
Return the maximum input size in bytes we can support
| keybits | the size of the key in bits |
Implemented in Botan::OAEP.
|
pure virtual |
Encode an input
| output | buffer that is written to |
| input | the plaintext |
| key_length | length of the key in bits |
| Random Number Generators | a random number generator |
|
pure virtual |
Decode an input
| output | buffer where output is placed |
| input | the encoded plaintext |