gwenhywfar 4.0.3
Defines | 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>

Go to the source code of this file.

Defines

#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 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)

Define Documentation

#define DISABLE_DEBUGLOG

Definition at line 14 of file crypthead.c.


Function Documentation

void GWEN_CryptHead_free ( GWEN_CRYPTHEAD ch)

Definition at line 37 of file crypthead.c.

References GWEN_FREE_OBJECT.

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

GWEN_CRYPTHEAD* GWEN_CryptHead_fromBuffer ( const uint8_t *  p,
uint32_t  l 
)
int GWEN_CryptHead_GetCryptProfile ( const GWEN_CRYPTHEAD ch)

Definition at line 207 of file crypthead.c.

uint32_t GWEN_CryptHead_GetKeyLen ( const GWEN_CRYPTHEAD ch)

Definition at line 228 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

const char* GWEN_CryptHead_GetKeyName ( const GWEN_CRYPTHEAD ch)

Definition at line 163 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

int GWEN_CryptHead_GetKeyNumber ( const GWEN_CRYPTHEAD ch)

Definition at line 179 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

const uint8_t* GWEN_CryptHead_GetKeyPtr ( const GWEN_CRYPTHEAD ch)

Definition at line 221 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

int GWEN_CryptHead_GetKeyVersion ( const GWEN_CRYPTHEAD ch)

Definition at line 193 of file crypthead.c.

Referenced by GWEN_CryptMgr_Decrypt().

GWEN_CRYPTHEAD* GWEN_CryptHead_new ( )

Definition at line 27 of file crypthead.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_CryptHead_fromBuffer(), and GWEN_CryptMgr_Encrypt().

void GWEN_CryptHead_SetCryptProfile ( GWEN_CRYPTHEAD ch,
int  i 
)

Definition at line 214 of file crypthead.c.

Referenced by GWEN_CryptMgr_Encrypt().

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

Definition at line 235 of file crypthead.c.

References NULL.

Referenced by GWEN_CryptMgr_Encrypt().

void GWEN_CryptHead_SetKeyName ( GWEN_CRYPTHEAD ch,
const char *  s 
)

Definition at line 170 of file crypthead.c.

References NULL.

Referenced by GWEN_CryptMgr_Encrypt().

void GWEN_CryptHead_SetKeyNumber ( GWEN_CRYPTHEAD ch,
int  i 
)

Definition at line 186 of file crypthead.c.

Referenced by GWEN_CryptMgr_Encrypt().

void GWEN_CryptHead_SetKeyVersion ( GWEN_CRYPTHEAD ch,
int  i 
)

Definition at line 200 of file crypthead.c.

Referenced by GWEN_CryptMgr_Encrypt().

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