cryptalgo.c File Reference

#include "cryptalgo_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>

Go to the source code of this file.

Functions

void GWEN_Crypt_CryptAlgo_Attach (GWEN_CRYPT_CRYPTALGO *a)
GWEN_CRYPT_CRYPTALGOGWEN_Crypt_CryptAlgo_dup (const GWEN_CRYPT_CRYPTALGO *na)
void GWEN_Crypt_CryptAlgo_free (GWEN_CRYPT_CRYPTALGO *a)
GWEN_CRYPT_CRYPTALGOGWEN_Crypt_CryptAlgo_fromDb (GWEN_DB_NODE *db)
int GWEN_Crypt_CryptAlgo_GetChunkSize (const GWEN_CRYPT_CRYPTALGO *a)
GWEN_CRYPT_CRYPTALGOID GWEN_Crypt_CryptAlgo_GetId (const GWEN_CRYPT_CRYPTALGO *a)
uint32_t GWEN_Crypt_CryptAlgo_GetInitVectorLen (const GWEN_CRYPT_CRYPTALGO *a)
uint8_t * GWEN_Crypt_CryptAlgo_GetInitVectorPtr (const GWEN_CRYPT_CRYPTALGO *a)
int GWEN_Crypt_CryptAlgo_GetKeySizeInBits (const GWEN_CRYPT_CRYPTALGO *a)
GWEN_CRYPT_CRYPTMODE GWEN_Crypt_CryptAlgo_GetMode (const GWEN_CRYPT_CRYPTALGO *a)
GWEN_CRYPT_CRYPTALGOGWEN_Crypt_CryptAlgo_new (GWEN_CRYPT_CRYPTALGOID id, GWEN_CRYPT_CRYPTMODE m)
void GWEN_Crypt_CryptAlgo_SetChunkSize (GWEN_CRYPT_CRYPTALGO *a, int s)
int GWEN_Crypt_CryptAlgo_SetInitVector (GWEN_CRYPT_CRYPTALGO *a, const uint8_t *pv, uint32_t lv)
void GWEN_Crypt_CryptAlgo_SetKeySizeInBits (GWEN_CRYPT_CRYPTALGO *a, int s)
int GWEN_Crypt_CryptAlgo_toDb (const GWEN_CRYPT_CRYPTALGO *a, GWEN_DB_NODE *db)
GWEN_CRYPT_CRYPTALGOID GWEN_Crypt_CryptAlgoId_fromString (const char *s)
const char * GWEN_Crypt_CryptAlgoId_toString (GWEN_CRYPT_CRYPTALGOID a)
GWEN_CRYPT_CRYPTMODE GWEN_Crypt_CryptMode_fromString (const char *s)
const char * GWEN_Crypt_CryptMode_toString (GWEN_CRYPT_CRYPTMODE m)


Function Documentation

void GWEN_Crypt_CryptAlgo_Attach ( GWEN_CRYPT_CRYPTALGO a  ) 

Definition at line 119 of file cryptalgo.c.

GWEN_CRYPT_CRYPTALGO* GWEN_Crypt_CryptAlgo_dup ( const GWEN_CRYPT_CRYPTALGO na  ) 

Definition at line 198 of file cryptalgo.c.

References GWEN_Crypt_CryptAlgo_free(), GWEN_Crypt_CryptAlgo_new(), and NULL.

void GWEN_Crypt_CryptAlgo_free ( GWEN_CRYPT_CRYPTALGO a  ) 

Definition at line 220 of file cryptalgo.c.

References GWEN_FREE_OBJECT, and NULL.

Referenced by GWEN_Crypt_CryptAlgo_dup().

GWEN_CRYPT_CRYPTALGO* GWEN_Crypt_CryptAlgo_fromDb ( GWEN_DB_NODE db  ) 

int GWEN_Crypt_CryptAlgo_GetChunkSize ( const GWEN_CRYPT_CRYPTALGO a  ) 

Definition at line 297 of file cryptalgo.c.

Referenced by GWEN_Crypt_TokenFile__GenerateKey().

GWEN_CRYPT_CRYPTALGOID GWEN_Crypt_CryptAlgo_GetId ( const GWEN_CRYPT_CRYPTALGO a  ) 

Definition at line 239 of file cryptalgo.c.

Referenced by GWEN_Crypt_TokenFile__GenerateKey().

uint32_t GWEN_Crypt_CryptAlgo_GetInitVectorLen ( const GWEN_CRYPT_CRYPTALGO a  ) 

Definition at line 263 of file cryptalgo.c.

uint8_t* GWEN_Crypt_CryptAlgo_GetInitVectorPtr ( const GWEN_CRYPT_CRYPTALGO a  ) 

Definition at line 255 of file cryptalgo.c.

int GWEN_Crypt_CryptAlgo_GetKeySizeInBits ( const GWEN_CRYPT_CRYPTALGO a  ) 

Definition at line 315 of file cryptalgo.c.

Referenced by GWEN_Crypt_TokenFile__GenerateKey().

GWEN_CRYPT_CRYPTMODE GWEN_Crypt_CryptAlgo_GetMode ( const GWEN_CRYPT_CRYPTALGO a  ) 

Definition at line 247 of file cryptalgo.c.

GWEN_CRYPT_CRYPTALGO* GWEN_Crypt_CryptAlgo_new ( GWEN_CRYPT_CRYPTALGOID  id,
GWEN_CRYPT_CRYPTMODE  m 
)

Definition at line 104 of file cryptalgo.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_Crypt_CryptAlgo_dup(), and GWEN_Crypt_CryptAlgo_fromDb().

void GWEN_Crypt_CryptAlgo_SetChunkSize ( GWEN_CRYPT_CRYPTALGO a,
int  s 
)

Definition at line 306 of file cryptalgo.c.

int GWEN_Crypt_CryptAlgo_SetInitVector ( GWEN_CRYPT_CRYPTALGO a,
const uint8_t *  pv,
uint32_t  lv 
)

Definition at line 271 of file cryptalgo.c.

References GWEN_ERROR_MEMORY_FULL, and NULL.

Referenced by GWEN_Crypt_CryptAlgo_fromDb().

void GWEN_Crypt_CryptAlgo_SetKeySizeInBits ( GWEN_CRYPT_CRYPTALGO a,
int  s 
)

Definition at line 324 of file cryptalgo.c.

int GWEN_Crypt_CryptAlgo_toDb ( const GWEN_CRYPT_CRYPTALGO a,
GWEN_DB_NODE db 
)

GWEN_CRYPT_CRYPTALGOID GWEN_Crypt_CryptAlgoId_fromString ( const char *  s  ) 

Definition at line 28 of file cryptalgo.c.

Referenced by GWEN_Crypt_CryptAlgo_fromDb(), and GWEN_Crypt_Key_fromDb().

const char* GWEN_Crypt_CryptAlgoId_toString ( GWEN_CRYPT_CRYPTALGOID  a  ) 

GWEN_CRYPT_CRYPTMODE GWEN_Crypt_CryptMode_fromString ( const char *  s  ) 

const char* GWEN_Crypt_CryptMode_toString ( GWEN_CRYPT_CRYPTMODE  m  ) 


Generated on Mon Jan 25 12:56:03 2010 for gwenhywfar by  doxygen 1.5.6