gwenhywfar 5.14.1
cryptmgrkeys.c File Reference
#include "cryptmgrkeys_p.h"
#include "i18n_l.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/mdigest.h>
#include <gwenhywfar/padd.h>
#include <gwenhywfar/crypthead.h>
#include <gwenhywfar/text.h>
Include dependency graph for cryptmgrkeys.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG

Functions

GWENHYWFAR_CB int GWEN_CryptMgrKeys_DecryptKey (GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf)
GWENHYWFAR_CB int GWEN_CryptMgrKeys_EncryptKey (GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf)
GWENHYWFAR_CB void GWEN_CryptMgrKeys_FreeData (GWEN_UNUSED void *bp, void *p)
GWEN_CRYPTMGRGWEN_CryptMgrKeys_new (const char *localName, GWEN_CRYPT_KEY *localKey, const char *peerName, GWEN_CRYPT_KEY *peerKey, int ownKeys)
void GWEN_CryptMgrKeys_SetPeerKey (GWEN_CRYPTMGR *cm, GWEN_CRYPT_KEY *peerKey, int ownKey)
GWENHYWFAR_CB int GWEN_CryptMgrKeys_SignData (GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, GWEN_BUFFER *dbuf)
GWENHYWFAR_CB int GWEN_CryptMgrKeys_VerifyData (GWEN_CRYPTMGR *cm, const uint8_t *pData, uint32_t lData, const uint8_t *pSignature, uint32_t lSignature)
 GWEN_INHERIT (GWEN_CRYPTMGR, GWEN_CRYPTMGR_KEYS)

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 15 of file cryptmgrkeys.c.

Function Documentation

◆ GWEN_CryptMgrKeys_DecryptKey()

◆ GWEN_CryptMgrKeys_EncryptKey()

◆ GWEN_CryptMgrKeys_FreeData()

GWENHYWFAR_CB void GWEN_CryptMgrKeys_FreeData ( GWEN_UNUSED void * bp,
void * p )

Definition at line 82 of file cryptmgrkeys.c.

References GWEN_Crypt_Key_free(), and GWEN_UNUSED.

Referenced by GWEN_CryptMgrKeys_new().

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

◆ GWEN_CryptMgrKeys_new()

◆ GWEN_CryptMgrKeys_SetPeerKey()

void GWEN_CryptMgrKeys_SetPeerKey ( GWEN_CRYPTMGR * cm,
GWEN_CRYPT_KEY * peerKey,
int ownKey )

Definition at line 96 of file cryptmgrkeys.c.

References GWEN_Crypt_Key_free(), and GWEN_INHERIT_GETDATA.

Here is the call graph for this function:

◆ GWEN_CryptMgrKeys_SignData()

◆ GWEN_CryptMgrKeys_VerifyData()

◆ GWEN_INHERIT()

GWEN_INHERIT ( GWEN_CRYPTMGR ,
GWEN_CRYPTMGR_KEYS  )