CSRTPMasterKey Class Reference

class CSRTPMasterKey : public CBase

Contains an SRTP master key.

Inherits from

Constructor & Destructor Documentation

CSRTPMasterKey(TUint, TUint)

CSRTPMasterKey(TUintaN_E,
TUintaN_A
)[private]

Parameters

TUint aN_E
TUint aN_A

~CSRTPMasterKey()

~CSRTPMasterKey()

Destructor

Member Functions Documentation

AuthKeyLength()

IMPORT_C TUintAuthKeyLength()const

ConstructL(const TDesC8 &, const TDesC8 &)

voidConstructL(const TDesC8 &aKey,
const TDesC8 &aMKI
)[private]

Parameters

const TDesC8 & aKey
const TDesC8 & aMKI

EncrKeyLength()

IMPORT_C TUintEncrKeyLength()const

MKI()

IMPORT_C const TDesC8 &MKI()const

MasterKey()

IMPORT_C const TDesC8 &MasterKey()const

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

IMPORT_C CSRTPMasterKey *NewL(const TDesC8 &aKey,
const TDesC8 &aMKI,
TUintaN_E =  KSRTPDefSessionEncryptionKeyLength ,
TUintaN_A =  KSRTPDefSessionAuthenticationKeyLength
)[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 key value. Local copy is made.
const TDesC8 & aMKIThe master key identifier value. Local copy is made. MKI key is optional so if there is no MKI key then gives empty string "".
TUint aN_E =  KSRTPDefSessionEncryptionKeyLength The bit length of the encryption key
TUint aN_A =  KSRTPDefSessionAuthenticationKeyLength The bit length of the authentication key

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

IMPORT_C CSRTPMasterKey *NewLC(const TDesC8 &aKey,
const TDesC8 &aMKI,
TUintaN_E =  KSRTPDefSessionEncryptionKeyLength ,
TUintaN_A =  KSRTPDefSessionAuthenticationKeyLength
)[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 key value. Local copy is made.
const TDesC8 & aMKIThe master key identifier value. Local copy is made.
TUint aN_E =  KSRTPDefSessionEncryptionKeyLength The bit length of the encryption key
TUint aN_A =  KSRTPDefSessionAuthenticationKeyLength The bit length of the authentication key

Valid()

IMPORT_C TBoolValid()const

operator=(const CSRTPMasterKey &)

const CSRTPMasterKey &operator=(const CSRTPMasterKey &aKey)[private]

Parameters

const CSRTPMasterKey & aKey

Member Data Documentation

HBufC8 * iKey

HBufC8 *iKey[private]

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

HBufC8 * iMKI

HBufC8 *iMKI[private]

The master key identifier value

TUint iN_A

TUint iN_A[private]

The bit length of the authentication key

TUint iN_E

TUint iN_E[private]

The bit length of the encryption key