gwenhywfar 4.0.3
Typedefs | Functions

cryptmgr_be.h File Reference

#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_CRYPTMGRGWEN_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 Documentation

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.


Function Documentation

GWENHYWFAR_API int GWEN_CryptMgr_DecryptKey ( GWEN_CRYPTMGR cm,
const uint8_t *  pData,
uint32_t  lData,
GWEN_BUFFER dbuf 
)

Definition at line 210 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 188 of file cryptmgr.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by GWEN_CryptMgr_Encrypt().

GWENHYWFAR_API GWEN_CRYPTMGR* GWEN_CryptMgr_new ( )

Definition at line 37 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 256 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 244 of file cryptmgr.c.

Referenced by GWEN_CryptMgrKeys_new().

GWENHYWFAR_API void GWEN_CryptMgr_SetLocalKeyName ( GWEN_CRYPTMGR cm,
const char *  s 
)

Definition at line 67 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 83 of file cryptmgr.c.

Referenced by GWEN_CryptMgrKeys_new().

GWENHYWFAR_API void GWEN_CryptMgr_SetLocalKeyVersion ( GWEN_CRYPTMGR cm,
int  i 
)

Definition at line 97 of file cryptmgr.c.

Referenced by GWEN_CryptMgrKeys_new().

GWENHYWFAR_API void GWEN_CryptMgr_SetPeerKeyName ( GWEN_CRYPTMGR cm,
const char *  s 
)

Definition at line 111 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 127 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 141 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 220 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 232 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 178 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 198 of file cryptmgr.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by GWEN_CryptMgr_Verify().