#include <gwenhywfar/cryptkey.h>
Go to the source code of this file.
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.
GWENHYWFAR_API GWEN_CRYPT_KEY* GWEN_Crypt_Key_dup | ( | const GWEN_CRYPT_KEY * | k | ) |
GWENHYWFAR_API GWEN_CRYPT_KEY* GWEN_Crypt_Key_fromDb | ( | GWEN_DB_NODE * | db | ) |
Definition at line 74 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().
GWENHYWFAR_API GWEN_CRYPT_KEY* GWEN_Crypt_Key_new | ( | GWEN_CRYPT_CRYPTALGOID | cryptAlgoId, | |
int | keySize | |||
) |
Definition at line 58 of file cryptkey.c.
References GWEN_INHERIT_INIT, GWEN_LIST_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_Crypt_Key_dup(), GWEN_Crypt_Key_fromDb(), GWEN_Crypt_KeyRsa_GeneratePair(), GWEN_Crypt_KeySym_fromData(), and GWEN_Crypt_KeySym_Generate().
GWENHYWFAR_API GWEN_CRYPT_KEY_DECIPHER_FN GWEN_Crypt_Key_SetDecipherFn | ( | GWEN_CRYPT_KEY * | k, | |
GWEN_CRYPT_KEY_DECIPHER_FN | f | |||
) |
Definition at line 240 of file cryptkey.c.
Referenced by GWEN_Crypt_KeyRsa_fromDb(), GWEN_Crypt_KeyRsa_GeneratePair(), GWEN_Crypt_KeySym_fromData(), GWEN_Crypt_KeySym_fromDb(), and GWEN_Crypt_KeySym_Generate().
GWENHYWFAR_API GWEN_CRYPT_KEY_ENCIPHER_FN GWEN_Crypt_Key_SetEncipherFn | ( | GWEN_CRYPT_KEY * | k, | |
GWEN_CRYPT_KEY_ENCIPHER_FN | f | |||
) |
Definition at line 227 of file cryptkey.c.
Referenced by GWEN_Crypt_KeyRsa_fromDb(), GWEN_Crypt_KeyRsa_GeneratePair(), GWEN_Crypt_KeySym_fromData(), GWEN_Crypt_KeySym_fromDb(), and GWEN_Crypt_KeySym_Generate().
GWENHYWFAR_API GWEN_CRYPT_KEY_SIGN_FN GWEN_Crypt_Key_SetSignFn | ( | GWEN_CRYPT_KEY * | k, | |
GWEN_CRYPT_KEY_SIGN_FN | f | |||
) |
Definition at line 203 of file cryptkey.c.
Referenced by GWEN_Crypt_KeyRsa_fromDb(), and GWEN_Crypt_KeyRsa_GeneratePair().
GWENHYWFAR_API GWEN_CRYPT_KEY_VERIFY_FN GWEN_Crypt_Key_SetVerifyFn | ( | GWEN_CRYPT_KEY * | k, | |
GWEN_CRYPT_KEY_VERIFY_FN | f | |||
) |
Definition at line 215 of file cryptkey.c.
Referenced by GWEN_Crypt_KeyRsa_fromDb(), and GWEN_Crypt_KeyRsa_GeneratePair().
GWENHYWFAR_API int GWEN_Crypt_Key_toDb | ( | const GWEN_CRYPT_KEY * | k, | |
GWEN_DB_NODE * | db | |||
) |
Definition at line 110 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().