gwenhywfar 5.14.1
hashalgo.c File Reference
#include "hashalgo_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
Include dependency graph for hashalgo.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG

Functions

void GWEN_Crypt_HashAlgo_Attach (GWEN_CRYPT_HASHALGO *a)
GWEN_CRYPT_HASHALGOGWEN_Crypt_HashAlgo_dup (const GWEN_CRYPT_HASHALGO *na)
void GWEN_Crypt_HashAlgo_free (GWEN_CRYPT_HASHALGO *a)
GWEN_CRYPT_HASHALGOGWEN_Crypt_HashAlgo_fromDb (GWEN_DB_NODE *db)
GWEN_CRYPT_HASHALGOID GWEN_Crypt_HashAlgo_GetId (const GWEN_CRYPT_HASHALGO *a)
uint32_t GWEN_Crypt_HashAlgo_GetInitVectorLen (const GWEN_CRYPT_HASHALGO *a)
uint8_t * GWEN_Crypt_HashAlgo_GetInitVectorPtr (const GWEN_CRYPT_HASHALGO *a)
GWEN_CRYPT_HASHALGOGWEN_Crypt_HashAlgo_new (GWEN_CRYPT_HASHALGOID id)
int GWEN_Crypt_HashAlgo_SetInitVector (GWEN_CRYPT_HASHALGO *a, const uint8_t *pv, uint32_t lv)
int GWEN_Crypt_HashAlgo_toDb (const GWEN_CRYPT_HASHALGO *a, GWEN_DB_NODE *db)
GWEN_CRYPT_HASHALGOID GWEN_Crypt_HashAlgoId_fromString (const char *s)
const char * GWEN_Crypt_HashAlgoId_toString (GWEN_CRYPT_HASHALGOID a)

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 14 of file hashalgo.c.

Function Documentation

◆ GWEN_Crypt_HashAlgo_Attach()

void GWEN_Crypt_HashAlgo_Attach ( GWEN_CRYPT_HASHALGO * a)

Definition at line 83 of file hashalgo.c.

◆ GWEN_Crypt_HashAlgo_dup()

GWEN_CRYPT_HASHALGO * GWEN_Crypt_HashAlgo_dup ( const GWEN_CRYPT_HASHALGO * na)

Definition at line 143 of file hashalgo.c.

References GWEN_Crypt_HashAlgo_free(), GWEN_Crypt_HashAlgo_new(), and NULL.

Here is the call graph for this function:

◆ GWEN_Crypt_HashAlgo_free()

void GWEN_Crypt_HashAlgo_free ( GWEN_CRYPT_HASHALGO * a)

Definition at line 165 of file hashalgo.c.

References GWEN_FREE_OBJECT, and NULL.

Referenced by GWEN_Crypt_HashAlgo_dup().

Here is the caller graph for this function:

◆ GWEN_Crypt_HashAlgo_fromDb()

◆ GWEN_Crypt_HashAlgo_GetId()

GWEN_CRYPT_HASHALGOID GWEN_Crypt_HashAlgo_GetId ( const GWEN_CRYPT_HASHALGO * a)

Definition at line 185 of file hashalgo.c.

References GWEN_CRYPT_HASHALGOID.

◆ GWEN_Crypt_HashAlgo_GetInitVectorLen()

uint32_t GWEN_Crypt_HashAlgo_GetInitVectorLen ( const GWEN_CRYPT_HASHALGO * a)

Definition at line 203 of file hashalgo.c.

◆ GWEN_Crypt_HashAlgo_GetInitVectorPtr()

uint8_t * GWEN_Crypt_HashAlgo_GetInitVectorPtr ( const GWEN_CRYPT_HASHALGO * a)

Definition at line 194 of file hashalgo.c.

◆ GWEN_Crypt_HashAlgo_new()

GWEN_CRYPT_HASHALGO * GWEN_Crypt_HashAlgo_new ( GWEN_CRYPT_HASHALGOID id)

Definition at line 69 of file hashalgo.c.

References GWEN_CRYPT_HASHALGOID, and GWEN_NEW_OBJECT.

Referenced by GWEN_Crypt_HashAlgo_dup(), and GWEN_Crypt_HashAlgo_fromDb().

Here is the caller graph for this function:

◆ GWEN_Crypt_HashAlgo_SetInitVector()

int GWEN_Crypt_HashAlgo_SetInitVector ( GWEN_CRYPT_HASHALGO * a,
const uint8_t * pv,
uint32_t lv )

Definition at line 212 of file hashalgo.c.

References GWEN_ERROR_MEMORY_FULL, and NULL.

Referenced by GWEN_Crypt_HashAlgo_fromDb().

Here is the caller graph for this function:

◆ GWEN_Crypt_HashAlgo_toDb()

int GWEN_Crypt_HashAlgo_toDb ( const GWEN_CRYPT_HASHALGO * a,
GWEN_DB_NODE * db )

Definition at line 125 of file hashalgo.c.

References GWEN_Crypt_HashAlgoId_toString(), GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetBinValue(), and GWEN_DB_SetCharValue().

Here is the call graph for this function:

◆ GWEN_Crypt_HashAlgoId_fromString()

GWEN_CRYPT_HASHALGOID GWEN_Crypt_HashAlgoId_fromString ( const char * s)

Definition at line 27 of file hashalgo.c.

References GWEN_CRYPT_HASHALGOID, and GWEN_Crypt_HashAlgoId_fromString().

Referenced by GWEN_Crypt_HashAlgo_fromDb(), and GWEN_Crypt_HashAlgoId_fromString().

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

◆ GWEN_Crypt_HashAlgoId_toString()

const char * GWEN_Crypt_HashAlgoId_toString ( GWEN_CRYPT_HASHALGOID a)

Definition at line 47 of file hashalgo.c.

References GWEN_CRYPT_HASHALGOID.

Referenced by GWEN_Crypt_HashAlgo_toDb().

Here is the caller graph for this function: