CPaddingNone Class Reference

class CPaddingNone : public CPadding

This concrete subclass of CPadding appends no padding.

aOutput will be a copy of aInput after any call to PadL() or UnPadL() .

Inherits from

Constructor & Destructor Documentation

CPaddingNone(TInt)

IMPORT_C CPaddingNone ( TInt aBlockBytes ) [protected]

Constructor

Parameters

TInt aBlockBytes The block size in bytes.

CPaddingNone(void)

CPaddingNone ( void ) [private]

Parameters

void

CPaddingNone(const CPaddingNone &)

CPaddingNone ( const CPaddingNone & ) [private]

Parameters

const CPaddingNone &

Member Functions Documentation

DoPadL(const TDesC8 &, TDes8 &)

void DoPadL ( const TDesC8 & aInput,
TDes8 & aOutput
) [private, virtual]

Parameters

const TDesC8 & aInput
TDes8 & aOutput

MaxPaddedLength(TInt)

TInt MaxPaddedLength ( TInt aInputBytes ) const [virtual]

Gets the size of the aOutput buffer, in a call to PadL() , must be in order to accommodate a block size of BlockSize() and an input size of aInputBytes.

Note:

By default, this function returns the output of BlockSize() . If a derived padding system outputs more than a single block of padding, one must override this function and return the appropriate value.

Parameters

TInt aInputBytes The amount of data to be padded out in bytes.

MinPaddingLength(void)

TInt MinPaddingLength ( void ) const [virtual]

Gets the smallest number of bytes that PadL() will ever add to aInput in order to get a valid block aligned aOutput.

For example, in SSLv3 padding, if the block size is 8 and aInput is 7 bytes, it will append 1 byte of padding. For SSLv3 padding, this is the smallest amount possible as an 8 byte input will add another block size (8 more bytes) of padded data.

Parameters

void

NewL(TInt)

IMPORT_C CPaddingNone * NewL ( TInt aBlockBytes =  KMaxTInt ) [static]

Creates a new CPaddingNone object.

Parameters

TInt aBlockBytes =  KMaxTInt The block size in bytes.

NewLC(TInt)

IMPORT_C CPaddingNone * NewLC ( TInt aBlockBytes =  KMaxTInt ) [static]

Creates a new CPaddingNone object and leaves a pointer to it on the cleanup stack.

Parameters

TInt aBlockBytes =  KMaxTInt The block size in bytes.

UnPadL(const TDesC8 &, TDes8 &)

void UnPadL ( const TDesC8 & aInput,
TDes8 & aOutput
) [virtual]

Removes padding from aInput and appends unpadded result to aOutput.

Parameters

const TDesC8 & aInput Data to be unpadded.
TDes8 & aOutput On return, the unpadded data.

operator=(const CPaddingNone &)

CPaddingNone & operator= ( const CPaddingNone & ) [private]

Parameters

const CPaddingNone &