Botan::Null_Padding Class Reference

#include <mode_pad.h>

Inheritance diagram for Botan::Null_Padding:

Botan::BlockCipherModePaddingMethod

List of all members.

Public Member Functions

std::string name () const
void pad (byte[], u32bit, u32bit) const
u32bit pad_bytes (u32bit, u32bit) const
u32bit unpad (const byte[], u32bit size) const
bool valid_blocksize (u32bit) const


Detailed Description

Null Padding

Definition at line 108 of file mode_pad.h.


Member Function Documentation

std::string Botan::Null_Padding::name (  )  const [inline, virtual]

Returns:
name of the mode

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 115 of file mode_pad.h.

00115 { return "NoPadding"; }

void Botan::Null_Padding::pad ( byte  block[],
u32bit  size,
u32bit  current_position 
) const [inline, virtual]

Parameters:
block output buffer
size of the block
current_position in the last block

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 111 of file mode_pad.h.

00111 { return; }

u32bit Botan::Null_Padding::pad_bytes ( u32bit  block_size,
u32bit  position 
) const [inline, virtual]

Parameters:
block_size of the cipher
position in the current block
Returns:
number of padding bytes that will be appended

Reimplemented from Botan::BlockCipherModePaddingMethod.

Definition at line 113 of file mode_pad.h.

00113 { return 0; }

u32bit Botan::Null_Padding::unpad ( const   block[],
u32bit  size 
) const [inline, virtual]

Parameters:
block the last block
size the of the block

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 112 of file mode_pad.h.

00112 { return size; }

bool Botan::Null_Padding::valid_blocksize ( u32bit  block_size  )  const [inline, virtual]

Parameters:
block_size of the cipher
Returns:
valid block size for this padding mode

Implements Botan::BlockCipherModePaddingMethod.

Definition at line 114 of file mode_pad.h.

00114 { return true; }


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

Generated on Fri Aug 13 16:20:59 2010 for Botan by  doxygen 1.5.8