class CBufferedEncryptor : public CBufferedTransformation |
Subclass of CBufferedTransformation for buffered encryption.
Objects of this class are intialised with, and subsequently own, an encryptor derived from CBlockTransformation and a subclass of CPadding .
Public Member Functions | |
---|---|
TInt | MaxFinalOutputLength ( TInt ) |
IMPORT_C CBufferedEncryptor * | NewL ( CBlockTransformation *, CPadding *) |
IMPORT_C CBufferedEncryptor * | NewLC ( CBlockTransformation *, CPadding *) |
void | ProcessFinalL (const TDesC8 &, TDes8 &) |
Protected Member Functions | |
---|---|
CBufferedEncryptor () | |
void | ConstructL ( CBlockTransformation *, CPadding *) |
Inherited Attributes | |
---|---|
CBufferedTransformation::iBT | |
CBufferedTransformation::iInputStore | |
CBufferedTransformation::iInputStoreBuf | |
CBufferedTransformation::iPadding |
void | ConstructL | ( | CBlockTransformation * | aBT, |
CPadding * | aPadding | |||
) | [protected] |
CBlockTransformation * aBT | |
CPadding * aPadding |
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 CBufferedEncryptor * | NewL | ( | CBlockTransformation * | aBT, |
CPadding * | aPadding | |||
) | [static] |
Creates a CBufferedEncryptor object taking ownership of aBT and aPadding.
CBlockTransformation * aBT | Block transformation object (encryptor) |
CPadding * aPadding | Padding object (deriving from CPadding) |
IMPORT_C CBufferedEncryptor * | NewLC | ( | CBlockTransformation * | aBT, |
CPadding * | aPadding | |||
) | [static] |
Creates a CBufferedEncryptor object taking ownership of aBT and aPadding.
The returned pointer is put onto the cleanup stack.
CBlockTransformation * aBT | Block transformation object (encryptor) |
CPadding * aPadding | Padding object (deriving from CPadding) |
void | ProcessFinalL | ( | const TDesC8 & | aInput, |
TDes8 & | aOutput | |||
) | [virtual] |
Completes an encryption operation using the underlying block transformation, but first ensuring that input data is block aligned using the previously supplied CPadding object.
See the Cryptography api-guide documentation.
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.