MagickCore  7.0.2
signature.c File Reference
Include dependency graph for signature.c:

Go to the source code of this file.

Data Structures

struct  _SignatureInfo
 

Macros

#define SignatureBlocksize   64
 
#define SignatureDigestsize   32
 
#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 TransformSignature (SignatureInfo *)
 
MagickPrivate SignatureInfoAcquireSignatureInfo (void)
 
MagickPrivate SignatureInfoDestroySignatureInfo (SignatureInfo *signature_info)
 
MagickPrivate void FinalizeSignature (SignatureInfo *signature_info)
 
MagickPrivate unsigned int GetSignatureBlocksize (const SignatureInfo *signature_info)
 
MagickPrivate const StringInfoGetSignatureDigest (const SignatureInfo *signature_info)
 
MagickPrivate unsigned int GetSignatureDigestsize (const SignatureInfo *signature_info)
 
MagickPrivate void InitializeSignature (SignatureInfo *signature_info)
 
MagickPrivate void SetSignatureDigest (SignatureInfo *signature_info, const StringInfo *digest)
 
MagickExport MagickBooleanType SignatureImage (Image *image, ExceptionInfo *exception)
 
static unsigned int Ch (unsigned int x, unsigned int y, unsigned int z)
 
static unsigned int Maj (unsigned int x, unsigned int y, unsigned int z)
 
static unsigned int Trunc32 (unsigned int x)
 
static unsigned int RotateRight (unsigned int x, unsigned int n)
 
MagickPrivate void UpdateSignature (SignatureInfo *signature_info, const StringInfo *message)
 

Macro Definition Documentation

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

Referenced by TransformSignature().

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

Referenced by TransformSignature().

#define SignatureBlocksize   64

Definition at line 58 of file signature.c.

Referenced by AcquireSignatureInfo().

#define SignatureDigestsize   32

Definition at line 59 of file signature.c.

Referenced by AcquireSignatureInfo(), and FinalizeSignature().

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

Referenced by TransformSignature().

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

Referenced by TransformSignature().

Function Documentation

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

Definition at line 583 of file signature.c.

Referenced by TransformSignature().

MagickPrivate unsigned int GetSignatureBlocksize ( const SignatureInfo signature_info)
MagickPrivate const StringInfo* GetSignatureDigest ( const SignatureInfo signature_info)
MagickPrivate unsigned int GetSignatureDigestsize ( const SignatureInfo signature_info)
static unsigned int Maj ( unsigned int  x,
unsigned int  y,
unsigned int  z 
)
inlinestatic

Definition at line 588 of file signature.c.

Referenced by TransformSignature().

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

Definition at line 598 of file signature.c.

References Trunc32().

MagickPrivate void SetSignatureDigest ( SignatureInfo signature_info,
const StringInfo digest 
)
static unsigned int Trunc32 ( unsigned int  x)
inlinestatic

Definition at line 593 of file signature.c.

Referenced by RotateRight(), TransformSignature(), and UpdateSignature().