gwenhywfar 5.10.1
Macros | Functions
sighead.c File Reference
#include "sighead_p.h"
#include "i18n_l.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/tag16.h>
Include dependency graph for sighead.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

void GWEN_SigHead_free (GWEN_SIGHEAD *sh)
 
GWEN_SIGHEADGWEN_SigHead_fromBuffer (const uint8_t *p, uint32_t l)
 
const GWEN_TIMEGWEN_SigHead_GetDateTime (const GWEN_SIGHEAD *sh)
 
const char * GWEN_SigHead_GetKeyName (const GWEN_SIGHEAD *sh)
 
int GWEN_SigHead_GetKeyNumber (const GWEN_SIGHEAD *sh)
 
int GWEN_SigHead_GetKeyVersion (const GWEN_SIGHEAD *sh)
 
int GWEN_SigHead_GetSignatureNumber (const GWEN_SIGHEAD *sh)
 
int GWEN_SigHead_GetSignatureProfile (const GWEN_SIGHEAD *sh)
 
GWEN_SIGHEADGWEN_SigHead_new (void)
 
void GWEN_SigHead_SetDateTime (GWEN_SIGHEAD *sh, const GWEN_TIME *ti)
 
void GWEN_SigHead_SetKeyName (GWEN_SIGHEAD *sh, const char *s)
 
void GWEN_SigHead_SetKeyNumber (GWEN_SIGHEAD *sh, int i)
 
void GWEN_SigHead_SetKeyVersion (GWEN_SIGHEAD *sh, int i)
 
void GWEN_SigHead_SetSignatureNumber (GWEN_SIGHEAD *sh, int i)
 
void GWEN_SigHead_SetSignatureProfile (GWEN_SIGHEAD *sh, int i)
 
int GWEN_SigHead_toBuffer (const GWEN_SIGHEAD *sh, GWEN_BUFFER *buf, uint8_t tagType)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 15 of file sighead.c.

Function Documentation

◆ GWEN_SigHead_free()

void GWEN_SigHead_free ( GWEN_SIGHEAD sh)

Definition at line 41 of file sighead.c.

References GWEN_FREE_OBJECT, GWEN_LIST_FINI, and GWEN_Time_free().

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

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

◆ GWEN_SigHead_fromBuffer()

GWEN_SIGHEAD * GWEN_SigHead_fromBuffer ( const uint8_t *  p,
uint32_t  l 
)

◆ GWEN_SigHead_GetDateTime()

const GWEN_TIME * GWEN_SigHead_GetDateTime ( const GWEN_SIGHEAD sh)

Definition at line 251 of file sighead.c.

◆ GWEN_SigHead_GetKeyName()

const char * GWEN_SigHead_GetKeyName ( const GWEN_SIGHEAD sh)

Definition at line 199 of file sighead.c.

Referenced by GWEN_CryptMgr_Verify().

Here is the caller graph for this function:

◆ GWEN_SigHead_GetKeyNumber()

int GWEN_SigHead_GetKeyNumber ( const GWEN_SIGHEAD sh)

Definition at line 219 of file sighead.c.

Referenced by GWEN_CryptMgr_Verify().

Here is the caller graph for this function:

◆ GWEN_SigHead_GetKeyVersion()

int GWEN_SigHead_GetKeyVersion ( const GWEN_SIGHEAD sh)

Definition at line 235 of file sighead.c.

Referenced by GWEN_CryptMgr_Verify().

Here is the caller graph for this function:

◆ GWEN_SigHead_GetSignatureNumber()

int GWEN_SigHead_GetSignatureNumber ( const GWEN_SIGHEAD sh)

Definition at line 287 of file sighead.c.

Referenced by GWEN_CryptMgr_Verify().

Here is the caller graph for this function:

◆ GWEN_SigHead_GetSignatureProfile()

int GWEN_SigHead_GetSignatureProfile ( const GWEN_SIGHEAD sh)

Definition at line 271 of file sighead.c.

◆ GWEN_SigHead_new()

GWEN_SIGHEAD * GWEN_SigHead_new ( void  )

Definition at line 29 of file sighead.c.

References GWEN_LIST_INIT, and GWEN_NEW_OBJECT.

Referenced by GWEN_CryptMgr_Sign(), and GWEN_SigHead_fromBuffer().

Here is the caller graph for this function:

◆ GWEN_SigHead_SetDateTime()

void GWEN_SigHead_SetDateTime ( GWEN_SIGHEAD sh,
const GWEN_TIME ti 
)

Definition at line 259 of file sighead.c.

References GWEN_Time_dup(), GWEN_Time_free(), and NULL.

Referenced by GWEN_CryptMgr_Sign().

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

◆ GWEN_SigHead_SetKeyName()

void GWEN_SigHead_SetKeyName ( GWEN_SIGHEAD sh,
const char *  s 
)

Definition at line 207 of file sighead.c.

References NULL.

Referenced by GWEN_CryptMgr_Sign().

Here is the caller graph for this function:

◆ GWEN_SigHead_SetKeyNumber()

void GWEN_SigHead_SetKeyNumber ( GWEN_SIGHEAD sh,
int  i 
)

Definition at line 227 of file sighead.c.

Referenced by GWEN_CryptMgr_Sign().

Here is the caller graph for this function:

◆ GWEN_SigHead_SetKeyVersion()

void GWEN_SigHead_SetKeyVersion ( GWEN_SIGHEAD sh,
int  i 
)

Definition at line 243 of file sighead.c.

Referenced by GWEN_CryptMgr_Sign().

Here is the caller graph for this function:

◆ GWEN_SigHead_SetSignatureNumber()

void GWEN_SigHead_SetSignatureNumber ( GWEN_SIGHEAD sh,
int  i 
)

Definition at line 295 of file sighead.c.

Referenced by GWEN_CryptMgr_Sign().

Here is the caller graph for this function:

◆ GWEN_SigHead_SetSignatureProfile()

void GWEN_SigHead_SetSignatureProfile ( GWEN_SIGHEAD sh,
int  i 
)

Definition at line 279 of file sighead.c.

Referenced by GWEN_CryptMgr_Sign().

Here is the caller graph for this function:

◆ GWEN_SigHead_toBuffer()

int GWEN_SigHead_toBuffer ( const GWEN_SIGHEAD sh,
GWEN_BUFFER buf,
uint8_t  tagType 
)

Definition at line 150 of file sighead.c.

References GWEN_Buffer_AppendByte(), GWEN_Buffer_free(), GWEN_Buffer_GetPos(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Tag16_DirectlyToBuffer(), and GWEN_Time_toUtcString().

Referenced by GWEN_CryptMgr_Sign().

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