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 TInt BlockSize ( void ) const [virtual]

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

Parameters

void

DoProcess(TDes8 &)

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

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

Parameters

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

MaxFinalOutputLength(TInt)

IMPORT_C TInt MaxFinalOutputLength ( TInt aInputLength ) 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 aInputLength The length of data to be supplied to Process() in bytes.

MaxOutputLength(TInt)

IMPORT_C TInt MaxOutputLength ( TInt aInputLength ) 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 aInputLength The length of data to be supplied to Process() in bytes.

Process(const TDesC8 &, TDes8 &)

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

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

Parameters

const TDesC8 & aInput Input text.
TDes8 & aOutput Text after processing.

ProcessFinalL(const TDesC8 &, TDes8 &)

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

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

Parameters

const TDesC8 & aInput Input text.
TDes8 & aOutput Text after processing.