class CPBEncryptorSet : public CPBEncryptor |
Implements the password based encryption of multiple elements.
Public Member Functions | |
---|---|
~CPBEncryptorSet () | |
TInt | MaxFinalOutputLength ( TUint ) |
TInt | MaxOutputLength ( TUint ) |
IMPORT_C CPBEncryptorSet * | NewL (const TPBECipher , const TDesC8 &) |
IMPORT_C CPBEncryptorSet * | NewLC (const TPBECipher , const TDesC8 &) |
void | Process (const TDesC8 &, TDes8 &) |
void | ProcessFinalL (const TDesC8 &, TDes8 &) |
IMPORT_C void | Reset (void) |
Protected Member Functions | |
---|---|
CPBEncryptorSet () | |
void | ConstructL ( TPBECipher , const TDesC8 &) |
Private Attributes | |
---|---|
CSymmetricCipher * | iCipher |
HBufC8 * | iIV |
TBool | iIVSent |
void | ConstructL | ( | TPBECipher | aCipher, |
const TDesC8 & | aKey | |||
) | [protected] |
TPBECipher aCipher | |
const TDesC8 & aKey |
TInt | MaxFinalOutputLength | ( | TUint | aMaxInputLength | ) | const [virtual] |
Gets the maximum size of the output given a certain input length.
TUint aMaxInputLength | The maximum input length in bytes. |
TInt | MaxOutputLength | ( | TUint | aMaxInputLength | ) | const [virtual] |
Gets the maximum size of the output given a certain input length.
TUint aMaxInputLength | The maximum input length in bytes. |
IMPORT_C CPBEncryptorSet * | NewL | ( | const TPBECipher | aCipher, |
const TDesC8 & | aKey | |||
) | [static] |
Creates a new CPBEncryptorSet object from the specified cipher and key, and a random Initialization Vector (IV).
const TPBECipher aCipher | The encryption cipher |
const TDesC8 & aKey | The encryption key |
IMPORT_C CPBEncryptorSet * | NewLC | ( | const TPBECipher | aCipher, |
const TDesC8 & | aKey | |||
) | [static] |
Creates a new CPBEncryptorSet object from the specified cipher and key, and a random IV.
Puts a pointer to the returned object onto the cleanup stack.
const TPBECipher aCipher | The encryption cipher |
const TDesC8 & aKey | The encryption key |
void | Process | ( | const TDesC8 & | aInput, |
TDes8 & | aOutput | |||
) | [virtual] |
Transforms aInput into its encrypted form, aOutput.
aOutput must have CPBEncryptorSet::MaxOutputLength() empty bytes remaining in its length.
void | ProcessFinalL | ( | const TDesC8 & | aInput, |
TDes8 & | aOutput | |||
) | [virtual] |
Transforms aInput into its encrypted form, aOutput, and applies a padding scheme to ensure a block aligned result.
aOutput must have CPBEncryptorSet::MaxFinalOutputLength() empty bytes remaining in its length.
IMPORT_C void | Reset | ( | void | ) |
Resets the CPBEncryptorSet object back to its original state and clears all its buffers.
void |
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.