The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CryptFrame class

Class for encrypting FrameSets. More...

Collaboration diagram for CryptFrame class:

Functions

FSTATIC gboolean _cryptframe_default_isvalid (const Frame *self,gconstpointer tlvptr,gconstpointer pktend)
 CryptFrame class 'isvalid' member function (checks for valid cryptframe objects) More...
 
CryptFramecryptframe_new (guint16 frame_type, guint16 encryption_method, void *keyinfo)
 Construct a new CryptFrame This can only be used directly for creating CryptFrame frames. More...
 
WINEXPORT Framecryptframe_tlvconstructor (gconstpointer tlvstart, gconstpointer pktend, gpointer *ignorednewpkt, gpointer *ignoredpktend)
 Given marshalled packet data corresponding to an CryptFrame (C-style string), return the corresponding Frame In other words, un-marshall the data... More...
 
typedef struct _CryptFrame CryptFrame
 

Detailed Description

Class for encrypting FrameSets.

Typedef Documentation

typedef struct _CryptFrame CryptFrame

Definition at line 31 of file cryptframe.h.

Function Documentation

FSTATIC gboolean _cryptframe_default_isvalid ( const Frame self,
gconstpointer  tlvptr,
gconstpointer  pktend 
)

CryptFrame class 'isvalid' member function (checks for valid cryptframe objects)

Todo:
: Not yet implemented
Parameters
[in]selfCryptFrame object ('this')
[in]tlvptrPointer to the TLV for this CryptFrame
[in]pktendPointer to one byte past the end of the packet

Definition at line 42 of file cryptframe.c.

References CASTTOCONSTCLASS, _CryptFrame::encryption_method, and get_generic_tlv_len().

Referenced by cryptframe_new().

Here is the call graph for this function:

Here is the caller graph for this function:

CryptFrame* cryptframe_new ( guint16  frame_type,
guint16  encryption_method,
void *  keyinfo 
)

Construct a new CryptFrame This can only be used directly for creating CryptFrame frames.

Parameters
[in]frame_typeTLV type of CryptFrame
[in]encryption_methodEncryption method
[in]keyinfosize of frame structure (or zero for sizeof(CryptFrame))

Definition at line 67 of file cryptframe.c.

References _cryptframe_default_isvalid(), CASTTOCLASS, _CryptFrame::encryption_key_info, _CryptFrame::encryption_method, frame_new(), _Frame::isvalid, and proj_class_register_subclassed().

Referenced by cryptframe_tlvconstructor().

Here is the call graph for this function:

Here is the caller graph for this function:

WINEXPORT Frame* cryptframe_tlvconstructor ( gconstpointer  tlvstart,
gconstpointer  pktend,
gpointer *  ignorednewpkt,
gpointer *  ignoredpktend 
)

Given marshalled packet data corresponding to an CryptFrame (C-style string), return the corresponding Frame In other words, un-marshall the data...

Todo:
: Not yet implemented
Todo:
: Not yet implemented
Parameters
[in]tlvstartStart of marshalled CStringFrame data
[in]pktendPointer to first invalid byte past 'tlvstart'
ignorednewpkt[ignored] replacement packet
ignoredpktend[ignored] end of replacement packet

Definition at line 88 of file cryptframe.c.

References _CryptFrame::baseclass, CASTTOCLASS, cryptframe_new(), get_generic_tlv_len(), get_generic_tlv_type(), get_generic_tlv_value(), and _Frame::length.

Here is the call graph for this function: