gwenhywfar 5.12.0
ct_keyinfo.c File Reference
#include "ct_keyinfo_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
Include dependency graph for ct_keyinfo.c:

Go to the source code of this file.

Functions

GWEN_CRYPT_TOKEN_KEYINFOGWEN_Crypt_Token_KeyInfo__new (void)
void GWEN_Crypt_Token_KeyInfo_AddFlags (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_KeyInfo_Attach (GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
GWEN_CRYPT_TOKEN_KEYINFOGWEN_Crypt_Token_KeyInfo_copy (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, const GWEN_CRYPT_TOKEN_KEYINFO *p_src)
GWEN_CRYPT_TOKEN_KEYINFOGWEN_Crypt_Token_KeyInfo_dup (const GWEN_CRYPT_TOKEN_KEYINFO *p_src)
void GWEN_Crypt_Token_KeyInfo_free (GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
GWEN_CRYPT_TOKEN_KEYINFOGWEN_Crypt_Token_KeyInfo_fromDb (GWEN_DB_NODE *p_db)
GWEN_CRYPT_TOKEN_KEYINFOGWEN_Crypt_Token_KeyInfo_fromXml (GWEN_XMLNODE *p_db)
const uint8_t * GWEN_Crypt_Token_KeyInfo_GetCertificateData (const GWEN_CRYPT_TOKEN_KEYINFO *st)
uint32_t GWEN_Crypt_Token_KeyInfo_GetCertificateLen (const GWEN_CRYPT_TOKEN_KEYINFO *st)
uint8_t GWEN_Crypt_Token_KeyInfo_GetCertType (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
int GWEN_Crypt_Token_KeyInfo_GetCryptAlgoId (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
const uint8_t * GWEN_Crypt_Token_KeyInfo_GetExponentData (const GWEN_CRYPT_TOKEN_KEYINFO *st)
uint32_t GWEN_Crypt_Token_KeyInfo_GetExponentLen (const GWEN_CRYPT_TOKEN_KEYINFO *st)
uint32_t GWEN_Crypt_Token_KeyInfo_GetFlags (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
uint32_t GWEN_Crypt_Token_KeyInfo_GetId (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
const char * GWEN_Crypt_Token_KeyInfo_GetKeyDescr (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyNumber (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
int GWEN_Crypt_Token_KeyInfo_GetKeySize (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyVersion (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
const uint8_t * GWEN_Crypt_Token_KeyInfo_GetModulusData (const GWEN_CRYPT_TOKEN_KEYINFO *st)
uint32_t GWEN_Crypt_Token_KeyInfo_GetModulusLen (const GWEN_CRYPT_TOKEN_KEYINFO *st)
uint32_t GWEN_Crypt_Token_KeyInfo_GetSignCounter (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct)
GWEN_CRYPT_TOKEN_KEYINFO_LISTGWEN_Crypt_Token_KeyInfo_List_dup (const GWEN_CRYPT_TOKEN_KEYINFO_LIST *p_src)
GWEN_CRYPT_TOKEN_KEYINFOGWEN_Crypt_Token_KeyInfo_List_GetById (const GWEN_CRYPT_TOKEN_KEYINFO_LIST *p_list, uint32_t p_cmp)
GWEN_CRYPT_TOKEN_KEYINFOGWEN_Crypt_Token_KeyInfo_new (uint32_t kid, GWEN_CRYPT_CRYPTALGOID a, int keySize)
void GWEN_Crypt_Token_KeyInfo_ReadDb (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, GWEN_DB_NODE *p_db)
void GWEN_Crypt_Token_KeyInfo_ReadXml (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, GWEN_XMLNODE *p_db)
void GWEN_Crypt_Token_KeyInfo_SetCertificate (GWEN_CRYPT_TOKEN_KEYINFO *st, const uint8_t *p, uint32_t len)
void GWEN_Crypt_Token_KeyInfo_SetCertType (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, uint8_t p_src)
void GWEN_Crypt_Token_KeyInfo_SetCryptAlgoId (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, int p_src)
void GWEN_Crypt_Token_KeyInfo_SetExponent (GWEN_CRYPT_TOKEN_KEYINFO *st, const uint8_t *p, uint32_t len)
void GWEN_Crypt_Token_KeyInfo_SetFlags (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_KeyInfo_SetId (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_KeyInfo_SetKeyDescr (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, const char *p_src)
void GWEN_Crypt_Token_KeyInfo_SetKeyNumber (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_KeyInfo_SetKeySize (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, int p_src)
void GWEN_Crypt_Token_KeyInfo_SetKeyVersion (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_KeyInfo_SetModulus (GWEN_CRYPT_TOKEN_KEYINFO *st, const uint8_t *p, uint32_t len)
void GWEN_Crypt_Token_KeyInfo_SetSignCounter (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_KeyInfo_SubFlags (GWEN_CRYPT_TOKEN_KEYINFO *p_struct, uint32_t p_src)
int GWEN_Crypt_Token_KeyInfo_toDb (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct, GWEN_DB_NODE *p_db)
void GWEN_Crypt_Token_KeyInfo_toXml (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct, GWEN_XMLNODE *p_db)
int GWEN_Crypt_Token_KeyInfo_WriteDb (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct, GWEN_DB_NODE *p_db)
void GWEN_Crypt_Token_KeyInfo_WriteXml (const GWEN_CRYPT_TOKEN_KEYINFO *p_struct, GWEN_XMLNODE *p_db)
GWEN_CRYPT_TOKEN_KEYSTATUS GWEN_Crypt_Token_KeyStatus_fromString (const char *p_s)
const char * GWEN_Crypt_Token_KeyStatus_toString (GWEN_CRYPT_TOKEN_KEYSTATUS p_i)

Function Documentation

◆ GWEN_Crypt_Token_KeyInfo__new()

GWEN_CRYPT_TOKEN_KEYINFO * GWEN_Crypt_Token_KeyInfo__new ( void )

◆ GWEN_Crypt_Token_KeyInfo_AddFlags()

void GWEN_Crypt_Token_KeyInfo_AddFlags ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
uint32_t p_src )

Add flags. Use this function to add flags to the member "flags"

Definition at line 335 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI_Create(), and setKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_Attach()

void GWEN_Crypt_Token_KeyInfo_Attach ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Definition at line 102 of file ct_keyinfo.c.

◆ GWEN_Crypt_Token_KeyInfo_copy()

GWEN_CRYPT_TOKEN_KEYINFO * GWEN_Crypt_Token_KeyInfo_copy ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
const GWEN_CRYPT_TOKEN_KEYINFO * p_src )

Definition at line 182 of file ct_keyinfo.c.

References GWEN_Buffer_dup(), GWEN_Buffer_free(), and NULL.

Here is the call graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_dup()

GWEN_CRYPT_TOKEN_KEYINFO * GWEN_Crypt_Token_KeyInfo_dup ( const GWEN_CRYPT_TOKEN_KEYINFO * p_src)

Definition at line 109 of file ct_keyinfo.c.

References GWEN_Buffer_dup(), GWEN_Buffer_free(), GWEN_Crypt_Token_KeyInfo__new(), and NULL.

Referenced by GWEN_Crypt_Token_KeyInfo_List_dup(), GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__GenerateKey(), setKey(), and setSignSeq().

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

◆ GWEN_Crypt_Token_KeyInfo_free()

◆ GWEN_Crypt_Token_KeyInfo_fromDb()

GWEN_CRYPT_TOKEN_KEYINFO * GWEN_Crypt_Token_KeyInfo_fromDb ( GWEN_DB_NODE * p_db)

Definition at line 616 of file ct_keyinfo.c.

References GWEN_Crypt_Token_KeyInfo__new(), and GWEN_Crypt_Token_KeyInfo_ReadDb().

Here is the call graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_fromXml()

GWEN_CRYPT_TOKEN_KEYINFO * GWEN_Crypt_Token_KeyInfo_fromXml ( GWEN_XMLNODE * p_db)

Definition at line 791 of file ct_keyinfo.c.

References GWEN_Crypt_Token_KeyInfo__new(), and GWEN_Crypt_Token_KeyInfo_ReadXml().

Here is the call graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetCertificateData()

const uint8_t * GWEN_Crypt_Token_KeyInfo_GetCertificateData ( const GWEN_CRYPT_TOKEN_KEYINFO * st)

Definition at line 899 of file ct_keyinfo.c.

References GWEN_Buffer_GetStart(), and NULL.

Here is the call graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetCertificateLen()

uint32_t GWEN_Crypt_Token_KeyInfo_GetCertificateLen ( const GWEN_CRYPT_TOKEN_KEYINFO * st)

Definition at line 907 of file ct_keyinfo.c.

References GWEN_Buffer_GetUsedBytes().

Here is the call graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetCertType()

uint8_t GWEN_Crypt_Token_KeyInfo_GetCertType ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Getter. Use this function to get the member "certType" (see GWEN_CRYPT_TOKEN_KEYINFO_certType)

Definition at line 302 of file ct_keyinfo.c.

◆ GWEN_Crypt_Token_KeyInfo_GetCryptAlgoId()

int GWEN_Crypt_Token_KeyInfo_GetCryptAlgoId ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Getter. Use this function to get the member "cryptAlgoId" (see GWEN_CRYPT_TOKEN_KEYINFO_cryptAlgoId)

Definition at line 278 of file ct_keyinfo.c.

Referenced by showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetExponentData()

const uint8_t * GWEN_Crypt_Token_KeyInfo_GetExponentData ( const GWEN_CRYPT_TOKEN_KEYINFO * st)

Definition at line 871 of file ct_keyinfo.c.

References GWEN_Buffer_GetStart(), and NULL.

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), and showKey().

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

◆ GWEN_Crypt_Token_KeyInfo_GetExponentLen()

uint32_t GWEN_Crypt_Token_KeyInfo_GetExponentLen ( const GWEN_CRYPT_TOKEN_KEYINFO * st)

Definition at line 879 of file ct_keyinfo.c.

References GWEN_Buffer_GetUsedBytes().

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), and showKey().

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

◆ GWEN_Crypt_Token_KeyInfo_GetFlags()

uint32_t GWEN_Crypt_Token_KeyInfo_GetFlags ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Getter. Use this function to get the member "flags" (see GWEN_CRYPT_TOKEN_KEYINFO_flags)

Definition at line 266 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), and showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetId()

uint32_t GWEN_Crypt_Token_KeyInfo_GetId ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Getter. Use this function to get the member "id" (see GWEN_CRYPT_TOKEN_KEYINFO_id)

Definition at line 254 of file ct_keyinfo.c.

Referenced by showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetKeyDescr()

const char * GWEN_Crypt_Token_KeyInfo_GetKeyDescr ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Getter. Use this function to get the member "keyDescr" (see GWEN_CRYPT_TOKEN_KEYINFO_keyDescr)

Definition at line 260 of file ct_keyinfo.c.

Referenced by showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetKeyNumber()

uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyNumber ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Getter. Use this function to get the member "keyNumber" (see GWEN_CRYPT_TOKEN_KEYINFO_keyNumber)

Definition at line 284 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), and showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetKeySize()

int GWEN_Crypt_Token_KeyInfo_GetKeySize ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Getter. Use this function to get the member "keySize" (see GWEN_CRYPT_TOKEN_KEYINFO_keySize)

Definition at line 272 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), and showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetKeyVersion()

uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyVersion ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Getter. Use this function to get the member "keyVersion" (see GWEN_CRYPT_TOKEN_KEYINFO_keyVersion)

Definition at line 290 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), and showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_GetModulusData()

const uint8_t * GWEN_Crypt_Token_KeyInfo_GetModulusData ( const GWEN_CRYPT_TOKEN_KEYINFO * st)

Definition at line 843 of file ct_keyinfo.c.

References GWEN_Buffer_GetStart(), and NULL.

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), and showKey().

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

◆ GWEN_Crypt_Token_KeyInfo_GetModulusLen()

uint32_t GWEN_Crypt_Token_KeyInfo_GetModulusLen ( const GWEN_CRYPT_TOKEN_KEYINFO * st)

Definition at line 851 of file ct_keyinfo.c.

References GWEN_Buffer_GetUsedBytes().

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), and showKey().

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

◆ GWEN_Crypt_Token_KeyInfo_GetSignCounter()

uint32_t GWEN_Crypt_Token_KeyInfo_GetSignCounter ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct)

Getter. Use this function to get the member "signCounter" (see GWEN_CRYPT_TOKEN_KEYINFO_signCounter)

Definition at line 296 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenOHBCI_Encode(), and showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_List_dup()

◆ GWEN_Crypt_Token_KeyInfo_List_GetById()

GWEN_CRYPT_TOKEN_KEYINFO * GWEN_Crypt_Token_KeyInfo_List_GetById ( const GWEN_CRYPT_TOKEN_KEYINFO_LIST * p_list,
uint32_t p_cmp )

Definition at line 799 of file ct_keyinfo.c.

References GWEN_Crypt_Token_KeyInfo_List_First(), GWEN_Crypt_Token_KeyInfo_List_Next(), and NULL.

Here is the call graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_new()

GWEN_CRYPT_TOKEN_KEYINFO * GWEN_Crypt_Token_KeyInfo_new ( uint32_t kid,
GWEN_CRYPT_CRYPTALGOID a,
int keySize )

Definition at line 822 of file ct_keyinfo.c.

References GWEN_CRYPT_CRYPTALGOID, and GWEN_Crypt_Token_KeyInfo__new().

Referenced by GWEN_Crypt_TokenOHBCI__Decode(), and GWEN_Crypt_TokenOHBCI_Create().

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

◆ GWEN_Crypt_Token_KeyInfo_ReadDb()

void GWEN_Crypt_Token_KeyInfo_ReadDb ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
GWEN_DB_NODE * p_db )

Definition at line 403 of file ct_keyinfo.c.

References GWEN_Buffer_AppendBytes(), GWEN_Buffer_free(), GWEN_Buffer_new(), GWEN_DB_GetBinValue(), GWEN_DB_GetCharValue(), GWEN_DB_GetIntValue(), and NULL.

Referenced by GWEN_Crypt_Token_KeyInfo_fromDb().

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

◆ GWEN_Crypt_Token_KeyInfo_ReadXml()

void GWEN_Crypt_Token_KeyInfo_ReadXml ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
GWEN_XMLNODE * p_db )

Definition at line 629 of file ct_keyinfo.c.

References GWEN_Buffer_free(), GWEN_Buffer_new(), GWEN_Text_FromHexBuffer(), GWEN_XMLNode_GetCharValue(), GWEN_XMLNode_GetIntValue(), and NULL.

Referenced by GWEN_Crypt_Token_KeyInfo_fromXml().

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

◆ GWEN_Crypt_Token_KeyInfo_SetCertificate()

void GWEN_Crypt_Token_KeyInfo_SetCertificate ( GWEN_CRYPT_TOKEN_KEYINFO * st,
const uint8_t * p,
uint32_t len )

Definition at line 887 of file ct_keyinfo.c.

References GWEN_Buffer_AppendBytes(), GWEN_Buffer_free(), GWEN_Buffer_new(), and NULL.

Here is the call graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_SetCertType()

void GWEN_Crypt_Token_KeyInfo_SetCertType ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
uint8_t p_src )

Setter. Use this function to set the member "certType" (see GWEN_CRYPT_TOKEN_KEYINFO_certType)

Definition at line 377 of file ct_keyinfo.c.

◆ GWEN_Crypt_Token_KeyInfo_SetCryptAlgoId()

void GWEN_Crypt_Token_KeyInfo_SetCryptAlgoId ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
int p_src )

Setter. Use this function to set the member "cryptAlgoId" (see GWEN_CRYPT_TOKEN_KEYINFO_cryptAlgoId)

Definition at line 353 of file ct_keyinfo.c.

◆ GWEN_Crypt_Token_KeyInfo_SetExponent()

void GWEN_Crypt_Token_KeyInfo_SetExponent ( GWEN_CRYPT_TOKEN_KEYINFO * st,
const uint8_t * p,
uint32_t len )

Definition at line 859 of file ct_keyinfo.c.

References GWEN_Buffer_AppendBytes(), GWEN_Buffer_free(), GWEN_Buffer_new(), and NULL.

Referenced by GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenFile__SetKeyInfo(), and GWEN_Crypt_TokenOHBCI__Decode().

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

◆ GWEN_Crypt_Token_KeyInfo_SetFlags()

void GWEN_Crypt_Token_KeyInfo_SetFlags ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
uint32_t p_src )

Setter. Use this function to set the member "flags" (see GWEN_CRYPT_TOKEN_KEYINFO_flags)

Definition at line 329 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_SetId()

void GWEN_Crypt_Token_KeyInfo_SetId ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
uint32_t p_src )

Setter. Use this function to set the member "id" (see GWEN_CRYPT_TOKEN_KEYINFO_id)

Definition at line 308 of file ct_keyinfo.c.

◆ GWEN_Crypt_Token_KeyInfo_SetKeyDescr()

void GWEN_Crypt_Token_KeyInfo_SetKeyDescr ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
const char * p_src )

Setter. Use this function to set the member "keyDescr" (see GWEN_CRYPT_TOKEN_KEYINFO_keyDescr)

Definition at line 314 of file ct_keyinfo.c.

References NULL.

Referenced by GWEN_Crypt_TokenOHBCI__Decode(), and GWEN_Crypt_TokenOHBCI_Create().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_SetKeyNumber()

void GWEN_Crypt_Token_KeyInfo_SetKeyNumber ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
uint32_t p_src )

Setter. Use this function to set the member "keyNumber" (see GWEN_CRYPT_TOKEN_KEYINFO_keyNumber)

Definition at line 359 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenOHBCI__Decode(), and setKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_SetKeySize()

void GWEN_Crypt_Token_KeyInfo_SetKeySize ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
int p_src )

Setter. Use this function to set the member "keySize" (see GWEN_CRYPT_TOKEN_KEYINFO_keySize)

Definition at line 347 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_SetKeyVersion()

void GWEN_Crypt_Token_KeyInfo_SetKeyVersion ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
uint32_t p_src )

Setter. Use this function to set the member "keyVersion" (see GWEN_CRYPT_TOKEN_KEYINFO_keyVersion)

Definition at line 365 of file ct_keyinfo.c.

Referenced by GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenOHBCI__Decode(), and setKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_SetModulus()

void GWEN_Crypt_Token_KeyInfo_SetModulus ( GWEN_CRYPT_TOKEN_KEYINFO * st,
const uint8_t * p,
uint32_t len )

Definition at line 831 of file ct_keyinfo.c.

References GWEN_Buffer_AppendBytes(), GWEN_Buffer_free(), GWEN_Buffer_new(), and NULL.

Referenced by GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenFile__SetKeyInfo(), and GWEN_Crypt_TokenOHBCI__Decode().

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

◆ GWEN_Crypt_Token_KeyInfo_SetSignCounter()

void GWEN_Crypt_Token_KeyInfo_SetSignCounter ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
uint32_t p_src )

◆ GWEN_Crypt_Token_KeyInfo_SubFlags()

