Botan  1.11.15
Public Member Functions
Botan::Null_Padding Class Reference

#include <mode_pad.h>

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

List of all members.

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 [inline, override, virtual]

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 113 of file mode_pad.h.

{}
std::string Botan::Null_Padding::name ( ) const [inline, virtual]
Returns:
name of the mode

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 119 of file mode_pad.h.

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

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 115 of file mode_pad.h.

{ return size; }
bool Botan::Null_Padding::valid_blocksize ( size_t  block_size) const [inline, virtual]
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.

{ return true; }

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