aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/bindings/index.rst
blob: 746f45968c3092329f83a2c07025fbe5823100d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.. hazmat::

Bindings
========

.. toctree::
    :maxdepth: 1

    openssl
    interfaces


Getting a Backend Provider
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. currentmodule:: cryptography.hazmat.bindings

``cryptography`` aims to support multiple backends to ensure it can provide
the widest number of supported cryptographic algorithms as well as supporting
platform specific implementations.

You can get the default backend by calling
:func:`~default_backend`.

The default backend will change over time as we implement new backends and
the libraries we use in those backends changes.


.. function:: default_backend()

    :returns: An object that provides at least
        :class:`~interfaces.CipherBackend`, :class:`~interfaces.HashBackend`, and
        :class:`~interfaces.HMACBackend`.