CSRTPCryptoContext Class Reference

class CSRTPCryptoContext : public CBase

Contains a cryptographic context.

Inherits from

Public Member Functions
~CSRTPCryptoContext()
voidAddCryptoChangeObserver(CSRTPCryptoHandler *)
IMPORT_C const TSrtpCryptoParams &CryptoParams()
TBool IsEqual(const CSRTPCryptoContext &)
IMPORT_C const CSRTPMasterKey &MasterKey()
IMPORT_C const CSRTPMasterSalt &MasterSalt()
IMPORT_C CSRTPCryptoContext *NewL(const CSRTPMasterKey *, const CSRTPMasterSalt *, const TSrtpCryptoParams &)
IMPORT_C CSRTPCryptoContext *NewLC(const CSRTPMasterKey *, const CSRTPMasterSalt *, const TSrtpCryptoParams &)
voidRemoveCryptoChangeObserver(CSRTPCryptoHandler *)
IMPORT_C voidSetMasterKey(const CSRTPMasterKey *)
IMPORT_C voidSetMasterSalt(const CSRTPMasterSalt *)
IMPORT_C voidSetRCCm3Sync(TBool)
IMPORT_C TBoolValid()
Protected Member Functions
voidUpdateCryptoParams(const TSrtpCryptoParams &)
Private Member Functions
CSRTPCryptoContext(const TSrtpCryptoParams &)
voidConstructL(const CSRTPMasterKey *, const CSRTPMasterSalt *)
TBool FindHandler(CSRTPCryptoHandler *)
const CSRTPCryptoContext &operator=(const CSRTPCryptoContext &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
TSrtpCryptoParams iCryptoParams
TSglQueIter< CSRTPCryptoHandler >iHandlerIter
TSglQue< CSRTPCryptoHandler >iHandlerList
const CSRTPMasterKey *iKey
const TIntiObserverOffset
const CSRTPMasterSalt *iSalt

Constructor & Destructor Documentation

CSRTPCryptoContext(const TSrtpCryptoParams &)

CSRTPCryptoContext(const TSrtpCryptoParams &aCryptoParams)[private]

Parameters

const TSrtpCryptoParams & aCryptoParams

~CSRTPCryptoContext()

~CSRTPCryptoContext()

Destructor

Member Functions Documentation

AddCryptoChangeObserver(CSRTPCryptoHandler *)

voidAddCryptoChangeObserver(CSRTPCryptoHandler *aObserver)

Parameters

CSRTPCryptoHandler * aObserver

ConstructL(const CSRTPMasterKey *, const CSRTPMasterSalt *)

voidConstructL(const CSRTPMasterKey *aKey,
const CSRTPMasterSalt *aSalt
)[private]

Parameters

const CSRTPMasterKey * aKey
const CSRTPMasterSalt * aSalt

CryptoParams()

IMPORT_C const TSrtpCryptoParams &CryptoParams()

FindHandler(CSRTPCryptoHandler *)

TBool FindHandler(CSRTPCryptoHandler *aObserver)[private]

Parameters

CSRTPCryptoHandler * aObserver

IsEqual(const CSRTPCryptoContext &)

TBool IsEqual(const CSRTPCryptoContext &aContext)

Parameters

const CSRTPCryptoContext & aContext

MasterKey()

IMPORT_C const CSRTPMasterKey &MasterKey()const

MasterSalt()

IMPORT_C const CSRTPMasterSalt &MasterSalt()const

NewL(const CSRTPMasterKey *, const CSRTPMasterSalt *, const TSrtpCryptoParams &)

IMPORT_C CSRTPCryptoContext *NewL(const CSRTPMasterKey *aKey,
const CSRTPMasterSalt *aSalt,
const TSrtpCryptoParams &aCryptoParams
)[static]
Use this function if the stream will use the SRTP session's default cryptographic context. CSrtpSession take the ownership of CSRTPCryptoContext if CSrtpSession is created with CSRTPCryptoContext as input parameter.
leave
KErrNone if success, system-wide error code otherwise

Parameters

const CSRTPMasterKey * aKeyThe master key.
const CSRTPMasterSalt * aSaltThe master salt.
const TSrtpCryptoParams & aCryptoParams

NewLC(const CSRTPMasterKey *, const CSRTPMasterSalt *, const TSrtpCryptoParams &)

IMPORT_C CSRTPCryptoContext *NewLC(const CSRTPMasterKey *aKey,
const CSRTPMasterSalt *aSalt,
const TSrtpCryptoParams &aCryptoParams
)[static]
Use this function if the stream will use the SRTP session's default cryptographic context.
leave
KErrNone if success, system-wide error code otherwise

Parameters

const CSRTPMasterKey * aKeyThe master key.
const CSRTPMasterSalt * aSaltThe master salt.
const TSrtpCryptoParams & aCryptoParams

RemoveCryptoChangeObserver(CSRTPCryptoHandler *)

voidRemoveCryptoChangeObserver(CSRTPCryptoHandler *aObserver)

Parameters

CSRTPCryptoHandler * aObserver

SetMasterKey(const CSRTPMasterKey *)

IMPORT_C voidSetMasterKey(const CSRTPMasterKey *aKey)

Parameters

const CSRTPMasterKey * aKey

SetMasterSalt(const CSRTPMasterSalt *)

IMPORT_C voidSetMasterSalt(const CSRTPMasterSalt *aSalt)

Parameters

const CSRTPMasterSalt * aSalt

SetRCCm3Sync(TBool)

IMPORT_C voidSetRCCm3Sync(TBoolaSync)

Parameters

TBool aSync

UpdateCryptoParams(const TSrtpCryptoParams &)

voidUpdateCryptoParams(const TSrtpCryptoParams &aCryptoParams)[protected]

Parameters

const TSrtpCryptoParams & aCryptoParams

Valid()

IMPORT_C TBoolValid()const

operator=(const CSRTPCryptoContext &)

const CSRTPCryptoContext &operator=(const CSRTPCryptoContext &aContext)[private]

Parameters

const CSRTPCryptoContext & aContext

Member Data Documentation

TSrtpCryptoParams iCryptoParams

TSrtpCryptoParams iCryptoParams[private]

TSglQueIter< CSRTPCryptoHandler > iHandlerIter

TSglQueIter< CSRTPCryptoHandler >iHandlerIter[private]

CSRTPCryptoHandler iterator. Owned by CSRTPCryptoContext object.

TSglQue< CSRTPCryptoHandler > iHandlerList

TSglQue< CSRTPCryptoHandler >iHandlerList[private]

list of CSRTPCryptoHandler objects owned by CSRTPCryptoContext object.

const CSRTPMasterKey * iKey

const CSRTPMasterKey *iKey[private]

const TInt iObserverOffset

const TIntiObserverOffset[private, static]

const CSRTPMasterSalt * iSalt

const CSRTPMasterSalt *iSalt[private]