Unix
Mac OS X
Windows
Options
Unix
Windows

# Module sha2512 Methods

## AcquireSHA2512Info

AcquireSHA2512Info() allocate the SHA2512Info structure.

The format of the AcquireSHA2512Info method is:

      SHA2512Info *AcquireSHA2512Info(void)

## DestroySHA2512Info

DestroySHA2512Info() zeros memory associated with the SHA2512Info structure.

The format of the DestroySHA2512Info method is:

      SHA2512Info *DestroySHA2512Info(SHA2512Info *sha_info)

A description of each parameter follows:

##### sha_info

The cipher sha_info.

## FinalizeSHA2512

FinalizeSHA2512() finalizes the SHA2512 message accumulator computation.

The format of the FinalizeSHA2512 method is:

      FinalizeSHA2512(SHA2512Info *sha_info)

A description of each parameter follows:

##### sha_info

The address of a structure of type SHA2512Info.

## GetSHA2512Blocksize

GetSHA2512Blocksize() returns the SHA2512 blocksize.

The format of the GetSHA2512Blocksize method is:

      unsigned int *GetSHA2512Blocksize(const SHA2512Info *sha2512_info)

A description of each parameter follows:

##### sha2512_info

The shaa info.

## GetSHA2512Digest

GetSHA2512Digest() returns the SHA2512 digest.

The format of the GetSHA2512Digest method is:

      const StringInfo *GetSHA2512Digest(const SHA2512Info *sha2512_info)

A description of each parameter follows:

##### sha2512_info

The shaa info.

## GetSHA2512Digestsize

GetSHA2512Digestsize() returns the SHA2512 digest size.

The format of the GetSHA2512Digestsize method is:

      unsigned int *GetSHA2512Digestsize(const SHA2512Info *sha2512_info)

A description of each parameter follows:

##### sha2512_info

The shaa info.

## IntializeSHA2512

IntializeSHA2512() intializes the SHA2512 accumulator.

The format of the DestroySHA2512Info method is:

      void InitializeSHA2512Info(SHA2512Info *sha_info)

A description of each parameter follows:

##### sha_info

The cipher sha_info.

## TransformSHA2512

TransformSHA2512() transforms the SHA2512 message accumulator.

The format of the TransformSHA2512 method is:

      TransformSHA2512(SHA2512Info *sha_info)

A description of each parameter follows:

##### sha_info

The address of a structure of type SHA2512Info.

## UpdateSHA2512

UpdateSHA2512() updates the SHA2512 message accumulator.

The format of the UpdateSHA2512 method is:

      UpdateSHA2512(SHA2512Info *sha_info,const StringInfo *message)

A description of each parameter follows:

##### sha_info

The address of a structure of type SHA2512Info.

##### message

The message.

Discourse Server