Mac Developer Library Developer
Search

 

This manual page is part of Xcode Tools version 5.0

To obtain these tools:

If you are running a version of Xcode Tools other than 5.0, view the documentation locally:

  • In Xcode

  • 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.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

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

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




CC_crypto(3cc)                       LOCAL                      CC_crypto(3cc)

NAME
     Common Crypto -- libSystem digest library

DESCRIPTION
     The libSystem Common Crypto library implements a wide range of cryptographic algorithms used in various
     Internet standards. The services provided by this library are used by the CDSA implementations of SSL,
     TLS and S/MIME.

OVERVIEW
     libSystem contains the Common Crypto collection of algorithms. Digest and encryption algorithms con-tained contained
     tained in this library are optimized for speed.  The algorithms have been collected from various
     sources and chosen for their performance characteristics.  Since libSystem is linked into all executa-bles executables
     bles it is preferable for applications to use these functions rather than implementing their own ver-sions. versions.
     sions.

NOTES
     To use the digest functions with existing code which uses the corresponding openssl functions, #define
     the symbol COMMON_DIGEST_FOR_OPENSSL in your client code (BEFORE including
     <CommonCrypto/CommonDigest.h> ).

     You can *NOT* mix and match functions operating on a given data type from the two implementations;
     i.e., if you do a CC_MD5_Init() on a CC_MD5_CTX object, do not assume that you can do an openssl-style
     MD5_Update() on that same context.

     The interfaces to the encryption and HMAC algorithms have a calling interface that is different from
     that provided by OpenSSL.

HISTORY
     The Common Crypto collection of functions started to become available in OS X 10.4 and later.

SEE ALSO
     CC_MD5(3cc), CC_SHA(3cc), CCHmac(3cc), CCCryptor(3cc)

BSD                              April 5, 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.

Feedback