#include <gwenhywfar/list2.h>#include <gwenhywfar/db.h>Go to the source code of this file.
| typedef struct GWEN_CRYPT_CRYPTALGO GWEN_CRYPT_CRYPTALGO |
Definition at line 20 of file cryptalgo.h.
| enum GWEN_CRYPT_CRYPTMODE |
| GWEN_Crypt_CryptMode_Unknown | |
| GWEN_Crypt_CryptMode_None | |
| GWEN_Crypt_CryptMode_Ecb | |
| GWEN_Crypt_CryptMode_Cfb | |
| GWEN_Crypt_CryptMode_Cbc |
Definition at line 51 of file cryptalgo.h.
| GWENHYWFAR_API void GWEN_Crypt_CryptAlgo_Attach | ( | GWEN_CRYPT_CRYPTALGO * | a | ) |
Definition at line 119 of file cryptalgo.c.
| GWENHYWFAR_API GWEN_CRYPT_CRYPTALGO* GWEN_Crypt_CryptAlgo_dup | ( | const GWEN_CRYPT_CRYPTALGO * | a | ) |
Definition at line 194 of file cryptalgo.c.
References GWEN_Crypt_CryptAlgo_free(), GWEN_Crypt_CryptAlgo_new(), and NULL.
| GWENHYWFAR_API void GWEN_Crypt_CryptAlgo_free | ( | GWEN_CRYPT_CRYPTALGO * | a | ) |
Definition at line 216 of file cryptalgo.c.
References GWEN_FREE_OBJECT, and NULL.
Referenced by GWEN_Crypt_CryptAlgo_dup().
| GWENHYWFAR_API GWEN_CRYPT_CRYPTALGO* GWEN_Crypt_CryptAlgo_fromDb | ( | GWEN_DB_NODE * | db | ) |
Definition at line 127 of file cryptalgo.c.
References DBG_INFO, GWEN_Crypt_CryptAlgo_new(), GWEN_Crypt_CryptAlgo_SetInitVector(), GWEN_CRYPT_CRYPTALGOID, GWEN_Crypt_CryptAlgoId_fromString(), GWEN_Crypt_CryptMode_fromString(), GWEN_DB_GetBinValue(), GWEN_DB_GetCharValue(), GWEN_DB_GetIntValue(), GWEN_LOGDOMAIN, and NULL.
| GWENHYWFAR_API int GWEN_Crypt_CryptAlgo_GetChunkSize | ( | const GWEN_CRYPT_CRYPTALGO * | a | ) |
| GWENHYWFAR_API GWEN_CRYPT_CRYPTALGOID GWEN_Crypt_CryptAlgo_GetId | ( | const GWEN_CRYPT_CRYPTALGO * | a | ) |
| GWENHYWFAR_API uint32_t GWEN_Crypt_CryptAlgo_GetInitVectorLen | ( | const GWEN_CRYPT_CRYPTALGO * | a | ) |
Definition at line 259 of file cryptalgo.c.
| GWENHYWFAR_API uint8_t* GWEN_Crypt_CryptAlgo_GetInitVectorPtr | ( | const GWEN_CRYPT_CRYPTALGO * | a | ) |
Definition at line 251 of file cryptalgo.c.
| GWENHYWFAR_API GWEN_CRYPT_CRYPTMODE GWEN_Crypt_CryptAlgo_GetMode | ( | const GWEN_CRYPT_CRYPTALGO * | a | ) |
Definition at line 243 of file cryptalgo.c.
| GWENHYWFAR_API 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().
| GWENHYWFAR_API void GWEN_Crypt_CryptAlgo_SetChunkSize | ( | GWEN_CRYPT_CRYPTALGO * | a, | |
| int | s | |||
| ) |
Definition at line 302 of file cryptalgo.c.
| GWENHYWFAR_API int GWEN_Crypt_CryptAlgo_SetInitVector | ( | GWEN_CRYPT_CRYPTALGO * | a, | |
| const uint8_t * | pv, | |||
| uint32_t | lv | |||
| ) |
Definition at line 267 of file cryptalgo.c.
References GWEN_ERROR_MEMORY_FULL, and NULL.
Referenced by GWEN_Crypt_CryptAlgo_fromDb().
| GWENHYWFAR_API int GWEN_Crypt_CryptAlgo_toDb | ( | const GWEN_CRYPT_CRYPTALGO * | a, | |
| GWEN_DB_NODE * | db | |||
| ) |
Definition at line 171 of file cryptalgo.c.
References GWEN_Crypt_CryptAlgoId_toString(), GWEN_Crypt_CryptMode_toString(), GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetBinValue(), GWEN_DB_SetCharValue(), and GWEN_DB_SetIntValue().
| GWENHYWFAR_API 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().
| GWENHYWFAR_API const char* GWEN_Crypt_CryptAlgoId_toString | ( | GWEN_CRYPT_CRYPTALGOID | a | ) |
Definition at line 49 of file cryptalgo.c.
Referenced by GWEN_Crypt_CryptAlgo_toDb(), GWEN_Crypt_Key_toDb(), and GWEN_Crypt_KeyRsa_fromModExp().
| GWENHYWFAR_API GWEN_CRYPT_CRYPTMODE GWEN_Crypt_CryptMode_fromString | ( | const char * | s | ) |
Definition at line 72 of file cryptalgo.c.
References GWEN_Crypt_CryptMode_Cbc, GWEN_Crypt_CryptMode_Cfb, GWEN_Crypt_CryptMode_Ecb, GWEN_Crypt_CryptMode_None, and GWEN_Crypt_CryptMode_Unknown.
Referenced by GWEN_Crypt_CryptAlgo_fromDb().
| GWENHYWFAR_API const char* GWEN_Crypt_CryptMode_toString | ( | GWEN_CRYPT_CRYPTMODE | m | ) |
Definition at line 87 of file cryptalgo.c.
References GWEN_Crypt_CryptMode_Cbc, GWEN_Crypt_CryptMode_Cfb, GWEN_Crypt_CryptMode_Ecb, and GWEN_Crypt_CryptMode_None.
Referenced by GWEN_Crypt_CryptAlgo_toDb().
| GWEN_LIST2_FUNCTION_LIB_DEFS | ( | GWEN_CRYPT_CRYPTALGO | , | |
| GWEN_Crypt_CryptAlgo | , | |||
| GWENHYWFAR_API | ||||
| ) |
Definition at line 48 of file cryptalgo.h.
Referenced by GWEN_Crypt_CryptAlgo_fromDb(), and GWEN_Crypt_Key_fromDb().
1.5.6