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

Go to the source code of this file.

Data Structures

struct  _SHA2512Info
 

Macros

#define SHA2512Blocksize   128
 
#define SHA2512Digestsize   64
 
#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 TransformSHA2512 (SHA2512Info *)
 
WizardExport SHA2512InfoAcquireSHA2512Info (void)
 
WizardExport SHA2512InfoDestroySHA2512Info (SHA2512Info *sha_info)
 
WizardExport WizardBooleanType FinalizeSHA2512 (SHA2512Info *sha_info)
 
WizardExport unsigned int GetSHA2512Blocksize (const SHA2512Info *sha2512_info)
 
WizardExport const StringInfoGetSHA2512Digest (const SHA2512Info *sha2512_info)
 
WizardExport unsigned int GetSHA2512Digestsize (const SHA2512Info *sha2512_info)
 
WizardExport WizardBooleanType InitializeSHA2512 (SHA2512Info *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 UpdateSHA2512 (SHA2512Info *sha_info, const StringInfo *message)
 

Macro Definition Documentation

◆ SHA2512Blocksize

#define SHA2512Blocksize   128

Definition at line 50 of file sha2512.c.

◆ SHA2512Digestsize

#define SHA2512Digestsize   64

Definition at line 51 of file sha2512.c.

◆ Sigma0

#define Sigma0 (   x)    (RotateRight(x,1) ^ RotateRight(x,8) ^ Trunc64((x) >> 7))

◆ Sigma1

#define Sigma1 (   x)    (RotateRight(x,19) ^ RotateRight(x,61) ^ Trunc64((x) >> 6))

◆ Suma0

#define Suma0 (   x)    (RotateRight(x,28) ^ RotateRight(x,34) ^ RotateRight(x,39))

◆ Suma1

#define Suma1 (   x)    (RotateRight(x,14) ^ RotateRight(x,18) ^ RotateRight(x,41))

Function Documentation

◆ AcquireSHA2512Info()

◆ Ch()

static WizardSizeType Ch ( const WizardSizeType  x,
const WizardSizeType  y,
const WizardSizeType  z 
)
inlinestatic

Definition at line 435 of file sha2512.c.

◆ DestroySHA2512Info()

◆ FinalizeSHA2512()

◆ GetSHA2512Blocksize()

WizardExport unsigned int GetSHA2512Blocksize ( const SHA2512Info sha2512_info)

◆ GetSHA2512Digest()

WizardExport const StringInfo * GetSHA2512Digest ( const SHA2512Info sha2512_info)

◆ GetSHA2512Digestsize()

WizardExport unsigned int GetSHA2512Digestsize ( const SHA2512Info sha2512_info)

◆ InitializeSHA2512()

◆ Maj()

static WizardSizeType Maj ( const WizardSizeType  x,
const WizardSizeType  y,
const WizardSizeType  z 
)
inlinestatic

Definition at line 441 of file sha2512.c.

◆ RotateRight()

static WizardSizeType RotateRight ( const WizardSizeType  x,
const WizardSizeType  n 
)
inlinestatic

Definition at line 452 of file sha2512.c.

References Trunc64().

◆ TransformSHA2512()

static void TransformSHA2512 ( SHA2512Info sha_info)
static

◆ Trunc64()

static WizardSizeType Trunc64 ( const WizardSizeType  x)
inlinestatic

Definition at line 447 of file sha2512.c.

References WizardULLConstant.

Referenced by RotateRight(), TransformSHA2512(), and UpdateSHA2512().

◆ UpdateSHA2512()