|
The Assimilation Monitoring Project
|
Class for encrypting FrameSets. More...
|
Functions | |
| FSTATIC gboolean | _cryptframe_default_isvalid (const Frame *self,gconstpointer tlvptr,gconstpointer pktend) |
| CryptFrame class 'isvalid' member function (checks for valid cryptframe objects) More... | |
| 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. More... | |
| WINEXPORT Frame * | cryptframe_tlvconstructor (gconstpointer tlvstart, gconstpointer pktend) |
| 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 |
Class for encrypting FrameSets.
| typedef struct _CryptFrame CryptFrame |
Definition at line 31 of file cryptframe.h.
| FSTATIC gboolean _cryptframe_default_isvalid | ( | const Frame * | self, |
| gconstpointer | tlvptr, | ||
| gconstpointer | pktend | ||
| ) |
CryptFrame class 'isvalid' member function (checks for valid cryptframe objects)
| [in] | self | CryptFrame object ('this') |
| [in] | tlvptr | Pointer to the TLV for this CryptFrame |
| [in] | pktend | Pointer 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().


| 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.
| [in] | frame_type | TLV type of CryptFrame |
| [in] | encryption_method | Encryption method |
| [in] | keyinfo | size 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().


Given marshalled packet data corresponding to an CryptFrame (C-style string), return the corresponding Frame In other words, un-marshall the data...
| [in] | tlvstart | Start of marshalled CStringFrame data |
| [in] | pktend | Pointer to first invalid byte past 'tlvstart' |
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.
