CSRTPMasterSalt Class Reference

class CSRTPMasterSalt : public CBase

Contains a salt used in encryption and decryption.

Inherits from

Constructor & Destructor Documentation

CSRTPMasterSalt(TUint)

CSRTPMasterSalt(TUintaN_S)[private]

Parameters

TUint aN_S

~CSRTPMasterSalt()

~CSRTPMasterSalt()

Destructor

Member Functions Documentation

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aKey)[private]

Parameters

const TDesC8 & aKey

MasterSalt()

IMPORT_C const TDesC8 &MasterSalt()const

NewL(const TDesC8 &, TUint)

IMPORT_C CSRTPMasterSalt *NewL(const TDesC8 &aKey,
TUintaN_S =  KSRTPDefSessionSaltingKeyLength
)[static]
Two-phased constructor. CSRTPCryptoContext takes the ownership of MasterKey and MasterSalt
leave
KErrNone if success, system-wide error code otherwise

Parameters

const TDesC8 & aKeyThe master salt value.
TUint aN_S =  KSRTPDefSessionSaltingKeyLength The length of the session salt

NewLC(const TDesC8 &, TUint)

IMPORT_C CSRTPMasterSalt *NewLC(const TDesC8 &aKey,
TUintaN_S =  KSRTPDefSessionSaltingKeyLength
)[static]
Two-phased constructor. CSRTPCryptoContext takes the ownership of MasterKey and MasterSalt
leave
KErrNone if success, system-wide error code otherwise

Parameters

const TDesC8 & aKeyThe master salt value.
TUint aN_S =  KSRTPDefSessionSaltingKeyLength The length of the session salt

SaltLength()

IMPORT_C TUintSaltLength()const

Valid()

IMPORT_C TBoolValid()const

operator=(const CSRTPMasterSalt &)

const CSRTPMasterSalt &operator=(const CSRTPMasterSalt &aSalt)[private]

Parameters

const CSRTPMasterSalt & aSalt

Member Data Documentation

HBufC8 * iKey

HBufC8 *iKey[private]

The master salt value. The length of the salt is determined by the Size() function.

const TUint iN_S

const TUintiN_S[private]

The length of the session salt