WizardsToolkit  1.0.7
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"
Include dependency graph for key.c:

Go to the source code of this file.

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

Definition at line 56 of file key.c.

Referenced by AcquireKeyInfo().

#define KeymapMode   CTRMode

Definition at line 57 of file key.c.

Referenced by AcquireKeyInfo().

#define SessionKeyHash   SHA256Hash

Definition at line 58 of file key.c.

Referenced by AcquireKeyInfo(), and GenerateSessionKey().

#define SessionKeyLength   512

Definition at line 59 of file key.c.

Referenced by GenerateSessionKey().


Function Documentation

static void* DestroyNode ( void *  entry) [static]

Definition at line 105 of file key.c.

References DestroyStringInfo().

Referenced by AcquireKeyInfo().