CBufferedDecryptor Class Reference

class CBufferedDecryptor : public CBufferedTransformation

Subclass of CBufferedTransformation for buffered decryption.

Objects of this class are intialised with, and subsequently own, a decryptor derived from CBlockTransformation and a subclass of CPadding.

Inherits from

Constructor & Destructor Documentation

CBufferedDecryptor()

CBufferedDecryptor()[protected]

Member Functions Documentation

ConstructL(CBlockTransformation *, CPadding *)

voidConstructL(CBlockTransformation *aBT,
CPadding *aPadding
)[protected]

Parameters

CBlockTransformation * aBT
CPadding * aPadding

MaxFinalOutputLength(TInt)

TInt MaxFinalOutputLength(TIntaInputLength)const [virtual]

Gets as tight an upper bound as possible on the number of bytes that would be returned by a call to ProcessFinalL() with aInputLength bytes of data.

Parameters

TInt aInputLengthThe length of data to be supplied to Process() in bytes.

NewL(CBlockTransformation *, CPadding *)

IMPORT_C CBufferedDecryptor *NewL(CBlockTransformation *aBT,
CPadding *aPadding
)[static]

Creates a CBufferedDecryptor object taking ownership of aBT and aPadding.

Parameters

CBlockTransformation * aBTBlock transformation object (decryptor)
CPadding * aPaddingPadding object (deriving from CPadding)

NewLC(CBlockTransformation *, CPadding *)

IMPORT_C CBufferedDecryptor *NewLC(CBlockTransformation *aBT,
CPadding *aPadding
)[static]

Creates a CBufferedDecryptor object taking ownership of aBT and aPadding.

The returned pointer is put onto the cleanup stack.

Parameters

CBlockTransformation * aBTBlock transformation object (decryptor)
CPadding * aPaddingPadding object (deriving from CPadding)

ProcessFinalL(const TDesC8 &, TDes8 &)

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

Completes a decryption operation using the underlying block transformation and unpads the decrypted data.

Parameters

const TDesC8 & aInputThe data to be processed and unpadded. aInput must be a whole number of blocks.
TDes8 & aOutputThe resulting processed and unpadded data appened to aOutput. aOutput must have at least MaxFinalOutputLength() empty bytes remaining in its length.