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

#include <MIKEY.hh>

Public Member Functions

virtual ~MIKEYState ()
 
u_int8_t * generateMessage (unsigned &messageSize) const
 
void setROC (u_int32_t roc)
 
Boolean encryptSRTP () const
 
Boolean encryptSRTCP () const
 
u_int8_t const * keyData () const
 
u_int32_t MKI () const
 
u_int32_t initialROC () const
 
Boolean useAuthentication () const
 

Static Public Member Functions

static MIKEYStatecreateNew (Boolean useEncryption=True)
 
static MIKEYStatecreateNew (u_int8_t const *messageToParse, unsigned messageSize)
 

Protected Member Functions

 MIKEYState (Boolean useEncryption)
 
 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
 
u_int32_t fInitialROC
 
Boolean fUseAuthentication
 
class MIKEYPayload * fHeaderPayload
 
class MIKEYPayload * fTailPayload
 
unsigned fTotalPayloadByteCount
 

Detailed Description

Definition at line 31 of file MIKEY.hh.

Constructor & Destructor Documentation

◆ ~MIKEYState()

virtual MIKEYState::~MIKEYState ( )
virtual

◆ MIKEYState() [1/2]

MIKEYState::MIKEYState ( Boolean  useEncryption)
protected

◆ MIKEYState() [2/2]

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

Member Function Documentation

◆ addNewPayload()

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

◆ createNew() [1/2]

static MIKEYState * MIKEYState::createNew ( Boolean  useEncryption = True)
static

◆ createNew() [2/2]

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

◆ encryptSRTCP()

Boolean MIKEYState::encryptSRTCP ( ) const
inline

Definition at line 49 of file MIKEY.hh.

49{ return fEncryptSRTCP; }
Boolean fEncryptSRTCP
Definition: MIKEY.hh:70

References fEncryptSRTCP.

Referenced by SRTPCryptographicContext::weEncryptSRTCP().

◆ encryptSRTP()

Boolean MIKEYState::encryptSRTP ( ) const
inline

Definition at line 48 of file MIKEY.hh.

48{ return fEncryptSRTP; }
Boolean fEncryptSRTP
Definition: MIKEY.hh:69

References fEncryptSRTP.

Referenced by SRTPCryptographicContext::weEncryptSRTP().

◆ generateMessage()

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

◆ initialROC()

u_int32_t MIKEYState::initialROC ( ) const
inline

Definition at line 52 of file MIKEY.hh.

52{ return fInitialROC; }
u_int32_t fInitialROC
Definition: MIKEY.hh:73

References fInitialROC.

◆ keyData()

u_int8_t const * MIKEYState::keyData ( ) const
inline

Definition at line 50 of file MIKEY.hh.

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

References fKeyData.

Referenced by SRTPCryptographicContext::masterKeyPlusSalt().

◆ MKI()

u_int32_t MIKEYState::MKI ( ) const
inline

Definition at line 51 of file MIKEY.hh.

51{ return fMKI; }
u_int32_t fMKI
Definition: MIKEY.hh:72

References fMKI.

Referenced by SRTPCryptographicContext::MKI().

◆ parseHDRPayload()

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

◆ parseNonHDRPayload()

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

◆ setROC()

void MIKEYState::setROC ( u_int32_t  roc)

◆ useAuthentication()

Boolean MIKEYState::useAuthentication ( ) const
inline

Definition at line 53 of file MIKEY.hh.

53{ return fUseAuthentication; }
Boolean fUseAuthentication
Definition: MIKEY.hh:74

References fUseAuthentication.

Referenced by SRTPCryptographicContext::weAuthenticate().

Field Documentation

◆ fEncryptSRTCP

Boolean MIKEYState::fEncryptSRTCP
private

Definition at line 70 of file MIKEY.hh.

Referenced by encryptSRTCP().

◆ fEncryptSRTP

Boolean MIKEYState::fEncryptSRTP
private

Definition at line 69 of file MIKEY.hh.

Referenced by encryptSRTP().

◆ fHeaderPayload

class MIKEYPayload* MIKEYState::fHeaderPayload
private

Definition at line 77 of file MIKEY.hh.

◆ fInitialROC

u_int32_t MIKEYState::fInitialROC
private

Definition at line 73 of file MIKEY.hh.

Referenced by initialROC().

◆ fKeyData

u_int8_t MIKEYState::fKeyData[16+14]
private

Definition at line 71 of file MIKEY.hh.

Referenced by keyData().

◆ fMKI

u_int32_t MIKEYState::fMKI
private

Definition at line 72 of file MIKEY.hh.

Referenced by MKI().

◆ fTailPayload

class MIKEYPayload* MIKEYState::fTailPayload
private

Definition at line 78 of file MIKEY.hh.

◆ fTotalPayloadByteCount

unsigned MIKEYState::fTotalPayloadByteCount
private

Definition at line 79 of file MIKEY.hh.

◆ fUseAuthentication

Boolean MIKEYState::fUseAuthentication
private

Definition at line 74 of file MIKEY.hh.

Referenced by useAuthentication().


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