CStreamCipher Class Reference

class CStreamCipher : public CSymmetricCipher

Abstract interface class to be implemented by Stream Ciphers.

Inherits from

Member Functions Documentation

BlockSize(void)

IMPORT_C TIntBlockSize(void)const [virtual]

Gets the block size in bytes (always = 1 for stream ciphers).

Parameters

void

DoProcess(TDes8 &)

IMPORT_C voidDoProcess(TDes8 &aData)[protected, pure virtual]

DoProcess() pure virtual function, to be implemented by subclasses.

Parameters

TDes8 & aDataOn input, text to be processed; on return, processed text.

MaxFinalOutputLength(TInt)

IMPORT_C TIntMaxFinalOutputLength(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.

MaxOutputLength(TInt)

IMPORT_C TIntMaxOutputLength(TIntaInputLength)const [virtual]

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

Parameters

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

Process(const TDesC8 &, TDes8 &)

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

Implemented by calling the DoProcess() pure virtual function, to be implemented by subclasses.

Parameters

const TDesC8 & aInputInput text.
TDes8 & aOutputText after processing.

ProcessFinalL(const TDesC8 &, TDes8 &)

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

Implemented by calling the DoProcess() pure virtual function, to be implemented by subclasses.

Parameters

const TDesC8 & aInputInput text.
TDes8 & aOutputText after processing.