Data Structures | Defines | Functions

key.c File Reference

#include "wizard/studio.h"
#include "wizard/cipher.h"
#include "wizard/exception.h"
#include "wizard/exception-private.h"
#include "wizard/hmac.h"
#include "wizard/key.h"
#include "wizard/memory_.h"
#include "wizard/random_.h"
#include "wizard/splay-tree.h"

Data Structures

struct  _KeyInfo

Defines

#define KeymapCipher   AESCipher
#define KeymapMode   CTRMode
#define SessionKeyHash   SHA256Hash
#define SessionKeyLength   512

Functions

static void * DestroyNode (void *entry)
WizardExport KeyInfoAcquireKeyInfo (void)
WizardExport KeyInfoDestroyKeyInfo (KeyInfo *key_info)
WizardExport StringInfoGenerateSessionKey (KeyInfo *key_info)
WizardExport StringInfoGetKeyInfo (KeyInfo *key_info, const StringInfo *id)
WizardExport WizardBooleanType SetKeyInfo (KeyInfo *key_info, const StringInfo *id, const StringInfo *key)

Define Documentation

#define KeymapCipher   AESCipher

Referenced by AcquireKeyInfo().

#define KeymapMode   CTRMode

Referenced by AcquireKeyInfo().

#define SessionKeyHash   SHA256Hash
#define SessionKeyLength   512

Referenced by GenerateSessionKey().


Function Documentation

WizardExport KeyInfo* AcquireKeyInfo ( void   ) 
WizardExport KeyInfo* DestroyKeyInfo ( KeyInfo key_info  ) 
static void* DestroyNode ( void *  entry  )  [static]

References DestroyStringInfo().

Referenced by AcquireKeyInfo().

WizardExport StringInfo* GenerateSessionKey ( KeyInfo key_info  ) 
WizardExport StringInfo* GetKeyInfo ( KeyInfo key_info,
const StringInfo id 
)
WizardExport WizardBooleanType SetKeyInfo ( KeyInfo key_info,
const StringInfo id,
const StringInfo key 
)