gwenhywfar 5.14.1
sigtail.c File Reference
#include "sigtail_p.h"
#include "i18n_l.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/tag16.h>
Include dependency graph for sigtail.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG

Functions

void GWEN_SigTail_free (GWEN_SIGTAIL *st)
GWEN_SIGTAILGWEN_SigTail_fromBuffer (const uint8_t *p, uint32_t l)
uint32_t GWEN_SigTail_GetSignatureLen (const GWEN_SIGTAIL *st)
int GWEN_SigTail_GetSignatureNumber (const GWEN_SIGTAIL *st)
const uint8_t * GWEN_SigTail_GetSignaturePtr (const GWEN_SIGTAIL *st)
GWEN_SIGTAILGWEN_SigTail_new (void)
void GWEN_SigTail_SetSignature (GWEN_SIGTAIL *st, const uint8_t *p, uint32_t l)
void GWEN_SigTail_SetSignatureNumber (GWEN_SIGTAIL *st, int i)
int GWEN_SigTail_toBuffer (const GWEN_SIGTAIL *st, GWEN_BUFFER *buf, uint8_t tagType)

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 15 of file sigtail.c.

Function Documentation

◆ GWEN_SigTail_free()

void GWEN_SigTail_free ( GWEN_SIGTAIL * st)

Definition at line 41 of file sigtail.c.

References GWEN_FREE_OBJECT, and GWEN_LIST_FINI.

Referenced by GWEN_CryptMgr_Sign(), GWEN_CryptMgr_Verify(), and GWEN_SigTail_fromBuffer().

Here is the caller graph for this function:

◆ GWEN_SigTail_fromBuffer()

GWEN_SIGTAIL * GWEN_SigTail_fromBuffer ( const uint8_t * p,
uint32_t l )

Definition at line 54 of file sigtail.c.

References DBG_INFO, DBG_WARN, GWEN_LOGDOMAIN, GWEN_SigTail_free(), GWEN_SigTail_new(), GWEN_Tag16_free(), GWEN_Tag16_fromBuffer2(), GWEN_Tag16_GetTagData(), GWEN_Tag16_GetTagLength(), GWEN_Tag16_GetTagSize(), GWEN_Tag16_GetTagType(), and NULL.

Referenced by GWEN_CryptMgr_Verify().

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

◆ GWEN_SigTail_GetSignatureLen()

uint32_t GWEN_SigTail_GetSignatureLen ( const GWEN_SIGTAIL * st)

Definition at line 152 of file sigtail.c.

Referenced by GWEN_CryptMgr_Verify().

Here is the caller graph for this function:

◆ GWEN_SigTail_GetSignatureNumber()

int GWEN_SigTail_GetSignatureNumber ( const GWEN_SIGTAIL * st)

Definition at line 178 of file sigtail.c.

Referenced by GWEN_CryptMgr_Verify().

Here is the caller graph for this function:

◆ GWEN_SigTail_GetSignaturePtr()

const uint8_t * GWEN_SigTail_GetSignaturePtr ( const GWEN_SIGTAIL * st)

Definition at line 144 of file sigtail.c.

Referenced by GWEN_CryptMgr_Verify().

Here is the caller graph for this function:

◆ GWEN_SigTail_new()

GWEN_SIGTAIL * GWEN_SigTail_new ( void )

Definition at line 29 of file sigtail.c.

References GWEN_LIST_INIT, GWEN_NEW_OBJECT, and GWEN_SigTail_new().

Referenced by GWEN_CryptMgr_Sign(), GWEN_SigTail_fromBuffer(), and GWEN_SigTail_new().

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

◆ GWEN_SigTail_SetSignature()

void GWEN_SigTail_SetSignature ( GWEN_SIGTAIL * st,
const uint8_t * p,
uint32_t l )

Definition at line 160 of file sigtail.c.

References NULL.

Referenced by GWEN_CryptMgr_Sign().

Here is the caller graph for this function:

◆ GWEN_SigTail_SetSignatureNumber()

void GWEN_SigTail_SetSignatureNumber ( GWEN_SIGTAIL * st,
int i )

Definition at line 186 of file sigtail.c.

Referenced by GWEN_CryptMgr_Sign().

Here is the caller graph for this function:

◆ GWEN_SigTail_toBuffer()

int GWEN_SigTail_toBuffer ( const GWEN_SIGTAIL * st,
GWEN_BUFFER * buf,
uint8_t tagType )

Definition at line 112 of file sigtail.c.

References GWEN_Buffer_AppendByte(), GWEN_Buffer_GetPos(), GWEN_Buffer_GetStart(), and GWEN_Tag16_DirectlyToBuffer().

Referenced by GWEN_CryptMgr_Sign().

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