| class CPBEncryptorElement : public CPBEncryptor |
Implements the password based encryption of elements.
| Public Member Functions | |
|---|---|
| ~CPBEncryptorElement () | |
| TInt | MaxFinalOutputLength ( TUint ) |
| TInt | MaxOutputLength ( TUint ) |
| IMPORT_C CPBEncryptorElement * | NewL ( TPBECipher , const TDesC8 &, const TDesC8 &) |
| IMPORT_C CPBEncryptorElement * | NewLC ( TPBECipher , const TDesC8 &, const TDesC8 &) |
| void | Process (const TDesC8 &, TDes8 &) |
| void | ProcessFinalL (const TDesC8 &, TDes8 &) |
| Protected Member Functions | |
|---|---|
| CPBEncryptorElement () | |
| void | ConstructL ( TPBECipher , const TDesC8 &, const TDesC8 &) |
| Private Attributes | |
|---|---|
| CSymmetricCipher * | iCipher |
| void | ConstructL | ( | TPBECipher | aCipher, |
| const TDesC8 & | aKey, | |||
| const TDesC8 & | aIV | |||
| ) | [protected] | |||
| TInt | MaxFinalOutputLength | ( | TUint | aMaxInputLength | ) | const [virtual] |
Gets the maximum size of the output resulting from calling ProcessFinalL() with a given input length.
| TUint aMaxInputLength | The maximum input length in bytes. |
| TInt | MaxOutputLength | ( | TUint | aMaxInputLength | ) | const [virtual] |
Gets the maximum size of the output resulting from calling Process() with a given input length.
| TUint aMaxInputLength | The maximum input length in bytes. |
| IMPORT_C CPBEncryptorElement * | NewL | ( | TPBECipher | aCipher, |
| const TDesC8 & | aKey, | |||
| const TDesC8 & | aIV | |||
| ) | [static] | |||
Creates a new CPBEncryptorElement object from the specified cipher, key, and Initialization Vector (IV).
| IMPORT_C CPBEncryptorElement * | NewLC | ( | TPBECipher | aCipher, |
| const TDesC8 & | aKey, | |||
| const TDesC8 & | aIV | |||
| ) | [static] | |||
Creates a new CPBEncryptorElement object from the specified cipher, key, and IV.
Puts a pointer to the returned object onto the cleanup stack.
| void | Process | ( | const TDesC8 & | aInput, |
| TDes8 & | aOutput | |||
| ) | [virtual] | |||
Transforms aInput into its encrypted form, aOutput.
aOutput must have CPBEncryptorElement::MaxOutputLength() empty bytes remaining in its length.
See the Cryptography api-guide documentation for an explanation of how buffering of data supplied to this function is handled.
| 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 CPBEncryptorElement::MaxFinalOutputLength() empty bytes remaining in its length.
See the Cryptography api-guide documentation for an explanation of how buffering of data supplied to this function is handled.
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.