cryptkey_be.h File Reference

#include <gwenhywfar/cryptkey.h>
Include dependency graph for cryptkey_be.h:

Go to the source code of this file.

Typedefs

typedef int(* GWEN_CRYPT_KEY_DECIPHER_FN )(GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen)
typedef int(* GWEN_CRYPT_KEY_ENCIPHER_FN )(GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen)
typedef int(* GWEN_CRYPT_KEY_SIGN_FN )(GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, uint8_t *pSignatureData, uint32_t *pSignatureLen)
typedef int(* GWEN_CRYPT_KEY_VERIFY_FN )(GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, const uint8_t *pSignatureData, uint32_t signatureLen)

Functions

GWENHYWFAR_API GWEN_CRYPT_KEYGWEN_Crypt_Key_dup (const GWEN_CRYPT_KEY *k)
GWENHYWFAR_API GWEN_CRYPT_KEYGWEN_Crypt_Key_fromDb (GWEN_DB_NODE *db)
GWENHYWFAR_API GWEN_CRYPT_KEYGWEN_Crypt_Key_new (GWEN_CRYPT_CRYPTALGOID cryptAlgoId, int keySize)
GWENHYWFAR_API
GWEN_CRYPT_KEY_DECIPHER_FN 
GWEN_Crypt_Key_SetDecipherFn (GWEN_CRYPT_KEY *k, GWEN_CRYPT_KEY_DECIPHER_FN f)
GWENHYWFAR_API
GWEN_CRYPT_KEY_ENCIPHER_FN 
GWEN_Crypt_Key_SetEncipherFn (GWEN_CRYPT_KEY *k, GWEN_CRYPT_KEY_ENCIPHER_FN f)
GWENHYWFAR_API
GWEN_CRYPT_KEY_SIGN_FN 
GWEN_Crypt_Key_SetSignFn (GWEN_CRYPT_KEY *k, GWEN_CRYPT_KEY_SIGN_FN f)
GWENHYWFAR_API
GWEN_CRYPT_KEY_VERIFY_FN 
GWEN_Crypt_Key_SetVerifyFn (GWEN_CRYPT_KEY *k, GWEN_CRYPT_KEY_VERIFY_FN f)
GWENHYWFAR_API int GWEN_Crypt_Key_toDb (const GWEN_CRYPT_KEY *k, GWEN_DB_NODE *db)

Typedef Documentation

typedef int(* GWEN_CRYPT_KEY_DECIPHER_FN)(GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen)

Definition at line 36 of file cryptkey_be.h.

typedef int(* GWEN_CRYPT_KEY_ENCIPHER_FN)(GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen)

Definition at line 31 of file cryptkey_be.h.

typedef int(* GWEN_CRYPT_KEY_SIGN_FN)(GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, uint8_t *pSignatureData, uint32_t *pSignatureLen)

Definition at line 21 of file cryptkey_be.h.

typedef int(* GWEN_CRYPT_KEY_VERIFY_FN)(GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, const uint8_t *pSignatureData, uint32_t signatureLen)

Definition at line 26 of file cryptkey_be.h.


Function Documentation

GWENHYWFAR_API GWEN_CRYPT_KEY* GWEN_Crypt_Key_dup ( const GWEN_CRYPT_KEY k  ) 

Definition at line 132 of file cryptkey.c.

References GWEN_Crypt_Key_new(), and NULL.

Here is the call graph for this function:

GWENHYWFAR_API GWEN_CRYPT_KEY* GWEN_Crypt_Key_fromDb ( GWEN_DB_NODE db  ) 

Definition at line 77 of file cryptkey.c.

References DBG_ERROR, GWEN_CRYPT_CRYPTALGOID, GWEN_Crypt_CryptAlgoId_fromString(), GWEN_Crypt_Key_new(), GWEN_DB_GetCharValue(), GWEN_DB_GetIntValue(), GWEN_LOGDOMAIN, and NULL.

Referenced by GWEN_Crypt_KeyRsa_fromDb(), and GWEN_Crypt_KeySym_fromDb().

Here is the call graph for this function:

Here is the caller graph for this function:

GWENHYWFAR_API GWEN_CRYPT_KEY* GWEN_Crypt_Key_new ( GWEN_CRYPT_CRYPTALGOID  cryptAlgoId,
int  keySize 
)
GWENHYWFAR_API GWEN_CRYPT_KEY_DECIPHER_FN GWEN_Crypt_Key_SetDecipherFn ( GWEN_CRYPT_KEY k,
GWEN_CRYPT_KEY_DECIPHER_FN  f 
)

Definition at line 243 of file cryptkey.c.

Referenced by GWEN_Crypt_KeyRsa_fromDb(), GWEN_Crypt_KeyRsa_GeneratePair2(), GWEN_Crypt_KeySym_fromData(), GWEN_Crypt_KeySym_fromDb(), and GWEN_Crypt_KeySym_Generate().

Here is the caller graph for this function:

GWENHYWFAR_API GWEN_CRYPT_KEY_ENCIPHER_FN GWEN_Crypt_Key_SetEncipherFn ( GWEN_CRYPT_KEY k,
GWEN_CRYPT_KEY_ENCIPHER_FN  f 
)

Definition at line 230 of file cryptkey.c.

Referenced by GWEN_Crypt_KeyRsa_fromDb(), GWEN_Crypt_KeyRsa_GeneratePair2(), GWEN_Crypt_KeySym_fromData(), GWEN_Crypt_KeySym_fromDb(), and GWEN_Crypt_KeySym_Generate().

Here is the caller graph for this function:

GWENHYWFAR_API GWEN_CRYPT_KEY_SIGN_FN GWEN_Crypt_Key_SetSignFn ( GWEN_CRYPT_KEY k,
GWEN_CRYPT_KEY_SIGN_FN  f 
)

Definition at line 206 of file cryptkey.c.

Referenced by GWEN_Crypt_KeyRsa_fromDb(), and GWEN_Crypt_KeyRsa_GeneratePair2().

Here is the caller graph for this function:

GWENHYWFAR_API GWEN_CRYPT_KEY_VERIFY_FN GWEN_Crypt_Key_SetVerifyFn ( GWEN_CRYPT_KEY k,
GWEN_CRYPT_KEY_VERIFY_FN  f 
)

Definition at line 218 of file cryptkey.c.

Referenced by GWEN_Crypt_KeyRsa_fromDb(), and GWEN_Crypt_KeyRsa_GeneratePair2().

Here is the caller graph for this function:

GWENHYWFAR_API int GWEN_Crypt_Key_toDb ( const GWEN_CRYPT_KEY k,
GWEN_DB_NODE db 
)

Definition at line 113 of file cryptkey.c.

References GWEN_Crypt_CryptAlgoId_toString(), GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), and GWEN_DB_SetIntValue().

Referenced by GWEN_Crypt_KeyRsa_toDb(), and GWEN_Crypt_KeySym_toDb().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Mon Jul 5 22:53:29 2010 for gwenhywfar by  doxygen 1.6.3