mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Remove register_cipher_adapter from the interface and the documentation.
This commit is contained in:
parent
580e992dc0
commit
e2ad5ca3f4
2 changed files with 0 additions and 25 deletions
|
|
@ -25,12 +25,6 @@ class CipherBackend(six.with_metaclass(abc.ABCMeta)):
|
|||
Return True if the given cipher and mode are supported.
|
||||
"""
|
||||
|
||||
@abc.abstractmethod
|
||||
def register_cipher_adapter(self, cipher, mode, adapter):
|
||||
"""
|
||||
Register an adapter for a cipher and mode to a backend specific object.
|
||||
"""
|
||||
|
||||
@abc.abstractmethod
|
||||
def create_symmetric_encryption_ctx(self, cipher, mode):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -33,25 +33,6 @@ A specific ``backend`` may provide one or more of these interfaces.
|
|||
:returns: ``True`` if the specified ``cipher`` and ``mode`` combination
|
||||
is supported by this backend, otherwise ``False``
|
||||
|
||||
.. method:: register_cipher_adapter(cipher_cls, mode_cls, adapter)
|
||||
|
||||
Register an adapter which can be used to create a backend specific
|
||||
object from instances of the
|
||||
:class:`~cryptography.hazmat.primitives.interfaces.CipherAlgorithm` and
|
||||
the :class:`~cryptography.hazmat.primitives.interfaces.Mode` primitives.
|
||||
|
||||
:param cipher_cls: A class whose instances provide
|
||||
:class:`~cryptography.hazmat.primitives.interfaces.CipherAlgorithm`
|
||||
:param mode_cls: A class whose instances provide:
|
||||
:class:`~cryptography.hazmat.primitives.interfaces.Mode`
|
||||
:param adapter: A ``function`` that takes 3 arguments, ``backend`` (a
|
||||
:class:`CipherBackend` provider), ``cipher`` (a
|
||||
:class:`~cryptography.hazmat.primitives.interfaces.CipherAlgorithm`
|
||||
provider ), and ``mode`` (a
|
||||
:class:`~cryptography.hazmat.primitives.interfaces.Mode` provider).
|
||||
It returns a backend specific object which may be used to construct
|
||||
a :class:`~cryptogrpahy.hazmat.primitives.interfaces.CipherContext`.
|
||||
|
||||
|
||||
.. method:: create_symmetric_encryption_ctx(cipher, mode)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue