Botan  1.11.31
Public Member Functions | List of all members
Botan::Null_Padding Class Referencefinal

#include <mode_pad.h>

Inheritance diagram for Botan::Null_Padding:
Botan::BlockCipherModePaddingMethod

Public Member Functions

void add_padding (secure_vector< byte > &, size_t, size_t) const override
 
std::string name () const override
 
size_t unpad (const byte[], size_t size) const override
 
bool valid_blocksize (size_t) const override
 

Detailed Description

Null Padding

Definition at line 111 of file mode_pad.h.

Member Function Documentation

void Botan::Null_Padding::add_padding ( secure_vector< byte > &  ,
size_t  ,
size_t   
) const
inlineoverridevirtual

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 114 of file mode_pad.h.

114 {}
std::string Botan::Null_Padding::name ( ) const
inlineoverridevirtual
Returns
name of the mode

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 120 of file mode_pad.h.

References Botan::get_bc_pad().

120 { return "NoPadding"; }
size_t Botan::Null_Padding::unpad ( const byte  block[],
size_t  size 
) const
inlineoverridevirtual
Parameters
blockthe last block
sizethe of the block
Returns
number of padding bytes

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 116 of file mode_pad.h.

116 { return size; }
bool Botan::Null_Padding::valid_blocksize ( size_t  block_size) const
inlineoverridevirtual
Parameters
block_sizeof the cipher
Returns
valid block size for this padding mode

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 118 of file mode_pad.h.

118 { return true; }

The documentation for this class was generated from the following file: