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

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 SHA2384InfoAcquireSHA2384Info (void)
 
WizardExport SHA2384InfoDestroySHA2384Info (SHA2384Info *sha_info)
 
WizardExport WizardBooleanType FinalizeSHA2384 (SHA2384Info *sha_info)
 
WizardExport unsigned int GetSHA2384Blocksize (const SHA2384Info *sha2384_info)
 
WizardExport const StringInfoGetSHA2384Digest (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)
 

Macro Definition Documentation

◆ SHA2384Blocksize

#define SHA2384Blocksize   128

Definition at line 50 of file sha2384.c.

◆ SHA2384Digestsize

#define SHA2384Digestsize   48

Definition at line 51 of file sha2384.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

◆ AcquireSHA2384Info()

◆ Ch()

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

Definition at line 435 of file sha2384.c.

◆ DestroySHA2384Info()

◆ FinalizeSHA2384()

◆ GetSHA2384Blocksize()

WizardExport unsigned int GetSHA2384Blocksize ( const SHA2384Info sha2384_info)

◆ GetSHA2384Digest()

WizardExport const StringInfo * GetSHA2384Digest ( const SHA2384Info sha2384_info)

◆ GetSHA2384Digestsize()

WizardExport unsigned int GetSHA2384Digestsize ( const SHA2384Info sha2384_info)

◆ InitializeSHA2384()

◆ Maj()

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

Definition at line 441 of file sha2384.c.

◆ RotateRight()

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

Definition at line 452 of file sha2384.c.

References Trunc64().

◆ TransformSHA2384()

static void TransformSHA2384 ( SHA2384Info sha_info)
static

◆ Trunc64()

static WizardSizeType Trunc64 ( const WizardSizeType  x)
inlinestatic

Definition at line 447 of file sha2384.c.

References WizardULLConstant.

Referenced by RotateRight(), TransformSHA2384(), and UpdateSHA2384().

◆ UpdateSHA2384()