diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-20 12:37:57 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-20 12:37:57 -0800 |
commit | 78456c71627d9234a4668ce2fb36e12525cae6b1 (patch) | |
tree | b76c436cf7c290dfb4280eaa86a2a715de9d87e6 /docs | |
parent | 7e33d1ce2f573f3b2b0e8f363879dd4cb19c921b (diff) | |
parent | 5a2494086f8f8215102f2558b12eaca14eebd782 (diff) | |
download | cryptography-78456c71627d9234a4668ce2fb36e12525cae6b1.tar.gz cryptography-78456c71627d9234a4668ce2fb36e12525cae6b1.tar.bz2 cryptography-78456c71627d9234a4668ce2fb36e12525cae6b1.zip |
Merge pull request #488 from dreid/privatize-register_cipher_adapter
Remove register_cipher_adapter from the interface and the documentation.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/changelog.rst | 2 | ||||
-rw-r--r-- | docs/hazmat/backends/interfaces.rst | 19 |
2 files changed, 2 insertions, 19 deletions
diff --git a/docs/changelog.rst b/docs/changelog.rst index 819b426a..0a03c396 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -8,6 +8,8 @@ Changelog * Added :doc:`/hazmat/backends/commoncrypto` with hash and HMAC support. * Added initial :doc:`/hazmat/bindings/commoncrypto`. +* Removed ``register_cipher_adapter`` method from + :class:`~cryptography.hazmat.backends.interfaces.CipherBackend`. 0.1 - 2014-01-08 ~~~~~~~~~~~~~~~~ diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index 5b6cd64d..11e2f2a2 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -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) |