CModeCBCEncryptor Class Reference

class CModeCBCEncryptor : public CBlockChainingMode

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

Constructor & Destructor Documentation

CModeCBCEncryptor()

CModeCBCEncryptor ( ) [protected]

Member Functions Documentation

NewL(CBlockTransformation *, const TDesC8 &)

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

Creates an object of this class for CBC mode encryption.

Parameters

CBlockTransformation * aBT An appropriate CBlockTransformation derived encryptor.
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 CModeCBCEncryptor * NewLC ( CBlockTransformation * aBT,
const TDesC8 & aIV
) [static]

Creates an object of this class for CBC mode encryption.

The returned pointer is put onto the cleanup stack.

Parameters

CBlockTransformation * aBT An appropriate CBlockTransformation derived encryptor.
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 CModeCBCEncryptor &)

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

Parameters

const CModeCBCEncryptor &