This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



CCHMAC(3)                               BSD Library Functions Manual                               CCHMAC(3)

NAME
     CCHmacInit, CCHmacUpdate, CCHmacFinal, CCHmac -- Common HMAC Algorithm Interfaces

LIBRARY
     These functions are found in libSystem.

SYNOPSIS
     #include <CommonCrypto/CommonHMAC.h>

     void
     CCHmacInit(CCHmacContext *ctx, CCHmacAlgorithm algorithm, const void *key, size_t keyLength);

     void
     CCHmacUpdate(CCHmacContext *ctx, const void *data, size_t dataLength);

     void
     CCHmacFinal(CCHmacContext *ctx, void *macOut);

     void
     CCHmac(CCHmacAlgorithm algorithm, const void *key, size_t keyLength, const void *data,
         size_t dataLength, void *macOut);

DESCRIPTION
     This interface provides access to a number of HMAC algorithms. The following 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 CCHmacInit()
     CCHmacUpdate() and CCHmacFinal() calls to complete the HMAC operation.  In addition there is a one shot
     function, CCHmac() that performs a complete HMAC on a single piece of data.

SEE ALSO
     CC_MD5(3cc), CC_SHA(3cc), CC_crypto(3cc), CCCrypto(3cc)

BSD                                            March 22, 2007                                            BSD

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...