Paul Kehrer | 7fccf4c | 2014-01-04 21:51:31 -0600 | [diff] [blame] | 1 | .. hazmat:: |
| 2 | |
Alex Stapleton | c5fffd3 | 2014-03-18 15:29:00 +0000 | [diff] [blame] | 3 | CommonCrypto binding |
Paul Kehrer | 7fccf4c | 2014-01-04 21:51:31 -0600 | [diff] [blame] | 4 | ==================== |
| 5 | |
| 6 | .. currentmodule:: cryptography.hazmat.bindings.commoncrypto.binding |
| 7 | |
Alex Gaynor | 8ea6a82 | 2014-01-17 16:08:46 -0600 | [diff] [blame] | 8 | .. versionadded:: 0.2 |
| 9 | |
Paul Kehrer | 12649af | 2014-03-10 12:45:19 -0400 | [diff] [blame] | 10 | These are `CFFI`_ bindings to the `CommonCrypto`_ C library. It is only |
| 11 | available on Mac OS X versions 10.8 and above. |
Paul Kehrer | 7fccf4c | 2014-01-04 21:51:31 -0600 | [diff] [blame] | 12 | |
| 13 | .. class:: cryptography.hazmat.bindings.commoncrypto.binding.Binding() |
| 14 | |
| 15 | This is the exposed API for the CommonCrypto bindings. It has two public |
| 16 | attributes: |
| 17 | |
| 18 | .. attribute:: ffi |
| 19 | |
| 20 | This is a :class:`cffi.FFI` instance. It can be used to allocate and |
Alex Gaynor | 9180ba5 | 2014-01-09 18:06:52 -0800 | [diff] [blame] | 21 | otherwise manipulate CommonCrypto structures. |
Paul Kehrer | 7fccf4c | 2014-01-04 21:51:31 -0600 | [diff] [blame] | 22 | |
| 23 | .. attribute:: lib |
| 24 | |
Alex Gaynor | 9180ba5 | 2014-01-09 18:06:52 -0800 | [diff] [blame] | 25 | This is a ``cffi`` library. It can be used to call CommonCrypto |
| 26 | functions, and access constants. |
Paul Kehrer | 7fccf4c | 2014-01-04 21:51:31 -0600 | [diff] [blame] | 27 | |
| 28 | |
| 29 | .. _`CFFI`: https://cffi.readthedocs.org/ |
Alex Gaynor | 6bee2ab | 2014-02-05 07:44:12 -0800 | [diff] [blame] | 30 | .. _`CommonCrypto`: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/Common%20Crypto.3cc.html |