Paul Kehrer | 7fccf4c | 2014-01-04 21:51:31 -0600 | [diff] [blame^] | 1 | .. hazmat:: |
| 2 | |
| 3 | CommonCrypto Binding |
| 4 | ==================== |
| 5 | |
| 6 | .. currentmodule:: cryptography.hazmat.bindings.commoncrypto.binding |
| 7 | |
| 8 | These are `CFFI`_ bindings to the `CommonCrypto`_ C library. It is available on |
| 9 | Mac 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 |
| 19 | otherwise manipulate OpenSSL structures. |
| 20 | |
| 21 | .. attribute:: lib |
| 22 | |
| 23 | This is a ``cffi`` library. It can be used to call OpenSSL functions, |
| 24 | and access constants. |
| 25 | |
| 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 |