void GWEN_Crypt_Token_KeyInfo_SubFlags ( GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
uint32_t p_src )

Sub flags. Use this function to sub flags from the member "flags"

Definition at line 341 of file ct_keyinfo.c.

◆ GWEN_Crypt_Token_KeyInfo_toDb()

int GWEN_Crypt_Token_KeyInfo_toDb ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
GWEN_DB_NODE * p_db )

Definition at line 624 of file ct_keyinfo.c.

References GWEN_Crypt_Token_KeyInfo_WriteDb().

Here is the call graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_toXml()

void GWEN_Crypt_Token_KeyInfo_toXml ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
GWEN_XMLNODE * p_db )

Definition at line 786 of file ct_keyinfo.c.

References GWEN_Crypt_Token_KeyInfo_WriteXml().

Here is the call graph for this function:

◆ GWEN_Crypt_Token_KeyInfo_WriteDb()

int GWEN_Crypt_Token_KeyInfo_WriteDb ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
GWEN_DB_NODE * p_db )

Definition at line 501 of file ct_keyinfo.c.

References DBG_INFO, GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_DB_DeleteVar(), GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetBinValue(), GWEN_DB_SetCharValue(), GWEN_DB_SetIntValue(), and GWEN_LOGDOMAIN.

Referenced by GWEN_Crypt_Token_KeyInfo_toDb().

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

