| Alex Gaynor | af82d5e | 2013-10-29 17:07:24 -0700 | [diff] [blame] | 1 | .. hazmat:: | 
| Donald Stufft | d8f0118 | 2013-10-27 16:59:56 -0400 | [diff] [blame] | 2 |  | 
| Alex Gaynor | 8f42fe4 | 2013-12-24 13:15:52 -0800 | [diff] [blame] | 3 | Backends | 
| Donald Stufft | e51fb93 | 2013-10-27 17:26:17 -0400 | [diff] [blame] | 4 | ======== | 
 | 5 |  | 
| Alex Stapleton | c5fffd3 | 2014-03-18 15:29:00 +0000 | [diff] [blame] | 6 | Getting a backend | 
| Alex Gaynor | 8f42fe4 | 2013-12-24 13:15:52 -0800 | [diff] [blame] | 7 | ----------------- | 
| David Reid | d5d085e | 2013-11-25 09:45:52 -0800 | [diff] [blame] | 8 |  | 
| Alex Gaynor | f8796b1 | 2013-12-13 20:28:55 -0800 | [diff] [blame] | 9 | .. currentmodule:: cryptography.hazmat.backends | 
| David Reid | d5d085e | 2013-11-25 09:45:52 -0800 | [diff] [blame] | 10 |  | 
 | 11 | ``cryptography`` aims to support multiple backends to ensure it can provide | 
 | 12 | the widest number of supported cryptographic algorithms as well as supporting | 
 | 13 | platform specific implementations. | 
 | 14 |  | 
| Alex Gaynor | 8f42fe4 | 2013-12-24 13:15:52 -0800 | [diff] [blame] | 15 | You can get the default backend by calling :func:`~default_backend`. | 
| David Reid | d5d085e | 2013-11-25 09:45:52 -0800 | [diff] [blame] | 16 |  | 
 | 17 | The default backend will change over time as we implement new backends and | 
 | 18 | the libraries we use in those backends changes. | 
 | 19 |  | 
 | 20 |  | 
 | 21 | .. function:: default_backend() | 
 | 22 |  | 
 | 23 |     :returns: An object that provides at least | 
 | 24 |         :class:`~interfaces.CipherBackend`, :class:`~interfaces.HashBackend`, and | 
 | 25 |         :class:`~interfaces.HMACBackend`. | 
 | 26 |  | 
| Alex Stapleton | c5fffd3 | 2014-03-18 15:29:00 +0000 | [diff] [blame] | 27 | Individual backends | 
| Alex Gaynor | 8f42fe4 | 2013-12-24 13:15:52 -0800 | [diff] [blame] | 28 | ------------------- | 
 | 29 |  | 
 | 30 | .. toctree:: | 
 | 31 |     :maxdepth: 1 | 
 | 32 |  | 
 | 33 |     openssl | 
| Paul Kehrer | b74658e | 2014-01-19 17:09:22 -0600 | [diff] [blame] | 34 |     commoncrypto | 
| Alex Gaynor | 7ceacba | 2014-02-03 15:50:03 -0800 | [diff] [blame] | 35 |     multibackend | 
| Alex Gaynor | 8f42fe4 | 2013-12-24 13:15:52 -0800 | [diff] [blame] | 36 |     interfaces |