NAME
CCCCHHmmaaccIInniitt, CCCCHHmmaaccUUppddaattee, CCCCHHmmaaccFFiinnaall, CCCCHHmmaacc - Common HMAC Algorithm
Interfaces LLIIBBRRAARRYY These functions are found in libSystem.SYNOPSIS
##iinncclluuddee <
void CCCCHHmmaaccIInniitt(CCHmacContext *ctx, CCHmacAlgorithm algorithm, const void *key, sizet keyLength); void CCCCHHmmaaccUUppddaattee(CCHmacContext *ctx, const void *data, sizet dataLength); void CCCCHHmmaaccFFiinnaall(CCHmacContext *ctx, void *macOut); void CCCCHHmmaacc(CCHmacAlgorithm algorithm, const void *key, sizet keyLength, const void *data, sizet dataLength, void *macOut);> DESCRIPTION
This interface provides access to a number of HMAC algorithms. The fol-
lowing algorithms are available:kCCHmacAlgSHA1 - HMAC with SHA1 digest
kCCHmacAlgMD5 - HMAC with MD5 digest
kCCHmacAlgSHA256 - HMAC with SHA256 digest
kCCHmacAlgSHA384 - HMAC with SHA384 digest
kCCHmacAlgSHA224 - HMAC with SHA224 digest
kCCHmacAlgSHA512 - HMAC with SHA512 digest
The object declared in this interface, CCHmacContext, provides a handle for use with the CCCCHHmmaaccIInniitt() CCCCHHmmaaccUUppddaattee() and CCCCHHmmaaccFFiinnaall() calls to complete the HMAC operation. In addition there is a one shot function, CCCCHHmmaacc() that performs a complete HMAC on a single piece of data.SEE ALSO
CCMD5(3cc), CCSHA(3cc), CCcrypto(3cc), CCCrypto(3cc) BSD March 22, 2007 BSD