Unix
Mac OS X
Windows
Options
Unix
Windows

# Module sha2256 Methods

## AcquireSHA2256Info

AcquireSHA2256Info() allocate the SHA2256Info structure.

The format of the AcquireSHA2256Info method is:

      SHA2256Info *AcquireSHA2256Info(void)

## DestroySHA2256Info

DestroySHA2256Info() zeros memory associated with the SHA2256Info structure.

The format of the DestroySHA2256Info method is:

      SHA2256Info *DestroySHA2256Info(SHA2256Info *sha_info)

A description of each parameter follows:

##### sha_info

The cipher sha_info.

## FinalizeSHA2256

FinalizeSHA2256() finalizes the SHA2256 message accumulator computation.

The format of the FinalizeSHA2256 method is:

      FinalizeSHA2256(SHA2256Info *sha_info)

A description of each parameter follows:

##### sha_info

The address of a structure of type SHA2256Info.

## GetSHA2256Blocksize

GetSHA2256Blocksize() returns the SHA2256 blocksize.

The format of the GetSHA2256Blocksize method is:

      unsigned int *GetSHA2256Blocksize(const SHA2256Info *sha2256_info)

A description of each parameter follows:

##### sha2256_info

The sha2256 info.

## GetSHA2256Digest

GetSHA2256Digest() returns the SHA2256 digest.

The format of the GetSHA2256Digest method is:

      const StringInfo *GetSHA2256Digest(const SHA2256Info *sha2256_info)

A description of each parameter follows:

##### sha2256_info

The sha2256 info.

## GetSHA2256Digestsize

GetSHA2256Digestsize() returns the SHA2256 digest size.

The format of the GetSHA2256Digestsize method is:

      unsigned int *GetSHA2256Digestsize(const SHA2256Info *sha2256_info)

A description of each parameter follows:

##### sha2256_info

The sha2256 info.

## IntializeSHA2256

IntializeSHA2256() intializes the SHA2256 accumulator.

The format of the DestroySHA2256Info method is:

      void InitializeSHA2256Info(SHA2256Info *sha_info)

A description of each parameter follows:

##### sha_info

The cipher sha_info.

## TransformSHA2256

TransformSHA2256() transforms the SHA2256 message accumulator.

The format of the TransformSHA2256 method is:

      TransformSHA2256(SHA2256Info *sha_info)

A description of each parameter follows:

##### sha_info

The address of a structure of type SHA2256Info.

## UpdateSHA2256

UpdateSHA2256() updates the SHA2256 message accumulator.

The format of the UpdateSHA2256 method is:

      UpdateSHA2256(SHA2256Info *sha_info,const StringInfo *message)

A description of each parameter follows:

##### sha_info

The address of a structure of type SHA2256Info.

##### message

The message.

Discourse Server