◆ GWEN_Crypt_Token_KeyInfo_WriteXml()

void GWEN_Crypt_Token_KeyInfo_WriteXml ( const GWEN_CRYPT_TOKEN_KEYINFO * p_struct,
GWEN_XMLNODE * p_db )

Definition at line 724 of file ct_keyinfo.c.

References GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_Buffer_new(), GWEN_Text_ToHexBuffer(), GWEN_XMLNode_SetCharValue(), and GWEN_XMLNode_SetIntValue().

Referenced by GWEN_Crypt_Token_KeyInfo_toXml().

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

◆ GWEN_Crypt_Token_KeyStatus_fromString()

GWEN_CRYPT_TOKEN_KEYSTATUS GWEN_Crypt_Token_KeyStatus_fromString ( const char * p_s)

Definition at line 25 of file ct_keyinfo.c.

References GWEN_Crypt_Token_KeyStatus_fromString(), GWEN_Crypt_Token_KeyStatusActive, GWEN_Crypt_Token_KeyStatusFree, GWEN_Crypt_Token_KeyStatusNew, and GWEN_Crypt_Token_KeyStatusUnknown.

Referenced by GWEN_Crypt_Token_KeyStatus_fromString().

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

◆ GWEN_Crypt_Token_KeyStatus_toString()

const char * GWEN_Crypt_Token_KeyStatus_toString ( GWEN_CRYPT_TOKEN_KEYSTATUS p_i)