CSRTPPacketRTP Class Reference

class CSRTPPacketRTP : public CSRTPPacket

Contains general RTP-specific packet routines

Inherits from

Public Member Functions
TPtrC8 AuthenticationTag()
voidCountSenderPacketIndex()
HBufC8 *CreateDecryptedPacketL(TUint8 *)
HBufC8 *CreateEncryptedPacketL(TUint8 *)
TUint32 GetSenderROC()
TPtrC8 MasterKeyIdentifier()
CSRTPPacketRTP *NewL(const TDesC8 &, CSRTPCryptoHandler &)
TUint64 PacketIndex()
TUint16 SequenceNumber()
voidSetPacketIndex(TUint64)
voidUpdateHeaderLengthL()
Protected Member Functions
CSRTPPacketRTP(const TDesC8 &, CSRTPCryptoHandler &)
~CSRTPPacketRTP()
voidConstructL()
TBool TagWithROCLengthL()
voidUpdatePayloadLength()
Private Member Functions
TUint CountDecryptedPacketSize()
TUint CountEncryptedPacketSizeL()
voidUpdateSequenceNumber()
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()

voidConstructL()[protected]

CountDecryptedPacketSize()

TUint CountDecryptedPacketSize()[private]

Count size of the decrypted packet

CountEncryptedPacketSizeL()

TUint CountEncryptedPacketSizeL()[private]

Count size of the encrypted packet

CountSenderPacketIndex()

voidCountSenderPacketIndex()[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 * aDecryptedPayloadPtrdecrypted 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 * aEncryptedPayloadPtrencrypted 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)

voidSetPacketIndex(TUint64aPacketIndex)[virtual]

Set packet index.

Parameters

TUint64 aPacketIndexnew packet index

TagWithROCLengthL()

TBool TagWithROCLengthL()[protected]

UpdateHeaderLengthL()

voidUpdateHeaderLengthL()

UpdatePayloadLength()

voidUpdatePayloadLength()[protected]

Update payload length information

UpdateSequenceNumber()

voidUpdateSequenceNumber()[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]