#include <gwenhywfar/cryptmgr.h>
#include <gwenhywfar/inherit.h>
Go to the source code of this file.
Typedefs | |
typedef GWENHYWFAR_CB int(* | GWEN_CRYPTMGR_DECRYPTKEY_FN )(GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf) |
typedef GWENHYWFAR_CB int(* | GWEN_CRYPTMGR_ENCRYPTKEY_FN )(GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf) |
typedef GWENHYWFAR_CB int(* | GWEN_CRYPTMGR_SIGNDATA_FN )(GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf) |
typedef GWENHYWFAR_CB int(* | GWEN_CRYPTMGR_VERIFYDATA_FN )(GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, const uint8_t *pSignature, uint32_t lSignature) |
Functions | |
GWENHYWFAR_API int | GWEN_CryptMgr_DecryptKey (GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf) |
GWENHYWFAR_API int | GWEN_CryptMgr_EncryptKey (GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf) |
GWENHYWFAR_API GWEN_CRYPTMGR * | GWEN_CryptMgr_new () |
GWENHYWFAR_API GWEN_CRYPTMGR_DECRYPTKEY_FN | GWEN_CryptMgr_SetDecryptKeyFn (GWEN_CRYPTMGR *cm, GWEN_CRYPTMGR_DECRYPTKEY_FN f) |
GWENHYWFAR_API GWEN_CRYPTMGR_ENCRYPTKEY_FN | GWEN_CryptMgr_SetEncryptKeyFn (GWEN_CRYPTMGR *cm, GWEN_CRYPTMGR_ENCRYPTKEY_FN f) |
GWENHYWFAR_API void | GWEN_CryptMgr_SetLocalKeyName (GWEN_CRYPTMGR *cm, const char *s) |
GWENHYWFAR_API void | GWEN_CryptMgr_SetLocalKeyNumber (GWEN_CRYPTMGR *cm, int i) |
GWENHYWFAR_API void | GWEN_CryptMgr_SetLocalKeyVersion (GWEN_CRYPTMGR *cm, int i) |
GWENHYWFAR_API void | GWEN_CryptMgr_SetPeerKeyName (GWEN_CRYPTMGR *cm, const char *s) |
GWENHYWFAR_API void | GWEN_CryptMgr_SetPeerKeyNumber (GWEN_CRYPTMGR *cm, int i) |
GWENHYWFAR_API void | GWEN_CryptMgr_SetPeerKeyVersion (GWEN_CRYPTMGR *cm, int i) |
GWENHYWFAR_API GWEN_CRYPTMGR_SIGNDATA_FN | GWEN_CryptMgr_SetSignDataFn (GWEN_CRYPTMGR *cm, GWEN_CRYPTMGR_SIGNDATA_FN f) |
GWENHYWFAR_API GWEN_CRYPTMGR_VERIFYDATA_FN | GWEN_CryptMgr_SetVerifyDataFn (GWEN_CRYPTMGR *cm, GWEN_CRYPTMGR_VERIFYDATA_FN f) |
GWENHYWFAR_API int | GWEN_CryptMgr_SignData (GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf) |
GWENHYWFAR_API int | GWEN_CryptMgr_VerifyData (GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, const uint8_t *pSignature, uint32_t lSignature) |
typedef GWENHYWFAR_CB int(* GWEN_CRYPTMGR_DECRYPTKEY_FN)(GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf) |
Definition at line 35 of file cryptmgr_be.h.
typedef GWENHYWFAR_CB int(* GWEN_CRYPTMGR_ENCRYPTKEY_FN)(GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf) |
Definition at line 28 of file cryptmgr_be.h.
typedef GWENHYWFAR_CB int(* GWEN_CRYPTMGR_SIGNDATA_FN)(GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf) |
Definition at line 25 of file cryptmgr_be.h.
typedef GWENHYWFAR_CB int(* GWEN_CRYPTMGR_VERIFYDATA_FN)(GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, const uint8_t *pSignature, uint32_t lSignature) |
Definition at line 32 of file cryptmgr_be.h.
GWENHYWFAR_API int GWEN_CryptMgr_DecryptKey | ( | GWEN_CRYPTMGR * | cm, | |
const uint8_t * | pData, | |||
uint32_t | lData, | |||
GWEN_BUFFER * | dbuf | |||
) |
Definition at line 208 of file cryptmgr.c.
References GWEN_ERROR_NOT_IMPLEMENTED.
Referenced by GWEN_CryptMgr_Decrypt().
GWENHYWFAR_API int GWEN_CryptMgr_EncryptKey | ( | GWEN_CRYPTMGR * | cm, | |
const uint8_t * | pData, | |||
uint32_t | lData, | |||
GWEN_BUFFER * | dbuf | |||
) |
Definition at line 186 of file cryptmgr.c.
References GWEN_ERROR_NOT_IMPLEMENTED.
Referenced by GWEN_CryptMgr_Encrypt().
GWENHYWFAR_API GWEN_CRYPTMGR* GWEN_CryptMgr_new | ( | ) |
Definition at line 35 of file cryptmgr.c.
References GWEN_INHERIT_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_CryptMgrKeys_new().
GWENHYWFAR_API GWEN_CRYPTMGR_DECRYPTKEY_FN GWEN_CryptMgr_SetDecryptKeyFn | ( | GWEN_CRYPTMGR * | cm, | |
GWEN_CRYPTMGR_DECRYPTKEY_FN | f | |||
) |
Definition at line 254 of file cryptmgr.c.
Referenced by GWEN_CryptMgrKeys_new().
GWENHYWFAR_API GWEN_CRYPTMGR_ENCRYPTKEY_FN GWEN_CryptMgr_SetEncryptKeyFn | ( | GWEN_CRYPTMGR * | cm, | |
GWEN_CRYPTMGR_ENCRYPTKEY_FN | f | |||
) |
Definition at line 242 of file cryptmgr.c.
Referenced by GWEN_CryptMgrKeys_new().
GWENHYWFAR_API void GWEN_CryptMgr_SetLocalKeyName | ( | GWEN_CRYPTMGR * | cm, | |
const char * | s | |||
) |
Definition at line 65 of file cryptmgr.c.
References NULL.
Referenced by GWEN_CryptMgrKeys_new().
GWENHYWFAR_API void GWEN_CryptMgr_SetLocalKeyNumber | ( | GWEN_CRYPTMGR * | cm, | |
int | i | |||
) |
Definition at line 81 of file cryptmgr.c.
Referenced by GWEN_CryptMgrKeys_new().
GWENHYWFAR_API void GWEN_CryptMgr_SetLocalKeyVersion | ( | GWEN_CRYPTMGR * | cm, | |
int | i | |||
) |
Definition at line 95 of file cryptmgr.c.
Referenced by GWEN_CryptMgrKeys_new().
GWENHYWFAR_API void GWEN_CryptMgr_SetPeerKeyName | ( | GWEN_CRYPTMGR * | cm, | |
const char * | s | |||
) |
Definition at line 109 of file cryptmgr.c.
References NULL.
Referenced by GWEN_CryptMgr_Verify(), and GWEN_CryptMgrKeys_new().
GWENHYWFAR_API void GWEN_CryptMgr_SetPeerKeyNumber | ( | GWEN_CRYPTMGR * | cm, | |
int | i | |||
) |
Definition at line 125 of file cryptmgr.c.
Referenced by GWEN_CryptMgr_Verify(), and GWEN_CryptMgrKeys_new().
GWENHYWFAR_API void GWEN_CryptMgr_SetPeerKeyVersion | ( | GWEN_CRYPTMGR * | cm, | |
int | i | |||
) |
Definition at line 139 of file cryptmgr.c.
Referenced by GWEN_CryptMgr_Verify(), and GWEN_CryptMgrKeys_new().
GWENHYWFAR_API GWEN_CRYPTMGR_SIGNDATA_FN GWEN_CryptMgr_SetSignDataFn | ( | GWEN_CRYPTMGR * | cm, | |
GWEN_CRYPTMGR_SIGNDATA_FN | f | |||
) |
Definition at line 218 of file cryptmgr.c.
Referenced by GWEN_CryptMgrKeys_new().
GWENHYWFAR_API GWEN_CRYPTMGR_VERIFYDATA_FN GWEN_CryptMgr_SetVerifyDataFn | ( | GWEN_CRYPTMGR * | cm, | |
GWEN_CRYPTMGR_VERIFYDATA_FN | f | |||
) |
Definition at line 230 of file cryptmgr.c.
Referenced by GWEN_CryptMgrKeys_new().
GWENHYWFAR_API int GWEN_CryptMgr_SignData | ( | GWEN_CRYPTMGR * | cm, | |
const uint8_t * | pData, | |||
uint32_t | lData, | |||
GWEN_BUFFER * | dbuf | |||
) |
Definition at line 176 of file cryptmgr.c.
References GWEN_ERROR_NOT_IMPLEMENTED.
Referenced by GWEN_CryptMgr_Sign().
GWENHYWFAR_API int GWEN_CryptMgr_VerifyData | ( | GWEN_CRYPTMGR * | cm, | |
const uint8_t * | pData, | |||
uint32_t | lData, | |||
const uint8_t * | pSignature, | |||
uint32_t | lSignature | |||
) |
Definition at line 196 of file cryptmgr.c.
References GWEN_ERROR_NOT_IMPLEMENTED.
Referenced by GWEN_CryptMgr_Verify().