gwenhywfar 5.12.0
cryptmgr_be.h File Reference
#include <gwenhywfar/cryptmgr.h>
#include <gwenhywfar/inherit.h>
Include dependency graph for cryptmgr_be.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 (void)
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

◆ GWEN_CRYPTMGR_DECRYPTKEY_FN

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.

◆ GWEN_CRYPTMGR_ENCRYPTKEY_FN

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.

◆ GWEN_CRYPTMGR_SIGNDATA_FN

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.

◆ GWEN_CRYPTMGR_VERIFYDATA_FN

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

◆ GWEN_CryptMgr_DecryptKey()

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

Definition at line 235 of file cryptmgr.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by GWEN_CryptMgr_Decrypt().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_EncryptKey()

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

Definition at line 211 of file cryptmgr.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by GWEN_CryptMgr_Encrypt().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_new()

GWENHYWFAR_API GWEN_CRYPTMGR * GWEN_CryptMgr_new ( void )

Definition at line 37 of file cryptmgr.c.

References GWEN_CryptMgr_new(), GWEN_INHERIT_INIT, and GWEN_NEW_OBJECT.

Referenced by GWEN_CryptMgr_new(), and GWEN_CryptMgrKeys_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetDecryptKeyFn()

Definition at line 285 of file cryptmgr.c.

Referenced by GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetEncryptKeyFn()

Definition at line 272 of file cryptmgr.c.

Referenced by GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetLocalKeyName()

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

Definition at line 70 of file cryptmgr.c.

References NULL.

Referenced by GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetLocalKeyNumber()

GWENHYWFAR_API void GWEN_CryptMgr_SetLocalKeyNumber ( GWEN_CRYPTMGR * cm,
int i )

Definition at line 90 of file cryptmgr.c.

Referenced by GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetLocalKeyVersion()

GWENHYWFAR_API void GWEN_CryptMgr_SetLocalKeyVersion ( GWEN_CRYPTMGR * cm,
int i )

Definition at line 106 of file cryptmgr.c.

Referenced by GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetPeerKeyName()

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

Definition at line 122 of file cryptmgr.c.

References NULL.

Referenced by GWEN_CryptMgr_Verify(), and GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetPeerKeyNumber()

GWENHYWFAR_API void GWEN_CryptMgr_SetPeerKeyNumber ( GWEN_CRYPTMGR * cm,
int i )

Definition at line 142 of file cryptmgr.c.

Referenced by GWEN_CryptMgr_Verify(), and GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetPeerKeyVersion()

GWENHYWFAR_API void GWEN_CryptMgr_SetPeerKeyVersion ( GWEN_CRYPTMGR * cm,
int i )

Definition at line 158 of file cryptmgr.c.

Referenced by GWEN_CryptMgr_Verify(), and GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetSignDataFn()

Definition at line 246 of file cryptmgr.c.

Referenced by GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SetVerifyDataFn()

Definition at line 259 of file cryptmgr.c.

Referenced by GWEN_CryptMgrKeys_new().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_SignData()

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

Definition at line 200 of file cryptmgr.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by GWEN_CryptMgr_Sign().

Here is the caller graph for this function:

◆ GWEN_CryptMgr_VerifyData()

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 222 of file cryptmgr.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by GWEN_CryptMgr_Verify().

Here is the caller graph for this function: