Module sha1 Methods
AcquireSHA1Info
AcquireSHA1Info() allocate the SHA1Info structure.
The format of the AcquireSHA1Info method is:
SHA1Info *AcquireSHA1Info(void)
DestroySHA1Info
DestroySHA1Info() zeros memory associated with the SHA1Info structure.
The format of the DestroySHA1Info method is:
SHA1Info *DestroySHA1Info(SHA1Info *sha_info)
A description of each parameter follows:
sha_info
The cipher sha_info.
FinalizeSHA1
FinalizeSHA1() finalizes the SHA1 message accumulator computation.
The format of the FinalizeSHA1 method is:
FinalizeSHA1(SHA1Info *sha_info)
A description of each parameter follows:
sha_info
The address of a structure of type SHA1Info.
GetSHA1Blocksize
GetSHA1Blocksize() returns the SHA1 blocksize.
The format of the GetSHA1Blocksize method is:
unsigned int *GetSHA1Blocksize(const SHA1Info *sha1_info)
A description of each parameter follows:
sha1_info
The sha1 info.
GetSHA1Digest
GetSHA1Digest() returns the SHA1 digest.
The format of the GetSHA1Digest method is:
const StringInfo *GetSHA1Digest(const SHA1Info *sha1_info)
A description of each parameter follows:
sha1_info
The sha1 info.
GetSHA1Digestsize
GetSHA1Digestsize() returns the SHA1 digest size.
The format of the GetSHA1Digestsize method is:
unsigned int *GetSHA1Digestsize(const SHA1Info *sha1_info)
A description of each parameter follows:
sha1_info
The sha1 info.
IntializeSHA1
IntializeSHA1() intializes the SHA1 accumulator.
The format of the DestroySHA1Info method is:
void InitializeSHA1Info(SHA1Info *sha_info)
A description of each parameter follows:
sha_info
The cipher sha_info.
TransformSHA1
TransformSHA1() transforms the SHA1 message accumulator.
The format of the TransformSHA1 method is:
TransformSHA1(SHA1Info *sha_info)
A description of each parameter follows:
sha_info
The address of a structure of type SHA1Info.
UpdateSHA1
UpdateSHA1() updates the SHA1 message accumulator.
The format of the UpdateSHA1 method is:
UpdateSHA1(SHA1Info *sha_info,const StringInfo *message)
A description of each parameter follows:
sha_info
The address of a structure of type SHA1Info.
message
The message

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