MagickCore 7.0.10
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
 

Macros

#define KeymapCipher   AESCipher
 
#define KeymapMode   CTRMode
 
#define SessionKeyHash   SHA2256Hash
 
#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)
 

Macro Definition Documentation

◆ KeymapCipher

#define KeymapCipher   AESCipher

Definition at line 56 of file key.c.

◆ KeymapMode

#define KeymapMode   CTRMode

Definition at line 57 of file key.c.

◆ SessionKeyHash

#define SessionKeyHash   SHA2256Hash

Definition at line 58 of file key.c.

◆ SessionKeyLength

#define SessionKeyLength   512

Definition at line 59 of file key.c.

Function Documentation

◆ AcquireKeyInfo()

◆ DestroyKeyInfo()

◆ DestroyNode()

static void * DestroyNode ( void *  entry)
static

Definition at line 105 of file key.c.

References DestroyStringInfo().

Referenced by AcquireKeyInfo().

◆ GenerateSessionKey()

◆ GetKeyInfo()

◆ SetKeyInfo()