live
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
MIKEYState Class Reference

#include <MIKEY.hh>

Public Member Functions

 MIKEYState (Boolean useEncryption=True)
 
virtual ~MIKEYState ()
 
u_int8_t * generateMessage (unsigned &messageSize) const
 
Boolean encryptSRTP () const
 
Boolean encryptSRTCP () const
 
u_int8_t const * keyData () const
 
u_int32_t MKI () const
 
Boolean useAuthentication () const
 

Static Public Member Functions

static MIKEYStatecreateNew (u_int8_t const *messageToParse, unsigned messageSize)
 

Private Member Functions

 MIKEYState (u_int8_t const *messageToParse, unsigned messageSize, Boolean &parsedOK)
 
void addNewPayload (class MIKEYPayload *newPayload)
 
Boolean parseHDRPayload (u_int8_t const *&ptr, u_int8_t const *endPtr, u_int8_t &nextPayloadType)
 
Boolean parseNonHDRPayload (u_int8_t const *&ptr, u_int8_t const *endPtr, u_int8_t &nextPayloadType)
 

Private Attributes

Boolean fEncryptSRTP
 
Boolean fEncryptSRTCP
 
u_int8_t fKeyData [16+14]
 
u_int32_t fMKI
 
Boolean fUseAuthentication
 
class MIKEYPayload * fHeaderPayload
 
class MIKEYPayload * fTailPayload
 
unsigned fTotalPayloadByteCount
 

Detailed Description

Definition at line 31 of file MIKEY.hh.

Constructor & Destructor Documentation

◆ MIKEYState() [1/2]

MIKEYState::MIKEYState ( Boolean  useEncryption = True)

◆ ~MIKEYState()

virtual MIKEYState::~MIKEYState ( )
virtual

◆ MIKEYState() [2/2]

MIKEYState::MIKEYState ( u_int8_t const *  messageToParse,
unsigned  messageSize,
Boolean parsedOK 
)
private

Member Function Documentation

◆ addNewPayload()

void MIKEYState::addNewPayload ( class MIKEYPayload *  newPayload)
private

◆ createNew()

static MIKEYState * MIKEYState::createNew ( u_int8_t const *  messageToParse,
unsigned  messageSize 
)
static

◆ encryptSRTCP()

Boolean MIKEYState::encryptSRTCP ( ) const
inline

Definition at line 46 of file MIKEY.hh.

46{ return fEncryptSRTCP; }
Boolean fEncryptSRTCP
Definition: MIKEY.hh:64

References fEncryptSRTCP.

Referenced by SRTPCryptographicContext::weEncryptSRTCP().

◆ encryptSRTP()

Boolean MIKEYState::encryptSRTP ( ) const
inline

Definition at line 45 of file MIKEY.hh.

45{ return fEncryptSRTP; }
Boolean fEncryptSRTP
Definition: MIKEY.hh:63

References fEncryptSRTP.

Referenced by SRTPCryptographicContext::weEncryptSRTP().

◆ generateMessage()

u_int8_t * MIKEYState::generateMessage ( unsigned &  messageSize) const

◆ keyData()

u_int8_t const * MIKEYState::keyData ( ) const
inline

Definition at line 47 of file MIKEY.hh.

47{ return fKeyData; }
u_int8_t fKeyData[16+14]
Definition: MIKEY.hh:65

References fKeyData.

Referenced by SRTPCryptographicContext::masterKeyPlusSalt().

◆ MKI()

u_int32_t MIKEYState::MKI ( ) const
inline

Definition at line 48 of file MIKEY.hh.

48{ return fMKI; }
u_int32_t fMKI
Definition: MIKEY.hh:66

References fMKI.

Referenced by SRTPCryptographicContext::MKI().

◆ parseHDRPayload()

Boolean MIKEYState::parseHDRPayload ( u_int8_t const *&  ptr,
u_int8_t const *  endPtr,
u_int8_t &  nextPayloadType 
)
private

◆ parseNonHDRPayload()

Boolean MIKEYState::parseNonHDRPayload ( u_int8_t const *&  ptr,
u_int8_t const *  endPtr,
u_int8_t &  nextPayloadType 
)
private

◆ useAuthentication()

Boolean MIKEYState::useAuthentication ( ) const
inline

Definition at line 49 of file MIKEY.hh.

49{ return fUseAuthentication; }
Boolean fUseAuthentication
Definition: MIKEY.hh:67

References fUseAuthentication.

Referenced by SRTPCryptographicContext::weAuthenticate().

Field Documentation

◆ fEncryptSRTCP

Boolean MIKEYState::fEncryptSRTCP
private

Definition at line 64 of file MIKEY.hh.

Referenced by encryptSRTCP().

◆ fEncryptSRTP

Boolean MIKEYState::fEncryptSRTP
private

Definition at line 63 of file MIKEY.hh.

Referenced by encryptSRTP().

◆ fHeaderPayload

class MIKEYPayload* MIKEYState::fHeaderPayload
private

Definition at line 70 of file MIKEY.hh.

◆ fKeyData

u_int8_t MIKEYState::fKeyData[16+14]
private

Definition at line 65 of file MIKEY.hh.

Referenced by keyData().

◆ fMKI

u_int32_t MIKEYState::fMKI
private

Definition at line 66 of file MIKEY.hh.

Referenced by MKI().

◆ fTailPayload

class MIKEYPayload* MIKEYState::fTailPayload
private

Definition at line 71 of file MIKEY.hh.

◆ fTotalPayloadByteCount

unsigned MIKEYState::fTotalPayloadByteCount
private

Definition at line 72 of file MIKEY.hh.

◆ fUseAuthentication

Boolean MIKEYState::fUseAuthentication
private

Definition at line 67 of file MIKEY.hh.

Referenced by useAuthentication().


The documentation for this class was generated from the following file: