CalculateHmacSha256

nn::crypto::CalculateHmacSha256 Function

Syntax

void CalculateHmacSha256(
     void * pOut,
     const void * pData,
     size_t size,
     const void * pKeyData,
     size_t keySize
);

Parameters

Name Description
out pOut Pointer to the location in which to store the HMAC value (4-byte alignment)
in pData Pointer to the input data.
in size Length of the input data.
in pKeyData Pointer to the key data.
in keySize Length of the key data.

Return Values

None.

Description

Performs HMAC-SHA256 calculation.

pOut is a 4-byte aligned pointer. It requires Sha256Context::HASH_SIZE (=32) bytes of space as the destination for storing the indicated hash.

Revision History

2011/03/04
Added note about 4-byte alignment restriction.
2010/01/07
Initial version.

CONFIDENTIAL