Module sha256 Methods
AcquireSHA256Info
AcquireSHA256Info() allocate the SHA256Info structure.
The format of the AcquireSHA256Info method is:
SHA256Info *AcquireSHA256Info(void)
DestroySHA256Info
DestroySHA256Info() zeros memory associated with the SHA256Info structure.
The format of the DestroySHA256Info method is:
SHA256Info *DestroySHA256Info(SHA256Info *sha_info)
A description of each parameter follows:
sha_info
The cipher sha_info.
FinalizeSHA256
FinalizeSHA256() finalizes the SHA256 message accumulator computation.
The format of the FinalizeSHA256 method is:
FinalizeSHA256(SHA256Info *sha_info)
A description of each parameter follows:
sha_info
The address of a structure of type SHA256Info.
GetSHA256Blocksize
GetSHA256Blocksize() returns the SHA256 blocksize.
The format of the GetSHA256Blocksize method is:
unsigned int *GetSHA256Blocksize(const SHA256Info *sha256_info)
A description of each parameter follows:
sha256_info
The sha256 info.
GetSHA256Digest
GetSHA256Digest() returns the SHA256 digest.
The format of the GetSHA256Digest method is:
const StringInfo *GetSHA256Digest(const SHA256Info *sha256_info)
A description of each parameter follows:
sha256_info
The sha256 info.
GetSHA256Digestsize
GetSHA256Digestsize() returns the SHA256 digest size.
The format of the GetSHA256Digestsize method is:
unsigned int *GetSHA256Digestsize(const SHA256Info *sha256_info)
A description of each parameter follows:
sha256_info
The sha256 info.
IntializeSHA256
IntializeSHA256() intializes the SHA256 accumulator.
The format of the DestroySHA256Info method is:
void InitializeSHA256Info(SHA256Info *sha_info)
A description of each parameter follows:
sha_info
The cipher sha_info.
TransformSHA256
TransformSHA256() transforms the SHA256 message accumulator.
The format of the TransformSHA256 method is:
TransformSHA256(SHA256Info *sha_info)
A description of each parameter follows:
sha_info
The address of a structure of type SHA256Info.
UpdateSHA256
UpdateSHA256() updates the SHA256 message accumulator.
The format of the UpdateSHA256 method is:
UpdateSHA256(SHA256Info *sha_info,const StringInfo *message)
A description of each parameter follows:
sha_info
The address of a structure of type SHA256Info.
message
The message.

![[sponsor]](../../images/networkredux.png)