Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #246
Difficulty: Easy
By 1973, e-mail constituted 95% of the ARPANET traffic.
True or False?
Linux & Unix Commands - Search Man Pages

cchmac(3) [osx man page]

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. HISTORY
These functions are available in OS X 10.5 and later. SEE ALSO
CC_MD5(3cc), CC_SHA(3cc), CC_crypto(3cc), CCCrypto(3cc) BSD
March 22, 2007 BSD

Check Out this Related Man Page

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. HISTORY
These functions are available in OS X 10.5 and later. SEE ALSO
CC_MD5(3cc), CC_SHA(3cc), CC_crypto(3cc), CCCrypto(3cc) BSD
March 22, 2007 BSD

2 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Cryotography -Linux API for HMAC-SHA256 algorithm

Hi all, I need to calculate MAC value using HMAC-SHA256 algorithm with a message and a key. Is there any Linux APIs/utilities already exist for HMAC-SHA256? Thanks, Amio (3 Replies)
Discussion started by: amio
3 Replies

2. AIX

Disable any 96-bit HMAC Algorithms

Received a vulnerability - SSH INSECURE HMAC ALGORITHMS ENABLED. The solution was to Disable any 96-bit HMAC Algorithms. Disable any MD5-based HMAC Algorithms. Can someone please tell me how to disable in AIX 5.3? Thanks, Sudo (1 Reply)
Discussion started by: sudo su
1 Replies

Featured Tech Videos