|
MagickCore 7.0.10
|
#include "wizard/studio.h"#include "wizard/exception.h"#include "wizard/exception-private.h"#include "wizard/memory_.h"#include "wizard/sha2384.h"Go to the source code of this file.
Data Structures | |
| struct | _SHA2384Info |
Macros | |
| #define | SHA2384Blocksize 128 |
| #define | SHA2384Digestsize 48 |
| #define | Sigma0(x) (RotateRight(x,1) ^ RotateRight(x,8) ^ Trunc64((x) >> 7)) |
| #define | Sigma1(x) (RotateRight(x,19) ^ RotateRight(x,61) ^ Trunc64((x) >> 6)) |
| #define | Suma0(x) (RotateRight(x,28) ^ RotateRight(x,34) ^ RotateRight(x,39)) |
| #define | Suma1(x) (RotateRight(x,14) ^ RotateRight(x,18) ^ RotateRight(x,41)) |
Functions | |
| static void | TransformSHA2384 (SHA2384Info *) |
| WizardExport SHA2384Info * | AcquireSHA2384Info (void) |
| WizardExport SHA2384Info * | DestroySHA2384Info (SHA2384Info *sha_info) |
| WizardExport WizardBooleanType | FinalizeSHA2384 (SHA2384Info *sha_info) |
| WizardExport unsigned int | GetSHA2384Blocksize (const SHA2384Info *sha2384_info) |
| WizardExport const StringInfo * | GetSHA2384Digest (const SHA2384Info *sha2384_info) |
| WizardExport unsigned int | GetSHA2384Digestsize (const SHA2384Info *sha2384_info) |
| WizardExport WizardBooleanType | InitializeSHA2384 (SHA2384Info *sha_info) |
| static WizardSizeType | Ch (const WizardSizeType x, const WizardSizeType y, const WizardSizeType z) |
| static WizardSizeType | Maj (const WizardSizeType x, const WizardSizeType y, const WizardSizeType z) |
| static WizardSizeType | Trunc64 (const WizardSizeType x) |
| static WizardSizeType | RotateRight (const WizardSizeType x, const WizardSizeType n) |
| WizardExport WizardBooleanType | UpdateSHA2384 (SHA2384Info *sha_info, const StringInfo *message) |
| #define Sigma0 | ( | x | ) | (RotateRight(x,1) ^ RotateRight(x,8) ^ Trunc64((x) >> 7)) |
| #define Sigma1 | ( | x | ) | (RotateRight(x,19) ^ RotateRight(x,61) ^ Trunc64((x) >> 6)) |
| #define Suma0 | ( | x | ) | (RotateRight(x,28) ^ RotateRight(x,34) ^ RotateRight(x,39)) |
| #define Suma1 | ( | x | ) | (RotateRight(x,14) ^ RotateRight(x,18) ^ RotateRight(x,41)) |
| WizardExport SHA2384Info * AcquireSHA2384Info | ( | void | ) |
Definition at line 108 of file sha2384.c.
References _SHA2384Info::accumulator, AcquireQuantumMemory(), AcquireStringInfo(), AcquireWizardMemory(), _SHA2384Info::blocksize, _SHA2384Info::digest, _SHA2384Info::digestsize, HashError, InitializeSHA2384(), _SHA2384Info::lsb_first, MemoryError, _SHA2384Info::message, SHA2384Blocksize, SHA2384Digestsize, _SHA2384Info::signature, ThrowWizardFatalError, _SHA2384Info::timestamp, WizardFalse, WizardSignature, and WizardTrue.
Referenced by AcquireHashInfo().
|
inlinestatic |
| WizardExport SHA2384Info * DestroySHA2384Info | ( | SHA2384Info * | sha_info | ) |
Definition at line 159 of file sha2384.c.
References _SHA2384Info::accumulator, DestroyStringInfo(), _SHA2384Info::digest, GetWizardModule, LogWizardEvent(), _SHA2384Info::message, RelinquishWizardMemory(), _SHA2384Info::signature, TraceEvent, and WizardSignature.
Referenced by DestroyHashInfo().
| WizardExport WizardBooleanType FinalizeSHA2384 | ( | SHA2384Info * | sha_info | ) |
Definition at line 198 of file sha2384.c.
References _SHA2384Info::accumulator, _SHA2384Info::digest, GetStringInfoDatum(), GetStringInfoLength(), GetWizardModule, _SHA2384Info::high_order, LogWizardEvent(), _SHA2384Info::low_order, _SHA2384Info::message, SHA2384Digestsize, _SHA2384Info::signature, TraceEvent, TransformSHA2384(), WizardSignature, and WizardTrue.
Referenced by FinalizeHash().
| WizardExport unsigned int GetSHA2384Blocksize | ( | const SHA2384Info * | sha2384_info | ) |
Definition at line 303 of file sha2384.c.
References _SHA2384Info::blocksize, CipherDomain, GetWizardModule, LogWizardEvent(), _SHA2384Info::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by GetHashBlocksize().
| WizardExport const StringInfo * GetSHA2384Digest | ( | const SHA2384Info * | sha2384_info | ) |
Definition at line 333 of file sha2384.c.
References _SHA2384Info::digest, GetWizardModule, HashDomain, LogWizardEvent(), _SHA2384Info::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by FinalizeHash().
| WizardExport unsigned int GetSHA2384Digestsize | ( | const SHA2384Info * | sha2384_info | ) |
Definition at line 363 of file sha2384.c.
References CipherDomain, _SHA2384Info::digestsize, GetWizardModule, LogWizardEvent(), _SHA2384Info::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by AcquireHashInfo(), and GetHashDigestsize().
| WizardExport WizardBooleanType InitializeSHA2384 | ( | SHA2384Info * | sha_info | ) |
Definition at line 393 of file sha2384.c.
References _SHA2384Info::accumulator, GetWizardModule, _SHA2384Info::high_order, LogWizardEvent(), _SHA2384Info::low_order, _SHA2384Info::offset, _SHA2384Info::signature, TraceEvent, WizardSignature, WizardTrue, and WizardULLConstant.
Referenced by AcquireSHA2384Info(), and InitializeHash().
|
inlinestatic |
|
static |
|
static |
Definition at line 458 of file sha2384.c.
References _SHA2384Info::accumulator, Ch, F(), G(), GetStringInfoDatum(), H(), _SHA2384Info::lsb_first, Maj, _SHA2384Info::message, Sigma0, Sigma1, Suma0, Suma1, Trunc64(), WizardFalse, and WizardULLConstant.
Referenced by FinalizeSHA2384(), and UpdateSHA2384().
|
inlinestatic |
Definition at line 447 of file sha2384.c.
References WizardULLConstant.
Referenced by RotateRight(), TransformSHA2384(), and UpdateSHA2384().
| WizardExport WizardBooleanType UpdateSHA2384 | ( | SHA2384Info * | sha_info, |
| const StringInfo * | message | ||
| ) |
Definition at line 675 of file sha2384.c.
References CopyWizardMemory(), GetStringInfoDatum(), GetStringInfoLength(), _SHA2384Info::high_order, _SHA2384Info::low_order, _SHA2384Info::message, _SHA2384Info::offset, SetStringInfoDatum(), _SHA2384Info::signature, TransformSHA2384(), Trunc64(), WizardSignature, and WizardTrue.
Referenced by UpdateHash().