CSRTPCryptoContext Class Reference

class CSRTPCryptoContext : public CBase

Contains a cryptographic context.

Inherits from

Public Member Functions
~CSRTPCryptoContext ()
void AddCryptoChangeObserver ( 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 &)
void RemoveCryptoChangeObserver ( CSRTPCryptoHandler *)
IMPORT_C void SetMasterKey (const CSRTPMasterKey *)
IMPORT_C void SetMasterSalt (const CSRTPMasterSalt *)
IMPORT_C void SetRCCm3Sync ( TBool )
IMPORT_C TBool Valid ()
Protected Member Functions
void UpdateCryptoParams (const TSrtpCryptoParams &)
Private Member Functions
CSRTPCryptoContext (const TSrtpCryptoParams &)
void ConstructL (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 TInt iObserverOffset
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 *)

void AddCryptoChangeObserver ( CSRTPCryptoHandler * aObserver )

Parameters

CSRTPCryptoHandler * aObserver

ConstructL(const CSRTPMasterKey *, const CSRTPMasterSalt *)

void ConstructL ( 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 * aKey The master key.
const CSRTPMasterSalt * aSalt The 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 * aKey The master key.
const CSRTPMasterSalt * aSalt The master salt.
const TSrtpCryptoParams & aCryptoParams

RemoveCryptoChangeObserver(CSRTPCryptoHandler *)

void RemoveCryptoChangeObserver ( CSRTPCryptoHandler * aObserver )

Parameters

CSRTPCryptoHandler * aObserver

SetMasterKey(const CSRTPMasterKey *)

IMPORT_C void SetMasterKey ( const CSRTPMasterKey * aKey )

Parameters

const CSRTPMasterKey * aKey

SetMasterSalt(const CSRTPMasterSalt *)

IMPORT_C void SetMasterSalt ( const CSRTPMasterSalt * aSalt )

Parameters

const CSRTPMasterSalt * aSalt

SetRCCm3Sync(TBool)

IMPORT_C void SetRCCm3Sync ( TBool aSync )

Parameters

TBool aSync

UpdateCryptoParams(const TSrtpCryptoParams &)

void UpdateCryptoParams ( const TSrtpCryptoParams & aCryptoParams ) [protected]

Parameters

const TSrtpCryptoParams & aCryptoParams

Valid()

IMPORT_C TBool Valid ( ) 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]

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 TInt iObserverOffset [private, static]

const CSRTPMasterSalt * iSalt

const CSRTPMasterSalt * iSalt [private]