sigtail.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     begin       : Sun Nov 30 2008
00003     copyright   : (C) 2008 by Martin Preuss
00004     email       : martin@libchipcard.de
00005 
00006  ***************************************************************************
00007  *          Please see toplevel file COPYING for license details           *
00008  ***************************************************************************/
00009 
00010 
00011 #ifndef GWEN_CRYPTMGR_SIGTAIL_H
00012 #define GWEN_CRYPTMGR_SIGTAIL_H
00013 
00014 #include <gwenhywfar/gwentime.h>
00015 #include <gwenhywfar/buffer.h>
00016 #include <gwenhywfar/list1.h>
00017 
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00023 
00024 typedef struct GWEN_SIGTAIL GWEN_SIGTAIL;
00025 GWEN_LIST_FUNCTION_LIB_DEFS(GWEN_SIGTAIL, GWEN_SigTail, GWENHYWFAR_API)
00026 
00027 
00028 GWEN_SIGTAIL *GWEN_SigTail_new();
00029 void GWEN_SigTail_free(GWEN_SIGTAIL *st);
00030 
00031 GWEN_SIGTAIL *GWEN_SigTail_fromBuffer(const uint8_t *p, uint32_t l);
00032 int GWEN_SigTail_toBuffer(const GWEN_SIGTAIL *st, GWEN_BUFFER *buf, uint8_t tagType);
00033 
00034 const uint8_t *GWEN_SigTail_GetSignaturePtr(const GWEN_SIGTAIL *st);
00035 uint32_t GWEN_SigTail_GetSignatureLen(const GWEN_SIGTAIL *st);
00036 void GWEN_SigTail_SetSignature(GWEN_SIGTAIL *st, const uint8_t *p, uint32_t l);
00037 
00038 
00039 int GWEN_SigTail_GetSignatureNumber(const GWEN_SIGTAIL *st);
00040 void GWEN_SigTail_SetSignatureNumber(GWEN_SIGTAIL *st, int i);
00041 
00042 
00043 #ifdef __cplusplus
00044 }
00045 #endif
00046 
00047 
00048 #endif
00049 
Generated on Mon Jul 5 22:52:48 2010 for gwenhywfar by  doxygen 1.6.3