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>

Go to the source code of this file.

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)


Function Documentation

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 
)

Definition at line 78 of file cryptmgrkeys.c.

References GWEN_Crypt_Key_free().

Referenced by GWEN_CryptMgrKeys_new().

GWEN_CRYPTMGR* GWEN_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 
)

Definition at line 91 of file cryptmgrkeys.c.

References GWEN_Crypt_Key_free(), and GWEN_INHERIT_GETDATA.

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   
)


Generated on Mon Jan 25 12:56:03 2010 for gwenhywfar by  doxygen 1.5.6