Paul Kehrer | a9e31b3 | 2014-01-10 00:03:03 -0600 | [diff] [blame] | 1 | .. hazmat:: |
| 2 | |
| 3 | CommonCrypto Backend |
| 4 | ==================== |
| 5 | |
| 6 | These are `CFFI`_ bindings to the `CommonCrypto`_ C library provided by Apple |
| 7 | on OS X and iOS. |
| 8 | |
| 9 | .. currentmodule:: cryptography.hazmat.backends.commoncrypto.backend |
| 10 | |
| 11 | .. data:: cryptography.hazmat.backends.commoncrypto.backend |
| 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 CommonCrypto structures. |
| 20 | |
| 21 | .. attribute:: lib |
| 22 | |
| 23 | This is a ``cffi`` library. It can be used to call CommonCrypto |
| 24 | functions, 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 |