From 7bc36865fcdb1057a4d2925d28f688c5590d6eaf Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 29 May 2017 10:13:35 -0500 Subject: move MACContext to mac.py and eliminate interfaces.py (#3631) * move MACContext to mac.py and eliminate interfaces.py finally * improve title * re-add and deprecate interfaces.MACContext * use pytest.warns instead of deprecated_call The pytest docs insist that deprecation warnings are handled differently and that you should use deprecated_call, but this works so okay then --- docs/hazmat/backends/interfaces.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/hazmat/backends') diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index e3c67474..4d0520fa 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -159,14 +159,14 @@ A specific ``backend`` may provide one or more of these interfaces. .. method:: create_cmac_ctx(algorithm) Create a - :class:`~cryptography.hazmat.primitives.interfaces.MACContext` that + :class:`~cryptography.hazmat.primitives.mac.MACContext` that uses the specified ``algorithm`` to calculate a message authentication code. :param algorithm: An instance of :class:`~cryptography.hazmat.primitives.ciphers.BlockCipherAlgorithm`. :returns: - :class:`~cryptography.hazmat.primitives.interfaces.MACContext` + :class:`~cryptography.hazmat.primitives.mac.MACContext` .. class:: PBKDF2HMACBackend -- cgit v1.2.3