• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.. hazmat::
2
3Backends
4========
5
6Getting a backend
7-----------------
8
9.. currentmodule:: cryptography.hazmat.backends
10
11``cryptography`` was designed to support multiple cryptographic backends, but
12consumers rarely need this flexibility. Starting with version 3.1 ``backend``
13arguments are optional and the default backend will automatically be selected
14if none is specified.
15
16On older versions you can get the default backend by calling
17:func:`~default_backend`.
18
19
20.. function:: default_backend()
21
22    :returns: An object that provides at least
23        :class:`~interfaces.CipherBackend`, :class:`~interfaces.HashBackend`, and
24        :class:`~interfaces.HMACBackend`.
25
26Individual backends
27-------------------
28
29.. toctree::
30    :maxdepth: 1
31
32    openssl
33    interfaces
34