tag16.c File Reference

#include "tag16_p.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/text.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
Include dependency graph for tag16.c:

Go to the source code of this file.

Functions

void GWEN_Tag16_DirectlyToBuffer (unsigned int tagType, const char *p, int size, GWEN_BUFFER *buf)
void GWEN_Tag16_free (GWEN_TAG16 *tlv)
GWEN_TAG16GWEN_Tag16_fromBuffer (GWEN_BUFFER *mbuf, int isBerTlv)
GWEN_TAG16GWEN_Tag16_fromBuffer2 (const uint8_t *p, uint32_t l, int doCopy)
const void * GWEN_Tag16_GetTagData (const GWEN_TAG16 *tlv)
unsigned int GWEN_Tag16_GetTagLength (const GWEN_TAG16 *tlv)
unsigned int GWEN_Tag16_GetTagSize (const GWEN_TAG16 *tlv)
unsigned int GWEN_Tag16_GetTagType (const GWEN_TAG16 *tlv)
GWEN_TAG16GWEN_Tag16_new ()

Function Documentation

void GWEN_Tag16_DirectlyToBuffer ( unsigned int  tagType,
const char *  p,
int  size,
GWEN_BUFFER buf 
)

Definition at line 206 of file tag16.c.

References GWEN_Buffer_AppendByte(), and GWEN_Buffer_AppendBytes().

Referenced by GWEN_CryptHead_toBuffer(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgr_Sign(), GWEN_SigHead_toBuffer(), and GWEN_SigTail_toBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

void GWEN_Tag16_free ( GWEN_TAG16 tlv  ) 

Definition at line 43 of file tag16.c.

References GWEN_FREE_OBJECT, and GWEN_LIST_FINI.

Referenced by GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

Here is the caller graph for this function:

GWEN_TAG16* GWEN_Tag16_fromBuffer ( GWEN_BUFFER mbuf,
int  isBerTlv 
)

Definition at line 82 of file tag16.c.

References DBG_ERROR, GWEN_Buffer_GetBytesLeft(), GWEN_Buffer_GetPos(), GWEN_Buffer_GetPosPointer(), GWEN_Buffer_IncrementPos(), and GWEN_Tag16_new().

Here is the call graph for this function:

GWEN_TAG16* GWEN_Tag16_fromBuffer2 ( const uint8_t *  p,
uint32_t  l,
int  doCopy 
)

Definition at line 145 of file tag16.c.

References DBG_ERROR, GWEN_Tag16_new(), and NULL.

Referenced by GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

const void* GWEN_Tag16_GetTagData ( const GWEN_TAG16 tlv  ) 

Definition at line 75 of file tag16.c.

Referenced by GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

Here is the caller graph for this function:

unsigned int GWEN_Tag16_GetTagLength ( const GWEN_TAG16 tlv  ) 

Definition at line 61 of file tag16.c.

Referenced by GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

Here is the caller graph for this function:

unsigned int GWEN_Tag16_GetTagSize ( const GWEN_TAG16 tlv  ) 

Definition at line 68 of file tag16.c.

Referenced by GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

Here is the caller graph for this function:

unsigned int GWEN_Tag16_GetTagType ( const GWEN_TAG16 tlv  ) 

Definition at line 54 of file tag16.c.

Referenced by GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

Here is the caller graph for this function:

GWEN_TAG16* GWEN_Tag16_new (  ) 

Definition at line 32 of file tag16.c.

References GWEN_LIST_INIT, and GWEN_NEW_OBJECT.

Referenced by GWEN_Tag16_fromBuffer(), and GWEN_Tag16_fromBuffer2().

Here is the caller graph for this function:

Generated on Mon Jul 5 22:57:56 2010 for gwenhywfar by  doxygen 1.6.3