CModeCBCDecryptor Class Reference

class CModeCBCDecryptor : public CBlockChainingMode

Concrete subclass of CBlockChainingMode implementing CBC mode block chaining for decryption.

Constructor & Destructor Documentation

CModeCBCDecryptor()

CModeCBCDecryptor ( ) [protected]

~CModeCBCDecryptor(void)

~CModeCBCDecryptor ( void ) [virtual]

Parameters

void

Member Functions Documentation

ConstructL(CBlockTransformation *, const TDesC8 &)

void ConstructL ( CBlockTransformation * aBT,
const TDesC8 & aIV
) [protected]

Parameters

CBlockTransformation * aBT
const TDesC8 & aIV

NewL(CBlockTransformation *, const TDesC8 &)

IMPORT_C CModeCBCDecryptor * NewL ( CBlockTransformation * aBT,
const TDesC8 & aIV
) [static]

Creates an object of this class for CBC mode decryption.

Parameters

CBlockTransformation * aBT An appropriate CBlockTransformation derived decryptor.
const TDesC8 & aIV Initialization vector, the length of this descriptor must be the same as the underlying cipher's block size.

NewLC(CBlockTransformation *, const TDesC8 &)

IMPORT_C CModeCBCDecryptor * NewLC ( CBlockTransformation * aBT,
const TDesC8 & aIV
) [static]

Creates an object of this class for CBC mode decryption.

The returned pointer is put onto the cleanup stack.

Parameters

CBlockTransformation * aBT An appropriate CBlockTransformation derived decryptor.
const TDesC8 & aIV Initialization vector, the length of this descriptor must be the same as the underlying cipher's block size.

Transform(TDes8 &)

void Transform ( TDes8 & aBlock ) [virtual]

Transforms the supplied block, returning the new value using the same parameter. aBlock.Size() must be the same length as BlockSize() .

Parameters

TDes8 & aBlock On input, the data to be transformed; on return, the data after transformation.

operator=(const CModeCBCDecryptor &)

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

Parameters

const CModeCBCDecryptor &

Member Data Documentation

TPtr8 iIVBak

TPtr8 iIVBak [private]

HBufC8 * iIVBakBuf

HBufC8 * iIVBakBuf [private]