Danger
This is a “Hazardous Materials” module. You should ONLY use it if you’re 100% absolutely sure that you know what you’re doing because this module is full of land mines, dragons, and dinosaurs with laser guns.
MultiBackend¶
-
class
cryptography.hazmat.backends.multibackend.
MultiBackend
(backends)¶ New in version 0.2.
This class allows you to combine multiple backends into a single backend that offers the combined features of all of its constituents.
>>> from cryptography.hazmat.backends.multibackend import MultiBackend >>> from cryptography.hazmat.primitives import hashes >>> backend1.hash_supported(hashes.SHA256()) False >>> backend2.hash_supported(hashes.SHA256()) True >>> multi_backend = MultiBackend([backend1, backend2]) >>> multi_backend.hash_supported(hashes.SHA256()) True
Parameters: backends – A list
of backend objects. Backends are checked for feature support in the order they appear in this list.