nn::crypto::CalculateHmacSha1 Function

Syntax

void CalculateHmacSha1(
     void * pOut,
     const void * pData,
     size_t length,
     const void * pKeyData,
     size_t keyLength
);

Arguments

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 length Length of the input data.
in pKeyData Pointer to the key data.
in keyLength Length of the key data.

Return Values

None.

Description

Performs HMAC-SHA1 calculation.

pOut is a 4-byte aligned pointer. It requires Sha1Context::HASH_SIZE (=20) 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