gwenhywfar  4.3.1
Defines | Functions
hashalgo.c File Reference
#include "hashalgo_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>

Go to the source code of this file.

Defines

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

Define Documentation

Definition at line 14 of file hashalgo.c.


Function Documentation

Definition at line 80 of file hashalgo.c.

Definition at line 137 of file hashalgo.c.

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

Definition at line 158 of file hashalgo.c.

References GWEN_FREE_OBJECT, and NULL.

Referenced by GWEN_Crypt_HashAlgo_dup().

Definition at line 177 of file hashalgo.c.

Definition at line 193 of file hashalgo.c.

Definition at line 185 of file hashalgo.c.

Definition at line 67 of file hashalgo.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_Crypt_HashAlgo_dup(), and GWEN_Crypt_HashAlgo_fromDb().

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

Definition at line 201 of file hashalgo.c.

References GWEN_ERROR_MEMORY_FULL, and NULL.

Referenced by GWEN_Crypt_HashAlgo_fromDb().

Definition at line 27 of file hashalgo.c.

Referenced by GWEN_Crypt_HashAlgo_fromDb().

Definition at line 46 of file hashalgo.c.

Referenced by GWEN_Crypt_HashAlgo_toDb().