CPBEncryptionData Class Reference
class CPBEncryptionData : public CBase |
Represents the information needed to decrypt encrypted data given the correct password. Contains the authentication key, and the parameters used to derive the encryption key. A CPBEncryptionData object needs to be stored to recover any data for later use.
Public Member Functions |
---|
| ~CPBEncryptionData(void) |
IMPORT_C const CPBAuthData & | AuthData() |
IMPORT_C const CPBEncryptParms & | EncryptParms() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C CPBEncryptionData * | NewL(const TDesC8 &, TPBECipher, const TDesC8 &, const TDesC8 &, const TDesC8 &, TUint) |
IMPORT_C CPBEncryptionData * | NewL(const CPBEncryptionData &) |
IMPORT_C CPBEncryptionData * | NewL(RReadStream &) |
IMPORT_C CPBEncryptionData * | NewL(const TDesC8 &, const TDesC8 &, const CPBEncryptParms &) |
IMPORT_C CPBEncryptionData * | NewLC(const TDesC8 &, TPBECipher, const TDesC8 &, const TDesC8 &, const TDesC8 &, TUint) |
IMPORT_C CPBEncryptionData * | NewLC(const CPBEncryptionData &) |
IMPORT_C CPBEncryptionData * | NewLC(RReadStream &) |
Constructor & Destructor Documentation
CPBEncryptionData(void)
IMPORT_C | CPBEncryptionData | ( | void | | ) | [protected] |
CPBEncryptionData(const CPBEncryptionData &)
~CPBEncryptionData(void)
~CPBEncryptionData | ( | void | | ) | [virtual] |
Member Functions Documentation
AuthData()
Returns the authentication data object.
ConstructL(const TDesC8 &, TPBECipher, const TDesC8 &, const TDesC8 &, const TDesC8 &, TUint)
ConstructL(const CPBEncryptionData &)
ConstructL(const TDesC8 &, const TDesC8 &, const CPBEncryptParms &)
Second-phase constructor for factory function with same signature.
ConstructL(RReadStream &)
EncryptParms()
Returns the encryption parameter object.
ExternalizeL(RWriteStream &)
Externalizes the encryption data into a write stream.
NewL(const TDesC8 &, TPBECipher, const TDesC8 &, const TDesC8 &, const TDesC8 &, TUint)
Parameters
const TDesC8 & aPassword | The user's initial password |
TPBECipher aCipher | The cipher to use |
const TDesC8 & aAuthSalt | The salt used for the authentication |
const TDesC8 & aEncryptSalt | The salt used for the encryption |
const TDesC8 & aIV | The Initialization Vector |
TUint aIterations | The number of iterations of the PBE algorithm |
NewL(const CPBEncryptionData &)
NewL(RReadStream &)
Internalizes the encryption data from a read stream.
NewL(const TDesC8 &, const TDesC8 &, const CPBEncryptParms &)
This factory function takes the user-supplied password and the randomly-generated authentication salt, along with the encryption paramaters. It is provided so the encryption parameters can be extended without having to provide multiple factory functions.
Parameters
const TDesC8 & aPassword | User-supplied password. This password is not transformed so if it needs to be in a particular format, e.g. for PKCS#12, the transformation must be applied before this function is called. |
const TDesC8 & aAuthSalt | The salt is used to derive the authentication key; not the encryption key. |
const CPBEncryptParms & aParms | Encryption parameters describe how the data is encrypted. |
NewLC(const TDesC8 &, TPBECipher, const TDesC8 &, const TDesC8 &, const TDesC8 &, TUint)
Creates a new CPBEncryptionData object and puts a pointer to it onto the cleanup stack.
Parameters
const TDesC8 & aPassword | The user's initial password |
TPBECipher aCipher | The cipher to use |
const TDesC8 & aAuthSalt | The salt used for the authentication |
const TDesC8 & aEncryptSalt | The salt used for the encryption |
const TDesC8 & aIV | The Initialization Vector |
TUint aIterations | The number of iterations of the PBE algorithm |
NewLC(const CPBEncryptionData &)
Creates a new CPBEncryptionData from an existing one, and puts a pointer to it onto the cleanup stack.
NewLC(RReadStream &)
Internalizes the encryption data from a read stream, and puts a pointer to it onto the cleanup stack.
operator=(const CPBEncryptionData &)
Member Data 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.