CSRTPPacketRTP Class Reference

class CSRTPPacketRTP : public CSRTPPacket

Contains general RTP-specific packet routines

Inherits from

Public Member Functions
TPtrC8 AuthenticationTag ()
void CountSenderPacketIndex ()
HBufC8 * CreateDecryptedPacketL ( TUint8 *)
HBufC8 * CreateEncryptedPacketL ( TUint8 *)
TUint32 GetSenderROC ()
TPtrC8 MasterKeyIdentifier ()
CSRTPPacketRTP * NewL (const TDesC8 &, CSRTPCryptoHandler &)
TUint64 PacketIndex ()
TUint16 SequenceNumber ()
void SetPacketIndex ( TUint64 )
void UpdateHeaderLengthL ()
Protected Member Functions
CSRTPPacketRTP (const TDesC8 &, CSRTPCryptoHandler &)
~CSRTPPacketRTP ()
void ConstructL ()
TBool TagWithROCLengthL ()
void UpdatePayloadLength ()
Private Member Functions
TUint CountDecryptedPacketSize ()
TUint CountEncryptedPacketSizeL ()
void UpdateSequenceNumber ()
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()
CSRTPPacket::CSRTPPacket(const TDesC8 &,CSRTPCryptoHandler &)
CSRTPPacket::CopyHeaderAndPayloadL(TUint,TUint8 *)
CSRTPPacket::GetSequenceNumber()
CSRTPPacket::Get_Concatenated_MDataL(TBool)
CSRTPPacket::HeaderAndPayload()
CSRTPPacket::HeaderLength()
CSRTPPacket::Payload()
CSRTPPacket::PayloadLength()
CSRTPPacket::UpdatePayload()
CSRTPPacket::UpdatePayloadLengthL()
CSRTPPacket::~CSRTPPacket()
Private Attributes
TUint64 iPacketIndex
TUint32 iSenderROC
TUint16 iSequenceNumber
Inherited Attributes
CSRTPPacket::iDataP
CSRTPPacket::iHandler
CSRTPPacket::iHeaderLength
CSRTPPacket::iPacket
CSRTPPacket::iPayload
CSRTPPacket::iPayloadLength

Constructor & Destructor Documentation

CSRTPPacketRTP(const TDesC8 &, CSRTPCryptoHandler &)

CSRTPPacketRTP ( const TDesC8 & aPacket,
CSRTPCryptoHandler & aHandler
) [protected]

Parameters

const TDesC8 & aPacket
CSRTPCryptoHandler & aHandler

~CSRTPPacketRTP()

~CSRTPPacketRTP ( ) [protected]

Member Functions Documentation

AuthenticationTag()

TPtrC8 AuthenticationTag ( ) [virtual]

virtual function for getting the authentication tag implemented in CSRTPPacketSRTP .

ConstructL()

void ConstructL ( ) [protected]

CountDecryptedPacketSize()

TUint CountDecryptedPacketSize ( ) [private]

Count size of the decrypted packet

CountEncryptedPacketSizeL()

TUint CountEncryptedPacketSizeL ( ) [private]

Count size of the encrypted packet

CountSenderPacketIndex()

void CountSenderPacketIndex ( ) [virtual]

Count sender packet index.

CreateDecryptedPacketL(TUint8 *)

HBufC8 * CreateDecryptedPacketL ( TUint8 * aDecryptedPayloadPtr ) [virtual]
virtual function for creating decrypted packet.
leave
KErrNone if success, system-wide error code otherwise

Parameters

TUint8 * aDecryptedPayloadPtr decrypted payload to be copied

CreateEncryptedPacketL(TUint8 *)

HBufC8 * CreateEncryptedPacketL ( TUint8 * aEncryptedPayloadPtr ) [virtual]
Create encrypted packet.
leave
KErrNone if success, system-wide error code otherwise

Parameters

TUint8 * aEncryptedPayloadPtr encrypted payload to be copied

GetSenderROC()

TUint32 GetSenderROC ( ) [virtual]

Get Sender Roll-Over Counter from RTP/SRTP packets defined by RCC mode

MasterKeyIdentifier()

TPtrC8 MasterKeyIdentifier ( ) [virtual]

virtual function for getting the master key identifier implemented in CSRTPPacketSRTP .

NewL(const TDesC8 &, CSRTPCryptoHandler &)

CSRTPPacketRTP * NewL ( const TDesC8 & aPacket,
CSRTPCryptoHandler & aHandler
) [static]

Parameters

const TDesC8 & aPacket
CSRTPCryptoHandler & aHandler

PacketIndex()

TUint64 PacketIndex ( ) [virtual]

Get packet index.

SequenceNumber()

TUint16 SequenceNumber ( ) [virtual]

Get sequence number.

SetPacketIndex(TUint64)

void SetPacketIndex ( TUint64 aPacketIndex ) [virtual]

Set packet index.

Parameters

TUint64 aPacketIndex new packet index

TagWithROCLengthL()

TBool TagWithROCLengthL ( ) [protected]

UpdateHeaderLengthL()

void UpdateHeaderLengthL ( )

UpdatePayloadLength()

void UpdatePayloadLength ( ) [protected]

Update payload length information

UpdateSequenceNumber()

void UpdateSequenceNumber ( ) [private]

Read sequence number and update class member

Member Data Documentation

TUint64 iPacketIndex

TUint64 iPacketIndex [private]

TUint32 iSenderROC

TUint32 iSenderROC [private]

TUint16 iSequenceNumber

TUint16 iSequenceNumber [private]