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

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

void GWEN_CryptHead_free (GWEN_CRYPTHEAD *ch)
 
GWEN_CRYPTHEADGWEN_CryptHead_fromBuffer (const uint8_t *p, uint32_t l)
 
int GWEN_CryptHead_GetCryptProfile (const GWEN_CRYPTHEAD *ch)
 
uint32_t GWEN_CryptHead_GetKeyLen (const GWEN_CRYPTHEAD *ch)
 
const char * GWEN_CryptHead_GetKeyName (const GWEN_CRYPTHEAD *ch)
 
int GWEN_CryptHead_GetKeyNumber (const GWEN_CRYPTHEAD *ch)
 
const uint8_t * GWEN_CryptHead_GetKeyPtr (const GWEN_CRYPTHEAD *ch)
 
int GWEN_CryptHead_GetKeyVersion (const GWEN_CRYPTHEAD *ch)
 
GWEN_CRYPTHEADGWEN_CryptHead_new (void)
 
void GWEN_CryptHead_SetCryptProfile (GWEN_CRYPTHEAD *ch, int i)
 
void GWEN_CryptHead_SetKey (GWEN_CRYPTHEAD *ch, const uint8_t *p, uint32_t l)
 
void GWEN_CryptHead_SetKeyName (GWEN_CRYPTHEAD *ch, const char *s)
 
void GWEN_CryptHead_SetKeyNumber (GWEN_CRYPTHEAD *ch, int i)
 
void GWEN_CryptHead_SetKeyVersion (GWEN_CRYPTHEAD *ch, int i)
 
int GWEN_CryptHead_toBuffer (const GWEN_CRYPTHEAD *ch, GWEN_BUFFER *buf, uint8_t tagType)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 14 of file crypthead.c.

Function Documentation

◆ GWEN_CryptHead_free()

void GWEN_CryptHead_free ( GWEN_CRYPTHEAD ch)

Definition at line 38 of file crypthead.c.

References GWEN_FREE_OBJECT.

Referenced by GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), and GWEN_CryptMgr_Encrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_fromBuffer()

GWEN_CRYPTHEAD* GWEN_CryptHead_fromBuffer ( const uint8_t *  p,
uint32_t  l 
)

Definition at line 50 of file crypthead.c.

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

Referenced by GWEN_CryptMgr_Decrypt().

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

◆ GWEN_CryptHead_GetCryptProfile()

int GWEN_CryptHead_GetCryptProfile ( const GWEN_CRYPTHEAD ch)

Definition at line 219 of file crypthead.c.

◆ GWEN_CryptHead_GetKeyLen()

uint32_t GWEN_CryptHead_GetKeyLen ( const GWEN_CRYPTHEAD ch)

Definition at line 243 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_GetKeyName()

const char* GWEN_CryptHead_GetKeyName ( const GWEN_CRYPTHEAD ch)

Definition at line 167 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_GetKeyNumber()

int GWEN_CryptHead_GetKeyNumber ( const GWEN_CRYPTHEAD ch)

Definition at line 187 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_GetKeyPtr()

const uint8_t* GWEN_CryptHead_GetKeyPtr ( const GWEN_CRYPTHEAD ch)

Definition at line 235 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_GetKeyVersion()

int GWEN_CryptHead_GetKeyVersion ( const GWEN_CRYPTHEAD ch)

Definition at line 203 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_new()

GWEN_CRYPTHEAD* GWEN_CryptHead_new ( void  )

Definition at line 27 of file crypthead.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_CryptHead_fromBuffer(), and GWEN_CryptMgr_Encrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_SetCryptProfile()

void GWEN_CryptHead_SetCryptProfile ( GWEN_CRYPTHEAD ch,
int  i 
)

Definition at line 227 of file crypthead.c.

Referenced by GWEN_CryptMgr_Encrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_SetKey()

void GWEN_CryptHead_SetKey ( GWEN_CRYPTHEAD ch,
const uint8_t *  p,
uint32_t  l 
)

Definition at line 251 of file crypthead.c.

References NULL.

Referenced by GWEN_CryptMgr_Encrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_SetKeyName()

void GWEN_CryptHead_SetKeyName ( GWEN_CRYPTHEAD ch,
const char *  s 
)

Definition at line 175 of file crypthead.c.

References NULL.

Referenced by GWEN_CryptMgr_Encrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_SetKeyNumber()

void GWEN_CryptHead_SetKeyNumber ( GWEN_CRYPTHEAD ch,
int  i 
)

Definition at line 195 of file crypthead.c.

Referenced by GWEN_CryptMgr_Encrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_SetKeyVersion()

void GWEN_CryptHead_SetKeyVersion ( GWEN_CRYPTHEAD ch,
int  i 
)

Definition at line 211 of file crypthead.c.

Referenced by GWEN_CryptMgr_Encrypt().

Here is the caller graph for this function:

◆ GWEN_CryptHead_toBuffer()

int GWEN_CryptHead_toBuffer ( const GWEN_CRYPTHEAD ch,
GWEN_BUFFER buf,
uint8_t  tagType 
)

Definition at line 127 of file crypthead.c.

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

Referenced by GWEN_CryptMgr_Encrypt().

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