CPBAuthData Class Reference

class CPBAuthData : public CBase

Contains the password based authentication data. Used to check the passphrase when decrypting.

Since
v7.0s

Inherits from

Constructor & Destructor Documentation

CPBAuthData(void)

IMPORT_CCPBAuthData(void)[protected]

Constructor

Parameters

void

CPBAuthData(const CPBAuthData &)

CPBAuthData(const CPBAuthData &)[private]

Parameters

const CPBAuthData &

~CPBAuthData(void)

~CPBAuthData(void)[virtual]

Destructor

Parameters

void

Member Functions Documentation

ConstructL(const TDesC8 &, const TDesC8 &, TUint, TUint)

voidConstructL(const TDesC8 &aPassword,
const TDesC8 &aSalt,
TUintaKeySize,
TUintaIterations
)[protected]

Parameters

const TDesC8 & aPassword
const TDesC8 & aSalt
TUint aKeySize
TUint aIterations

ConstructL(const CPBAuthData &)

voidConstructL(const CPBAuthData &aData)[protected]

Parameters

const CPBAuthData & aData

ConstructL(RReadStream &)

voidConstructL(RReadStream &aStream)[protected]

Parameters

RReadStream & aStream

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalizes the encryption parameters into a write stream.

Parameters

RWriteStream & aStreamThe stream to write to

Iterations()

IMPORT_C TIntIterations()const

Gets the number of iterations of the hashing algorithm.

Key()

IMPORT_C TPtrC8Key()const

Gets the authentication key

NewL(const TDesC8 &, const TDesC8 &, TUint, TUint)

IMPORT_C CPBAuthData *NewL(const TDesC8 &aPassword,
const TDesC8 &aSalt,
TUintaKeySize,
TUintaIterations
)[static]

Derives an authentication key.

Parameters

const TDesC8 & aPasswordThe user's initial password
const TDesC8 & aSaltThe salt
TUint aKeySizeThe key size
TUint aIterationsThe number of iterations of the PBE algorithm

NewL(const CPBAuthData &)

IMPORT_C CPBAuthData *NewL(const CPBAuthData &aData)[static]

Creates a new CPBAuthData object from an existing authentication key.

Parameters

const CPBAuthData & aDataThe existing CPBAuthData object

NewL(RReadStream &)

IMPORT_C CPBAuthData *NewL(RReadStream &aStream)[static]

Creates a new CPBAuthData object from an existing authentication key by internalizing the authentication data from a read stream.

Parameters

RReadStream & aStreamThe stream to read from

NewLC(const TDesC8 &, const TDesC8 &, TUint, TUint)

IMPORT_C CPBAuthData *NewLC(const TDesC8 &aPassword,
const TDesC8 &aSalt,
TUintaKeySize,
TUintaIterations
)[static]

Derives an authentication key.

The returned pointer is put onto the cleanup stack.

Parameters

const TDesC8 & aPasswordThe user's initial password
const TDesC8 & aSaltThe salt
TUint aKeySizeThe key size
TUint aIterationsThe number of iterations of the PBE algorithm

NewLC(const CPBAuthData &)

IMPORT_C CPBAuthData *NewLC(const CPBAuthData &aData)[static]

Creates a new CPBAuthData object from an existing authentication key.

The returned pointer is put onto the cleanup stack.

Parameters

const CPBAuthData & aDataThe existing CPBAuthData object

NewLC(RReadStream &)

IMPORT_C CPBAuthData *NewLC(RReadStream &aStream)[static]

Creates a new CPBAuthData object from an existing authentication key by internalizing the authentication data from a read stream.

The returned pointer is put onto the cleanup stack.

Parameters

RReadStream & aStreamThe stream to read from

Salt()

IMPORT_C TPtrC8Salt()const

Gets the salt used for the authentication

operator=(const CPBAuthData &)

CPBAuthData &operator=(const CPBAuthData &)[private]

Parameters

const CPBAuthData &

operator==(const CPBAuthData &)

IMPORT_C TBooloperator==(const CPBAuthData &aAuth)const

Tests whether two authentication keys are identical

Parameters

const CPBAuthData & aAuthThe authentication data object which holds the key to be tested

Member Data Documentation

HBufC8 * iAuthKey

HBufC8 *iAuthKey[private]

TUint iIterations

TUint iIterations[private]

HBufC8 * iSalt

HBufC8 *iSalt[private]