AcquireHMACInfoConstructHMACDestroyHMACInfoFinalizeHMACGetHMACDigestGetHMACDigestsizeIntializeHMACResetHMACUpdateHMAC

AcquireHMACInfo

AcquireHMACInfo() allocate the HMACInfo structure.

The format of the AcquireHMACInfo method is:

HMACInfo *AcquireHMACInfo(const HashType hash)

A description of each parameter follows:

hash
The hash type.

ConstructHMAC

ConstructHMAC() constructs the HMAC digest.

The format of the ConstructHMAC method is:

ConstructHMAC(HMACInfo *hmac_info,const StringInfo *key,
  const StringInfo *message)

A description of each parameter follows:

hmac_info
The address of a structure of type HMACInfo.
key
The key.
message
The message.

DestroyHMACInfo

DestroyHMACInfo() zeros memory associated with the HMACInfo structure.

The format of the DestroyHMACInfo method is:

HMACInfo *DestroyHMACInfo(HMACInfo *hmac_info)

A description of each parameter follows:

hmac_info
The cipher hmac_info.

FinalizeHMAC

FinalizeHMAC() finalizes the HMAC message digest computation.

The format of the FinalizeHMAC method is:

FinalizeHMAC(HMACInfo *hmac_info)

A description of each parameter follows:

hmac_info
The address of a structure of type HMACInfo.

GetHMACDigest

GetHMACDigest() returns the hmac digest.

The format of the GetHMACDigest method is:

const StringInfo *GetHMACDigest(const hmacInfo *hmac_info)

A description of each parameter follows:

hmac_info
The hmac info.

GetHMACDigestsize

GetHMACDigestsize() returns the HMAC digest size.

The format of the GetHMACDigestsize method is:

unsigned int *GetHMACDigestsize(const HMACInfo *hmac_info)

A description of each parameter follows:

hmac_info
The hmac info.

IntializeHMAC

IntializeHMAC() intializes the HMAC digest.

The format of the DestroyHMACInfo method is:

void InitializeHMACInfo(HMACInfo *hmac_info,const StringInfo *key)

A description of each parameter follows:

hmac_info
The message authentication info.
key
The key.

ResetHMAC

ResetHMAC() resets the HMAC message digest computation.

The format of the ResetHMAC method is:

ResetHMAC(HMACInfo *hmac_info)

A description of each parameter follows:

hmac_info
The address of a structure of type HMACInfo.

UpdateHMAC

UpdateHMAC() updates the HMAC message digest.

The format of the UpdateHMAC method is:

UpdateHMAC(HMACInfo *hmac_info,const StringInfo *message)

A description of each parameter follows:

hmac_info
The address of a structure of type HMACInfo.
message
The message