int HMAC_Init( [ out ]HMAC_Context* pContext,
int nAlgID, [ in, size_is( nKeyLength ) ] const void* pKey,
[ in ]int nKeyLength );
Nonzero if initialization is successful, otherwise 0. In particular, this
function returns 0 when nAlgID is invalid.
[out] A memory buffer that
will be used as a context.
Note. All predefined types are specified in the
Predefined Types List.
[in] The ID of the hash
algorithm selected for calculations. For example, nAlgID has to be set
to SHA1_ALGID when you need to calculate the HMAC using
SHA-1 hash algorithm.
Note. All supported hash
algorithms with their corresponding IDs are specified in the
Predefined Constants List.
[in] The key which represents a
continuous memory block.
[in] Length in bytes of the key.
Initializes the context
specified by pContext with the key specified by pKey.
Note. Before the first call to
HMAC_FinalHex functions, the context
must be initialized with HMAC_Init or
See the example for
Type Library Overview
| Type Library Functions
Useful Links | HashCalc