|
gwenhywfar 5.10.1
|
#include <gwenhywfar/cryptkey.h>
Go to the source code of this file.
Typedefs | |
| typedef GWENHYWFAR_CB int(* | GWEN_CRYPT_KEY_DECIPHER_FN) (GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen) |
| typedef GWENHYWFAR_CB int(* | GWEN_CRYPT_KEY_ENCIPHER_FN) (GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen) |
| typedef GWENHYWFAR_CB int(* | GWEN_CRYPT_KEY_SIGN_FN) (GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, uint8_t *pSignatureData, uint32_t *pSignatureLen) |
| typedef GWENHYWFAR_CB int(* | GWEN_CRYPT_KEY_VERIFY_FN) (GWEN_CRYPT_KEY *k, const uint8_t *pInData, uint32_t inLen, const uint8_t *pSignatureData, uint32_t signatureLen) |
| typedef GWENHYWFAR_CB 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 GWENHYWFAR_CB 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 GWENHYWFAR_CB 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 GWENHYWFAR_CB 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 | ) |
Definition at line 137 of file cryptkey.c.
References GWEN_Crypt_Key_new(), and NULL.

| GWENHYWFAR_API GWEN_CRYPT_KEY * GWEN_Crypt_Key_fromDb | ( | GWEN_DB_NODE * | db | ) |
Definition at line 80 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(), GWEN_Crypt_KeySym__fromDb(), and GWEN_Crypt_KeySym_fromDb().


| GWENHYWFAR_API GWEN_CRYPT_KEY * GWEN_Crypt_Key_new | ( | GWEN_CRYPT_CRYPTALGOID | cryptAlgoId, |
| int | keySize | ||
| ) |
Definition at line 63 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 259 of file cryptkey.c.
Referenced by GWEN_Crypt_KeyRsa_fromDb(), GWEN_Crypt_KeyRsa_GeneratePair(), GWEN_Crypt_KeySym__fromDb(), 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 245 of file cryptkey.c.
Referenced by GWEN_Crypt_KeyRsa_fromDb(), GWEN_Crypt_KeyRsa_GeneratePair(), GWEN_Crypt_KeySym__fromDb(), 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 219 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 232 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 117 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(), GWEN_Crypt_KeySym__toDb(), and GWEN_Crypt_KeySym_toDb().

