|
MagickCore 7.0.10
|
#include "wizard/studio.h"#include "wizard/exception.h"#include "wizard/exception-private.h"#include "wizard/hash.h"#include "wizard/hmac.h"#include "wizard/memory_.h"Go to the source code of this file.
Data Structures | |
| struct | _HMACInfo |
Functions | |
| WizardExport HMACInfo * | AcquireHMACInfo (const HashType hash) |
| WizardExport void | ConstructHMAC (HMACInfo *hmac_info, const StringInfo *key, const StringInfo *message) |
| WizardExport HMACInfo * | DestroyHMACInfo (HMACInfo *hmac_info) |
| WizardExport void | FinalizeHMAC (HMACInfo *hmac_info) |
| WizardExport const StringInfo * | GetHMACDigest (const HMACInfo *hmac_info) |
| WizardExport size_t | GetHMACDigestsize (const HMACInfo *hmac_info) |
| WizardExport void | InitializeHMAC (HMACInfo *hmac_info, const StringInfo *key) |
| WizardExport void | ResetHMAC (HMACInfo *hmac_info) |
| WizardExport void | UpdateHMAC (HMACInfo *hmac_info, const StringInfo *message) |
| WizardExport HMACInfo * AcquireHMACInfo | ( | const HashType | hash | ) |
Definition at line 91 of file hmac.c.
References AcquireHashInfo(), AcquireStringInfo(), AcquireWizardMemory(), _HMACInfo::digest, _HMACInfo::final_nonce, GetHashBlocksize(), GetHashDigestsize(), _HMACInfo::hash_info, _HMACInfo::initial_nonce, MACDomain, MemoryError, _HMACInfo::signature, ThrowWizardFatalError, _HMACInfo::timestamp, and WizardSignature.
Referenced by AcquireRandomInfo(), AcquireSecretInfo(), and GenerateSessionKey().
| WizardExport void ConstructHMAC | ( | HMACInfo * | hmac_info, |
| const StringInfo * | key, | ||
| const StringInfo * | message | ||
| ) |
Definition at line 139 of file hmac.c.
References FinalizeHMAC(), GetWizardModule, InitializeHMAC(), LogWizardEvent(), _HMACInfo::signature, TraceEvent, UpdateHMAC(), and WizardSignature.
Referenced by AuthenticateSecretKey(), GenerateSecretKey(), and GenerateSessionKey().
| WizardExport HMACInfo * DestroyHMACInfo | ( | HMACInfo * | hmac_info | ) |
Definition at line 174 of file hmac.c.
References DestroyHashInfo(), DestroyStringInfo(), _HMACInfo::digest, _HMACInfo::final_nonce, GetWizardModule, _HMACInfo::hash_info, _HMACInfo::initial_nonce, LogWizardEvent(), RelinquishWizardMemory(), _HMACInfo::signature, TraceEvent, and WizardSignature.
Referenced by DestroyRandomInfo(), DestroySecretInfo(), and GenerateSessionKey().
| WizardExport void FinalizeHMAC | ( | HMACInfo * | hmac_info | ) |
Definition at line 214 of file hmac.c.
References _HMACInfo::digest, _HMACInfo::final_nonce, FinalizeHash(), GetHashDigest(), GetWizardModule, _HMACInfo::hash_info, InitializeHash(), LogWizardEvent(), SetStringInfo(), _HMACInfo::signature, TraceEvent, UpdateHash(), and WizardSignature.
Referenced by ConstructHMAC(), and SetRandomKey().
| WizardExport const StringInfo * GetHMACDigest | ( | const HMACInfo * | hmac_info | ) |
Definition at line 250 of file hmac.c.
References _HMACInfo::digest, GetWizardModule, LogWizardEvent(), MACDomain, _HMACInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by AcquireRandomInfo(), AuthenticateSecretKey(), GenerateSecretKey(), GenerateSessionKey(), SaveEntropyToReservoir(), and SetRandomKey().
| WizardExport size_t GetHMACDigestsize | ( | const HMACInfo * | hmac_info | ) |
Definition at line 280 of file hmac.c.
References CipherDomain, GetHashDigestsize(), GetWizardModule, _HMACInfo::hash_info, LogWizardEvent(), _HMACInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by AcquireRandomInfo(), and SetRandomKey().
| WizardExport void InitializeHMAC | ( | HMACInfo * | hmac_info, |
| const StringInfo * | key | ||
| ) |
Definition at line 312 of file hmac.c.
References _HMACInfo::final_nonce, FinalizeHash(), GetHashDigest(), GetStringInfoDatum(), GetStringInfoLength(), GetWizardModule, _HMACInfo::hash_info, _HMACInfo::initial_nonce, InitializeHash(), LogWizardEvent(), ResetHMAC(), ResetStringInfo(), SetStringInfo(), _HMACInfo::signature, TraceEvent, UpdateHash(), and WizardSignature.
Referenced by AcquireRandomInfo(), and ConstructHMAC().
| WizardExport void ResetHMAC | ( | HMACInfo * | hmac_info | ) |
Definition at line 366 of file hmac.c.
References GetWizardModule, _HMACInfo::hash_info, _HMACInfo::initial_nonce, InitializeHash(), LogWizardEvent(), _HMACInfo::signature, TraceEvent, UpdateHash(), and WizardSignature.
Referenced by InitializeHMAC(), and SetRandomKey().
| WizardExport void UpdateHMAC | ( | HMACInfo * | hmac_info, |
| const StringInfo * | message | ||
| ) |
Definition at line 399 of file hmac.c.
References GetWizardModule, _HMACInfo::hash_info, LogWizardEvent(), _HMACInfo::signature, TraceEvent, UpdateHash(), and WizardSignature.
Referenced by ConstructHMAC(), and SetRandomKey().