Botan  1.11.11
Public Member Functions | List of all members
Botan::Null_Padding Class Reference

#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
 
size_t unpad (const byte[], size_t size) const
 
bool valid_blocksize (size_t) const
 

Detailed Description

Null Padding

Definition at line 110 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 113 of file mode_pad.h.

113 {}
std::string Botan::Null_Padding::name ( ) const
inlinevirtual
Returns
name of the mode

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 119 of file mode_pad.h.

119 { return "NoPadding"; }
size_t Botan::Null_Padding::unpad ( const byte  block[],
size_t  size 
) const
inlinevirtual
Parameters
blockthe last block
sizethe of the block

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 115 of file mode_pad.h.

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

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 117 of file mode_pad.h.

117 { return true; }

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