MagickCore 7.0.10
|
#include "wizard/hmac.h"
Go to the source code of this file.
Typedefs | |
typedef struct _RandomInfo | RandomInfo |
Functions | |
WizardExport double | GetPseudoRandomValue (RandomInfo *) |
WizardExport double | GetRandomValue (RandomInfo *) |
WizardExport RandomInfo * | AcquireRandomInfo (const HashType) |
WizardExport RandomInfo * | DestroyRandomInfo (RandomInfo *) |
WizardExport StringInfo * | GetRandomKey (RandomInfo *, const size_t) |
WizardExport unsigned long | GetRandomSecretKey (const RandomInfo *) |
WizardExport void | RandomComponentTerminus (void) |
WizardExport void | SetRandomKey (RandomInfo *, const size_t, unsigned char *) |
WizardExport void | SetRandomSecretKey (const unsigned long) |
WizardExport void | SetRandomTrueRandom (const WizardBooleanType) |
WizardExport WizardBooleanType | RandomComponentGenesis (void) |
typedef struct _RandomInfo RandomInfo |
WizardExport RandomInfo * AcquireRandomInfo | ( | const HashType | ) |
WizardExport RandomInfo * DestroyRandomInfo | ( | RandomInfo * | random_info | ) |
Definition at line 289 of file random.c.
References CipherDomain, DestroyHMACInfo(), DestroyStringInfo(), GetWizardModule, _RandomInfo::hmac_info, LockSemaphoreInfo(), LogWizardEvent(), _RandomInfo::nonce, random_info, RelinquishSemaphoreInfo(), RelinquishWizardMemory(), _RandomInfo::reservoir, _RandomInfo::seed, _RandomInfo::semaphore, _RandomInfo::signature, TraceEvent, UnlockSemaphoreInfo(), WizardAssert, and WizardSignature.
Referenced by AcquireRandomInfo(), AsynchronousResourceComponentTerminus(), DestroyCipherInfo(), DestroyKeyInfo(), and DestroySecretInfo().
WizardExport double GetPseudoRandomValue | ( | RandomInfo * | ) |
WizardExport StringInfo * GetRandomKey | ( | RandomInfo * | random_info, |
const size_t | length | ||
) |
Definition at line 820 of file random.c.
References AcquireStringInfo(), CipherDomain, GetStringInfoDatum(), random_info, SetRandomKey(), and WizardAssert.
Referenced by AcquireRandomInfo(), AcquireUniqueFileResource(), GenerateCipherNonce(), GenerateSecretKey(), and GenerateSessionKey().
WizardExport unsigned long GetRandomSecretKey | ( | const RandomInfo * | random_info | ) |
Definition at line 853 of file random.c.
References random_info, and _RandomInfo::secret_key.
WizardExport double GetRandomValue | ( | RandomInfo * | random_info | ) |
Definition at line 878 of file random.c.
References random_info, and SetRandomKey().
WizardExport WizardBooleanType RandomComponentGenesis | ( | void | ) |
Definition at line 910 of file random.c.
References AcquireSemaphoreInfo(), random_semaphore, and WizardTrue.
Referenced by WizardsToolkitGenesis().
WizardExport void RandomComponentTerminus | ( | void | ) |
WizardExport void SetRandomKey | ( | RandomInfo * | , |
const size_t | , | ||
unsigned char * | |||
) |
WizardExport void SetRandomSecretKey | ( | const unsigned long | ) |
WizardExport void SetRandomTrueRandom | ( | const WizardBooleanType | true_random | ) |
Definition at line 1174 of file random.c.
References gather_true_random.