blob: 25535e0269627683590f398c9bd879f659151979 [file] [log] [blame]
Paul Kehrer7fccf4c2014-01-04 21:51:31 -06001.. hazmat::
2
3CommonCrypto Binding
4====================
5
6.. currentmodule:: cryptography.hazmat.bindings.commoncrypto.binding
7
8These are `CFFI`_ bindings to the `CommonCrypto`_ C library. It is available on
9Mac OS X.
10
11.. class:: cryptography.hazmat.bindings.commoncrypto.binding.Binding()
12
13 This is the exposed API for the CommonCrypto bindings. It has two public
14 attributes:
15
16 .. attribute:: ffi
17
18 This is a :class:`cffi.FFI` instance. It can be used to allocate and
Alex Gaynor9180ba52014-01-09 18:06:52 -080019 otherwise manipulate CommonCrypto structures.
Paul Kehrer7fccf4c2014-01-04 21:51:31 -060020
21 .. attribute:: lib
22
Alex Gaynor9180ba52014-01-09 18:06:52 -080023 This is a ``cffi`` library. It can be used to call CommonCrypto
24 functions, and access constants.
Paul Kehrer7fccf4c2014-01-04 21:51:31 -060025
26
27.. _`CFFI`: https://cffi.readthedocs.org/
28.. _`CommonCrypto`: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/Common%20Crypto.3cc.html#//apple_ref/doc/man/3cc/CommonCrypto