Unix
Mac OS X
Windows
Options
Unix
Windows

# Module sha512 Methods

## AcquireSHA512Info

AcquireSHA512Info() allocate the SHA512Info structure.

The format of the AcquireSHA512Info method is:

      SHA512Info *AcquireSHA512Info(void)

## DestroySHA512Info

DestroySHA512Info() zeros memory associated with the SHA512Info structure.

The format of the DestroySHA512Info method is:

      SHA512Info *DestroySHA512Info(SHA512Info *sha_info)

A description of each parameter follows:

##### sha_info

The cipher sha_info.

## FinalizeSHA512

FinalizeSHA512() finalizes the SHA512 message accumulator computation.

The format of the FinalizeSHA512 method is:

      FinalizeSHA512(SHA512Info *sha_info)

A description of each parameter follows:

##### sha_info

The address of a structure of type SHA512Info.

## GetSHA512Blocksize

GetSHA512Blocksize() returns the SHA512 blocksize.

The format of the GetSHA512Blocksize method is:

      unsigned int *GetSHA512Blocksize(const SHA512Info *sha512_info)

A description of each parameter follows:

##### sha512_info

The shaa info.

## GetSHA512Digest

GetSHA512Digest() returns the SHA512 digest.

The format of the GetSHA512Digest method is:

      const StringInfo *GetSHA512Digest(const SHA512Info *sha512_info)

A description of each parameter follows:

##### sha512_info

The shaa info.

## GetSHA512Digestsize

GetSHA512Digestsize() returns the SHA512 digest size.

The format of the GetSHA512Digestsize method is:

      unsigned int *GetSHA512Digestsize(const SHA512Info *sha512_info)

A description of each parameter follows:

##### sha512_info

The shaa info.

## IntializeSHA512

IntializeSHA512() intializes the SHA512 accumulator.

The format of the DestroySHA512Info method is:

      void InitializeSHA512Info(SHA512Info *sha_info)

A description of each parameter follows:

##### sha_info

The cipher sha_info.

## TransformSHA512

TransformSHA512() transforms the SHA512 message accumulator.

The format of the TransformSHA512 method is:

      TransformSHA512(SHA512Info *sha_info)

A description of each parameter follows:

##### sha_info

The address of a structure of type SHA512Info.

## UpdateSHA512

UpdateSHA512() updates the SHA512 message accumulator.

The format of the UpdateSHA512 method is:

      UpdateSHA512(SHA512Info *sha_info,const StringInfo *message)

A description of each parameter follows:

##### sha_info

The address of a structure of type SHA512Info.

##### message

The message.

Discourse Server