gwenhywfar  5.14.1
Macros | Functions
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 <gwenhywfar/portable_endian.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "tag16-t.c"
Include dependency graph for tag16.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

static void _writeTagToBuffer (unsigned int tagType, const uint8_t *p, int size, GWEN_BUFFER *buf)
 
void GWEN_Tag16_DirectlyToBuffer (unsigned int tagType, const char *p, int size, GWEN_BUFFER *buf)
 
int GWEN_Tag16_EndTagInBuffer (int startPos, GWEN_BUFFER *buf)
 
void GWEN_Tag16_free (GWEN_TAG16 *tag)
 
GWEN_TAG16GWEN_Tag16_fromBuffer (GWEN_BUFFER *mbuf, GWEN_UNUSED int isBerTlv)
 
GWEN_TAG16GWEN_Tag16_fromBuffer2 (const uint8_t *bufferPtr, uint32_t bufferLen, int doCopy)
 
const void * GWEN_Tag16_GetTagData (const GWEN_TAG16 *tag)
 
double GWEN_Tag16_GetTagDataAsDouble (const GWEN_TAG16 *tag, double defaultValue)
 
char * GWEN_Tag16_GetTagDataAsNewString (const GWEN_TAG16 *tag, const char *defaultValue)
 
uint16_t GWEN_Tag16_GetTagDataAsUint16 (const GWEN_TAG16 *tag, uint16_t defaultValue)
 
uint32_t GWEN_Tag16_GetTagDataAsUint32 (const GWEN_TAG16 *tag, uint32_t defaultValue)
 
uint64_t GWEN_Tag16_GetTagDataAsUint64 (const GWEN_TAG16 *tag, uint64_t defaultValue)
 
uint8_t GWEN_Tag16_GetTagDataAsUint8 (const GWEN_TAG16 *tag, uint8_t defaultValue)
 
unsigned int GWEN_Tag16_GetTagLength (const GWEN_TAG16 *tag)
 
unsigned int GWEN_Tag16_GetTagSize (const GWEN_TAG16 *tag)
 
unsigned int GWEN_Tag16_GetTagType (const GWEN_TAG16 *tag)
 
const GWEN_TAG16GWEN_Tag16_List_FindFirstByTagType (const GWEN_TAG16_LIST *tagList, unsigned int tagType)
 
const GWEN_TAG16GWEN_Tag16_List_FindNextByTagType (const GWEN_TAG16 *tag, unsigned int tagType)
 
GWEN_TAG16_LISTGWEN_Tag16_List_fromBuffer (const uint8_t *p, uint32_t l, int doCopy)
 
GWEN_TAG16GWEN_Tag16_new (void)
 
GWEN_TAG16GWEN_Tag16_newCopy (unsigned int tagType, unsigned int tagLength, const uint8_t *tagData)
 
GWEN_TAG16GWEN_Tag16_newNoCopy (unsigned int tagType, unsigned int tagLength, const uint8_t *tagData)
 
int GWEN_Tag16_StartTagInBuffer (unsigned int tagType, GWEN_BUFFER *buf)
 
void GWEN_Tag16_WriteDoubleTagToBuffer (unsigned int tagType, double data, GWEN_BUFFER *buf)
 
void GWEN_Tag16_WriteStringTagToBuffer (unsigned int tagType, const char *s, GWEN_BUFFER *buf)
 
void GWEN_Tag16_WriteTagToBuffer (unsigned int tagType, const uint8_t *s, int size, GWEN_BUFFER *buf)
 
void GWEN_Tag16_WriteUint16TagToBuffer (unsigned int tagType, uint16_t data, GWEN_BUFFER *buf)
 
void GWEN_Tag16_WriteUint32TagToBuffer (unsigned int tagType, uint32_t data, GWEN_BUFFER *buf)
 
void GWEN_Tag16_WriteUint64TagToBuffer (unsigned int tagType, uint64_t data, GWEN_BUFFER *buf)
 
void GWEN_Tag16_WriteUint8TagToBuffer (unsigned int tagType, uint8_t data, GWEN_BUFFER *buf)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 14 of file tag16.c.

Function Documentation

◆ _writeTagToBuffer()

void _writeTagToBuffer ( unsigned int  tagType,
const uint8_t *  p,
int  size,
GWEN_BUFFER buf 
)
static

◆ GWEN_Tag16_fromBuffer()

GWEN_TAG16* GWEN_Tag16_fromBuffer ( GWEN_BUFFER mbuf,
GWEN_UNUSED int  isBerTlv 
)

Definition at line 143 of file tag16.c.

References GWEN_Buffer_GetPosPointer(), GWEN_Buffer_GetUsedBytes(), GWEN_Buffer_IncrementPos(), and GWEN_Tag16_fromBuffer2().

Referenced by GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), and GWEN_Crypt_TokenOHBCI_Read().

Here is the call graph for this function:
Here is the caller graph for this function: