MagickCore 7.0.10
sha2224.c File Reference
Include dependency graph for sha2224.c:

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 SHA2224InfoAcquireSHA2224Info (void)
 
WizardExport SHA2224InfoDestroySHA2224Info (SHA2224Info *sha_info)
 
WizardExport WizardBooleanType FinalizeSHA2224 (SHA2224Info *sha_info)
 
WizardExport unsigned int GetSHA2224Blocksize (const SHA2224Info *sha2224_info)
 
WizardExport const StringInfoGetSHA2224Digest (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)
 

Macro Definition Documentation

◆ SHA2224Blocksize

#define SHA2224Blocksize   64

Definition at line 50 of file sha2224.c.

◆ SHA2224Digestsize

#define SHA2224Digestsize   28

Definition at line 51 of file sha2224.c.

◆ Sigma0

#define Sigma0 (   x)    (RotateRight(x,7) ^ RotateRight(x,18) ^ Trunc32((x) >> 3))

◆ Sigma1

#define Sigma1 (   x)    (RotateRight(x,17) ^ RotateRight(x,19) ^ Trunc32((x) >> 10))

◆ Suma0

#define Suma0 (   x)    (RotateRight(x,2) ^ RotateRight(x,13) ^ RotateRight(x,22))

◆ Suma1

#define Suma1 (   x)    (RotateRight(x,6) ^ RotateRight(x,11) ^ RotateRight(x,25))

Function Documentation

◆ AcquireSHA2224Info()

◆ Ch()

static unsigned int Ch ( const unsigned int  x,
const unsigned int  y,
const unsigned int  z 
)
inlinestatic

Definition at line 422 of file sha2224.c.

◆ DestroySHA2224Info()

◆ FinalizeSHA2224()

◆ GetSHA2224Blocksize()

WizardExport unsigned int GetSHA2224Blocksize ( const SHA2224Info sha2224_info)

◆ GetSHA2224Digest()

WizardExport const StringInfo * GetSHA2224Digest ( const SHA2224Info sha2224_info)

◆ GetSHA2224Digestsize()

WizardExport unsigned int GetSHA2224Digestsize ( const SHA2224Info sha2224_info)

◆ InitializeSHA2224()

◆ Maj()

static unsigned int Maj ( const unsigned int  x,
const unsigned int  y,
const unsigned int  z 
)
inlinestatic

Definition at line 428 of file sha2224.c.

◆ RotateRight()

static unsigned int RotateRight ( const unsigned int  x,
const unsigned int  n 
)
static

Definition at line 439 of file sha2224.c.

References Trunc32.

◆ TransformSHA2224()

static void TransformSHA2224 ( SHA2224Info sha_info)
static

◆ Trunc32()

static unsigned int Trunc32 ( const unsigned int  x)
inlinestatic

Definition at line 434 of file sha2224.c.

◆ UpdateSHA2224()