Botan
2.1.0
Crypto and TLS for C++11
|
#include <mode_pad.h>
Public Member Functions | |
void | add_padding (secure_vector< uint8_t > &buffer, size_t final_block_bytes, size_t block_size) const override |
std::string | name () const override |
size_t | unpad (const uint8_t[], size_t) const override |
bool | valid_blocksize (size_t bs) const override |
ANSI X9.23 Padding
Definition at line 85 of file mode_pad.h.
|
overridevirtual |
Add padding bytes to buffer.
buffer | data to pad |
final_block_bytes | size of the final block in bytes |
block_size | size of each block in bytes |
Implements Botan::BlockCipherModePaddingMethod.
Definition at line 79 of file mode_pad.cpp.
|
inlineoverridevirtual |
Implements Botan::BlockCipherModePaddingMethod.
Definition at line 96 of file mode_pad.h.
|
overridevirtual |
Remove padding bytes from block
block | the last block |
size | the size of the block in bytes |
Implements Botan::BlockCipherModePaddingMethod.
Definition at line 95 of file mode_pad.cpp.
References Botan::CT::conditional_copy_mem(), Botan::CT::expand_mask(), Botan::CT::is_zero(), Botan::CT::poison(), and Botan::CT::unpoison().
|
inlineoverridevirtual |
block_size | of the cipher |
Implements Botan::BlockCipherModePaddingMethod.
Definition at line 94 of file mode_pad.h.