CSRTPMasterSalt Class Reference

class CSRTPMasterSalt : public CBase

Contains a salt used in encryption and decryption.

Inherits from

Constructor & Destructor Documentation

CSRTPMasterSalt(TUint)

CSRTPMasterSalt ( TUint aN_S ) [private]

Parameters

TUint aN_S

~CSRTPMasterSalt()

~CSRTPMasterSalt ( )

Destructor

Member Functions Documentation

ConstructL(const TDesC8 &)

void ConstructL ( 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,
TUint aN_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 & aKey The master salt value.
TUint aN_S =  KSRTPDefSessionSaltingKeyLength The length of the session salt

NewLC(const TDesC8 &, TUint)

IMPORT_C CSRTPMasterSalt * NewLC ( const TDesC8 & aKey,
TUint aN_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 & aKey The master salt value.
TUint aN_S =  KSRTPDefSessionSaltingKeyLength The length of the session salt

SaltLength()

IMPORT_C TUint SaltLength ( ) const

Valid()

IMPORT_C TBool Valid ( ) 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 TUint iN_S [private]

The length of the session salt