Paul Kehrer | a9e31b3 | 2014-01-10 00:03:03 -0600 | [diff] [blame] | 1 | .. hazmat:: |
| 2 | |
Alex Stapleton | c5fffd3 | 2014-03-18 15:29:00 +0000 | [diff] [blame] | 3 | CommonCrypto backend |
Paul Kehrer | a9e31b3 | 2014-01-10 00:03:03 -0600 | [diff] [blame] | 4 | ==================== |
| 5 | |
Alex Gaynor | 969f18e | 2014-05-17 20:07:35 -0700 | [diff] [blame] | 6 | The `CommonCrypto`_ C library provided by Apple on OS X and iOS. The |
| 7 | CommonCrypto backend is only supported on OS X versions 10.8 and above. |
Paul Kehrer | a9e31b3 | 2014-01-10 00:03:03 -0600 | [diff] [blame] | 8 | |
| 9 | .. currentmodule:: cryptography.hazmat.backends.commoncrypto.backend |
| 10 | |
Paul Kehrer | 6ce4bb7 | 2014-01-19 14:29:28 -0600 | [diff] [blame] | 11 | .. versionadded:: 0.2 |
| 12 | |
Paul Kehrer | a9e31b3 | 2014-01-10 00:03:03 -0600 | [diff] [blame] | 13 | .. data:: cryptography.hazmat.backends.commoncrypto.backend |
| 14 | |
Alex Gaynor | 031c2cb | 2014-01-31 11:44:53 -0800 | [diff] [blame] | 15 | This is the exposed API for the CommonCrypto backend. |
| 16 | |
Alex Gaynor | 8ca6fad | 2014-01-31 13:23:51 -0800 | [diff] [blame] | 17 | It implements the following interfaces: |
| 18 | |
Alex Gaynor | 031c2cb | 2014-01-31 11:44:53 -0800 | [diff] [blame] | 19 | * :class:`~cryptography.hazmat.backends.interfaces.CipherBackend` |
| 20 | * :class:`~cryptography.hazmat.backends.interfaces.HashBackend` |
| 21 | * :class:`~cryptography.hazmat.backends.interfaces.HMACBackend` |
| 22 | * :class:`~cryptography.hazmat.backends.interfaces.PBKDF2HMACBackend` |
| 23 | |
| 24 | It has one additional public attribute. |
Paul Kehrer | a9e31b3 | 2014-01-10 00:03:03 -0600 | [diff] [blame] | 25 | |
Paul Kehrer | ab6fa0a | 2014-01-19 13:57:15 -0600 | [diff] [blame] | 26 | .. attribute:: name |
Paul Kehrer | a9e31b3 | 2014-01-10 00:03:03 -0600 | [diff] [blame] | 27 | |
Paul Kehrer | ab6fa0a | 2014-01-19 13:57:15 -0600 | [diff] [blame] | 28 | The string name of this backend: ``"commoncrypto"`` |
Paul Kehrer | a9e31b3 | 2014-01-10 00:03:03 -0600 | [diff] [blame] | 29 | |
Paul Kehrer | a9e31b3 | 2014-01-10 00:03:03 -0600 | [diff] [blame] | 30 | .. _`CommonCrypto`: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/Common%20Crypto.3cc.html |