#include <mode_pad.h>

Public Member Functions | |
| virtual std::string | name () const =0 |
| virtual void | pad (byte block[], u32bit size, u32bit current_position) const =0 |
| virtual u32bit | pad_bytes (u32bit block_size, u32bit position) const |
| virtual u32bit | unpad (const byte block[], u32bit size) const =0 |
| virtual bool | valid_blocksize (u32bit block_size) const =0 |
| virtual | ~BlockCipherModePaddingMethod () |
Definition at line 25 of file mode_pad.h.
| virtual Botan::BlockCipherModePaddingMethod::~BlockCipherModePaddingMethod | ( | ) | [inline, virtual] |
| virtual std::string Botan::BlockCipherModePaddingMethod::name | ( | ) | const [pure virtual] |
Implemented in Botan::PKCS7_Padding, Botan::ANSI_X923_Padding, Botan::OneAndZeros_Padding, and Botan::Null_Padding.
Referenced by Botan::CBC_Decryption::CBC_Decryption(), Botan::CBC_Encryption::CBC_Encryption(), Botan::ECB_Decryption::name(), Botan::ECB_Encryption::name(), Botan::CBC_Decryption::name(), and Botan::CBC_Encryption::name().
| virtual void Botan::BlockCipherModePaddingMethod::pad | ( | byte | block[], | |
| u32bit | size, | |||
| u32bit | current_position | |||
| ) | const [pure virtual] |
| block | output buffer | |
| size | of the block | |
| current_position | in the last block |
Implemented in Botan::PKCS7_Padding, Botan::ANSI_X923_Padding, Botan::OneAndZeros_Padding, and Botan::Null_Padding.
| u32bit Botan::BlockCipherModePaddingMethod::pad_bytes | ( | u32bit | block_size, | |
| u32bit | position | |||
| ) | const [virtual] |
| block_size | of the cipher | |
| position | in the current block |
Reimplemented in Botan::Null_Padding.
Definition at line 16 of file mode_pad.cpp.
| virtual u32bit Botan::BlockCipherModePaddingMethod::unpad | ( | const byte | block[], | |
| u32bit | size | |||
| ) | const [pure virtual] |
| block | the last block | |
| size | the of the block |
Implemented in Botan::PKCS7_Padding, Botan::ANSI_X923_Padding, Botan::OneAndZeros_Padding, and Botan::Null_Padding.
| virtual bool Botan::BlockCipherModePaddingMethod::valid_blocksize | ( | u32bit | block_size | ) | const [pure virtual] |
| block_size | of the cipher |
Implemented in Botan::PKCS7_Padding, Botan::ANSI_X923_Padding, Botan::OneAndZeros_Padding, and Botan::Null_Padding.
Referenced by Botan::CBC_Decryption::CBC_Decryption(), and Botan::CBC_Encryption::CBC_Encryption().
1.5.8