QuickHash Library API

HMAC API Overview

HMAC API assists you in generating Keyed-Hash Message Authentication Codes (HMACs).

HMACs can be generated in two modes: accumulative and non-accumulative.

The accumulative mode is applied when the data for which the HMAC is calculated (data) represents one or more continuous memory block(s) or when the data is created at runtime in many steps (for instance, when reading a file).

Non-accumulative mode can be applied when the data represents only one continuous memory block.

Note. When the data represents just one continuous memory block, both methods can be applied.

 

To generate the HMAC in the accumulative mode, perform the following:

 

To generate the HMAC in the non-accumulative mode, perform the following:

#include <QuickHash.h>

 

HMAC API Functions   |   Useful Links   |   HashCalc

Samples

HMAC generation for a file using MD4 hash algorithm

HMAC generation for a string using MD4 hash algorithm

HMAC generation for a file using MD5 hash algorithm

HMAC generation for a string using MD5 hash algorithm

HMAC generation for a file using SHA1 hash algorithm

HMAC generation for a string using SHA1 hash algorithm

HMAC generation for a file using SHA256 hash algorithm

HMAC generation for a string using SHA256 hash algorithm

HMAC generation for a file using SHA512 hash algorithm

HMAC generation for a string using SHA512 hash algorithm

HMAC generation for a file using SHA384 hash algorithm

HMAC generation for a string using SHA384 hash algorithm

HMAC generation for a file using RIPEMD128 hash algorithm

HMAC generation for a string using RIPEMD128 hash algorithm

HMAC generation for a file using RIPEMD160 hash algorithm

HMAC generation for a string using RIPEMD160 hash algorithm

HMAC generation for a file using RIPEMD256 hash algorithm

HMAC generation for a string using RIPEMD256 hash algorithm

HMAC generation for a file using RIPEMD320 hash algorithm

HMAC generation for a string using RIPEMD320 hash algorithm

HMAC generation for a file using PANAMA hash algorithm

HMAC generation for a string using PANAMA hash algorithm

HMAC generation for a file using TIGER hash algorithm

HMAC generation for a string using TIGER hash algorithm

 


 

 

Send Feedback to SlavaSoft Inc. Tell a friend about QuickHash Library