The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
signframe.c File Reference

Implements the SignFrame class class - A frame implementing basic Glib digital signatures. More...

#include <string.h>
#include <projectcommon.h>
#include <frameset.h>
#include <signframe.h>
#include <frametypes.h>
#include <generic_tlv_min.h>
#include <tlvhelper.h>
Include dependency graph for signframe.c:

Go to the source code of this file.


FSTATIC gboolean _signframe_isvalid (const Frame *self,gconstpointer tlvptr,gconstpointer pktend)
 SignFrame class 'isvalid' member function - verifies the digital signature. More...
FSTATIC void _signframe_updatedata (Frame *fself,gpointer tlvptr,gconstpointer pktend,FrameSet *fs)
 Write/update digital signature in packet. More...
FSTATIC gpointer _signframe_compute_cksum (GChecksumType cksumtype,gconstpointer tlvptr,gconstpointer pktend)
 Internal helper routine for computing checksum on data in a frame. More...
SignFramesignframe_new (GChecksumType sigtype, gsize framesize)
 Construct a new SignFrame - allowing for "derived" frame types... More...
Framesignframe_tlvconstructor (gconstpointer tlvstart, gconstpointer pktend, gpointer *ignorednewpkt, gpointer *ignoredpktend)
 Given marshalled data corresponding to a SignFrame (signature frame), return that corresponding Frame In other words, un-marshall the data... More...

Detailed Description

Implements the SignFrame class class - A frame implementing basic Glib digital signatures.

SignFrames are We validate the signature method, the size of the digital signature, and that the data in following the signature block has the signature that's found in the signature block. This class implements simple checksum digital signatures.

This file is part of the Assimilation Project.

Copyright © 2011, 2012 - Alan Robertson
The Assimilation software is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see

Definition in file signframe.c.