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 | |
Paul Kehrer | a4668c6 | 2017-05-20 13:25:47 -0700 | [diff] [blame] | 11 | ``cryptography`` was originally designed to support multiple backends, but |
12 | this design has been deprecated. | ||||
David Reid | d5d085e | 2013-11-25 09:45:52 -0800 | [diff] [blame] | 13 | |
Alex Gaynor | 8f42fe4 | 2013-12-24 13:15:52 -0800 | [diff] [blame] | 14 | You can get the default backend by calling :func:`~default_backend`. |
David Reid | d5d085e | 2013-11-25 09:45:52 -0800 | [diff] [blame] | 15 | |
David Reid | d5d085e | 2013-11-25 09:45:52 -0800 | [diff] [blame] | 16 | |
17 | .. function:: default_backend() | ||||
18 | |||||
19 | :returns: An object that provides at least | ||||
20 | :class:`~interfaces.CipherBackend`, :class:`~interfaces.HashBackend`, and | ||||
21 | :class:`~interfaces.HMACBackend`. | ||||
22 | |||||
Alex Stapleton | c5fffd3 | 2014-03-18 15:29:00 +0000 | [diff] [blame] | 23 | Individual backends |
Alex Gaynor | 8f42fe4 | 2013-12-24 13:15:52 -0800 | [diff] [blame] | 24 | ------------------- |
25 | |||||
26 | .. toctree:: | ||||
27 | :maxdepth: 1 | ||||
28 | |||||
29 | openssl | ||||
30 | interfaces |