|
MagickCore 7.0.10
|
#include "wizard/studio.h"#include "wizard/exception.h"#include "wizard/exception-private.h"#include "wizard/memory_.h"#include "wizard/sha2224.h"Go to the source code of this file.
Data Structures | |
| struct | _SHA2224Info |
Macros | |
| #define | SHA2224Blocksize 64 |
| #define | SHA2224Digestsize 28 |
| #define | Sigma0(x) (RotateRight(x,7) ^ RotateRight(x,18) ^ Trunc32((x) >> 3)) |
| #define | Sigma1(x) (RotateRight(x,17) ^ RotateRight(x,19) ^ Trunc32((x) >> 10)) |
| #define | Suma0(x) (RotateRight(x,2) ^ RotateRight(x,13) ^ RotateRight(x,22)) |
| #define | Suma1(x) (RotateRight(x,6) ^ RotateRight(x,11) ^ RotateRight(x,25)) |
Functions | |
| static void | TransformSHA2224 (SHA2224Info *) |
| WizardExport SHA2224Info * | AcquireSHA2224Info (void) |
| WizardExport SHA2224Info * | DestroySHA2224Info (SHA2224Info *sha_info) |
| WizardExport WizardBooleanType | FinalizeSHA2224 (SHA2224Info *sha_info) |
| WizardExport unsigned int | GetSHA2224Blocksize (const SHA2224Info *sha2224_info) |
| WizardExport const StringInfo * | GetSHA2224Digest (const SHA2224Info *sha2224_info) |
| WizardExport unsigned int | GetSHA2224Digestsize (const SHA2224Info *sha2224_info) |
| WizardExport WizardBooleanType | InitializeSHA2224 (SHA2224Info *sha_info) |
| static unsigned int | Ch (const unsigned int x, const unsigned int y, const unsigned int z) |
| static unsigned int | Maj (const unsigned int x, const unsigned int y, const unsigned int z) |
| static unsigned int | Trunc32 (const unsigned int x) |
| static unsigned int | RotateRight (const unsigned int x, const unsigned int n) |
| WizardExport WizardBooleanType | UpdateSHA2224 (SHA2224Info *sha_info, const StringInfo *message) |
| #define Sigma0 | ( | x | ) | (RotateRight(x,7) ^ RotateRight(x,18) ^ Trunc32((x) >> 3)) |
| #define Sigma1 | ( | x | ) | (RotateRight(x,17) ^ RotateRight(x,19) ^ Trunc32((x) >> 10)) |
| #define Suma0 | ( | x | ) | (RotateRight(x,2) ^ RotateRight(x,13) ^ RotateRight(x,22)) |
| #define Suma1 | ( | x | ) | (RotateRight(x,6) ^ RotateRight(x,11) ^ RotateRight(x,25)) |
| WizardExport SHA2224Info * AcquireSHA2224Info | ( | void | ) |
Definition at line 108 of file sha2224.c.
References _SHA2224Info::accumulator, AcquireQuantumMemory(), AcquireStringInfo(), AcquireWizardMemory(), _SHA2224Info::blocksize, _SHA2224Info::digest, _SHA2224Info::digestsize, HashError, InitializeSHA2224(), _SHA2224Info::lsb_first, MemoryError, _SHA2224Info::message, SHA2224Blocksize, SHA2224Digestsize, _SHA2224Info::signature, ThrowWizardFatalError, _SHA2224Info::timestamp, WizardFalse, WizardSignature, and WizardTrue.
Referenced by AcquireHashInfo().
|
inlinestatic |
| WizardExport SHA2224Info * DestroySHA2224Info | ( | SHA2224Info * | sha_info | ) |
Definition at line 158 of file sha2224.c.
References _SHA2224Info::accumulator, DestroyStringInfo(), _SHA2224Info::digest, GetWizardModule, LogWizardEvent(), _SHA2224Info::message, RelinquishWizardMemory(), _SHA2224Info::signature, TraceEvent, and WizardSignature.
Referenced by DestroyHashInfo().
| WizardExport WizardBooleanType FinalizeSHA2224 | ( | SHA2224Info * | sha_info | ) |
Definition at line 197 of file sha2224.c.
References _SHA2224Info::accumulator, _SHA2224Info::digest, GetStringInfoDatum(), GetStringInfoLength(), GetWizardModule, _SHA2224Info::high_order, LogWizardEvent(), _SHA2224Info::low_order, _SHA2224Info::message, SHA2224Digestsize, _SHA2224Info::signature, TraceEvent, TransformSHA2224(), WizardSignature, and WizardTrue.
Referenced by FinalizeHash().
| WizardExport unsigned int GetSHA2224Blocksize | ( | const SHA2224Info * | sha2224_info | ) |
Definition at line 290 of file sha2224.c.
References _SHA2224Info::blocksize, CipherDomain, GetWizardModule, LogWizardEvent(), _SHA2224Info::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by GetHashBlocksize().
| WizardExport const StringInfo * GetSHA2224Digest | ( | const SHA2224Info * | sha2224_info | ) |
Definition at line 320 of file sha2224.c.
References _SHA2224Info::digest, GetWizardModule, HashDomain, LogWizardEvent(), _SHA2224Info::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by FinalizeHash().
| WizardExport unsigned int GetSHA2224Digestsize | ( | const SHA2224Info * | sha2224_info | ) |
Definition at line 350 of file sha2224.c.
References CipherDomain, _SHA2224Info::digestsize, GetWizardModule, LogWizardEvent(), _SHA2224Info::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by AcquireHashInfo(), and GetHashDigestsize().
| WizardExport WizardBooleanType InitializeSHA2224 | ( | SHA2224Info * | sha_info | ) |
Definition at line 380 of file sha2224.c.
References _SHA2224Info::accumulator, GetWizardModule, _SHA2224Info::high_order, LogWizardEvent(), _SHA2224Info::low_order, _SHA2224Info::offset, _SHA2224Info::signature, TraceEvent, WizardSignature, and WizardTrue.
Referenced by AcquireSHA2224Info(), and InitializeHash().
|
inlinestatic |
|
static |
|
static |
Definition at line 444 of file sha2224.c.
References _SHA2224Info::accumulator, Ch, F(), G(), GetStringInfoDatum(), H(), _SHA2224Info::lsb_first, Maj, _SHA2224Info::message, Sigma0, Sigma1, Suma0, Suma1, Trunc32, and WizardFalse.
Referenced by FinalizeSHA2224(), and UpdateSHA2224().
|
inlinestatic |
| WizardExport WizardBooleanType UpdateSHA2224 | ( | SHA2224Info * | sha_info, |
| const StringInfo * | message | ||
| ) |
Definition at line 611 of file sha2224.c.
References CopyWizardMemory(), GetStringInfoDatum(), GetStringInfoLength(), _SHA2224Info::high_order, _SHA2224Info::low_order, _SHA2224Info::message, _SHA2224Info::offset, SetStringInfoDatum(), _SHA2224Info::signature, TransformSHA2224(), Trunc32, WizardSignature, and WizardTrue.
Referenced by UpdateHash().