class CStreamCipher : public CSymmetricCipher |
Abstract interface class to be implemented by Stream Ciphers.
Public Member Functions | |
---|---|
IMPORT_C TInt | BlockSize (void) |
IMPORT_C TInt | MaxFinalOutputLength ( TInt ) |
IMPORT_C TInt | MaxOutputLength ( TInt ) |
IMPORT_C void | Process (const TDesC8 &, TDes8 &) |
IMPORT_C void | ProcessFinalL (const TDesC8 &, TDes8 &) |
Protected Member Functions | |
---|---|
IMPORT_C void | DoProcess ( TDes8 &) |
IMPORT_C TInt | BlockSize | ( | void | ) | const [virtual] |
Gets the block size in bytes (always = 1 for stream ciphers).
void |
IMPORT_C void | DoProcess | ( | TDes8 & | aData | ) | [protected, pure virtual] |
DoProcess() pure virtual function, to be implemented by subclasses.
TDes8 & aData | On input, text to be processed; on return, processed text. |
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.
TInt aInputLength | The length of data to be supplied to Process() in bytes. |
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.
TInt aInputLength | The length of data to be supplied to Process() in bytes. |
IMPORT_C void | Process | ( | const TDesC8 & | aInput, |
TDes8 & | aOutput | |||
) | [virtual] |
Implemented by calling the DoProcess() pure virtual function, to be implemented by subclasses.
IMPORT_C void | ProcessFinalL | ( | const TDesC8 & | aInput, |
TDes8 & | aOutput | |||
) | [virtual] |
Implemented by calling the DoProcess() pure virtual function, to be implemented by subclasses.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.