aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorTerry Chia <terrycwk1994@gmail.com>2014-10-20 12:15:22 +0800
committerTerry Chia <terrycwk1994@gmail.com>2014-10-20 22:59:27 +0800
commitc7c82f3849f33d34637fa133fc906efbc4fd6aef (patch)
treefb7eb40edfee96637fce3835f9f387f9ac3a5b16 /cryptography
parent73cb687bcf87fbb7d392c998bd3ad619b58fa6b0 (diff)
downloadcryptography-c7c82f3849f33d34637fa133fc906efbc4fd6aef.tar.gz
cryptography-c7c82f3849f33d34637fa133fc906efbc4fd6aef.tar.bz2
cryptography-c7c82f3849f33d34637fa133fc906efbc4fd6aef.zip
Add to changelog. Document deprecation.
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/backends/openssl/cmac.py1
-rw-r--r--cryptography/hazmat/primitives/cmac.py1
-rw-r--r--cryptography/hazmat/primitives/interfaces.py1
3 files changed, 1 insertions, 2 deletions
diff --git a/cryptography/hazmat/backends/openssl/cmac.py b/cryptography/hazmat/backends/openssl/cmac.py
index f1d068eb..da7b7484 100644
--- a/cryptography/hazmat/backends/openssl/cmac.py
+++ b/cryptography/hazmat/backends/openssl/cmac.py
@@ -21,7 +21,6 @@ from cryptography.hazmat.primitives.ciphers.modes import CBC
@utils.register_interface(interfaces.MACContext)
-@utils.register_interface(interfaces.CMACContext)
class _CMACContext(object):
def __init__(self, backend, algorithm, ctx=None):
if not backend.cmac_algorithm_supported(algorithm):
diff --git a/cryptography/hazmat/primitives/cmac.py b/cryptography/hazmat/primitives/cmac.py
index 968fa463..7ae5c118 100644
--- a/cryptography/hazmat/primitives/cmac.py
+++ b/cryptography/hazmat/primitives/cmac.py
@@ -22,7 +22,6 @@ from cryptography.hazmat.primitives import constant_time, interfaces
@utils.register_interface(interfaces.MACContext)
-@utils.register_interface(interfaces.CMACContext)
class CMAC(object):
def __init__(self, algorithm, backend, ctx=None):
if not isinstance(backend, CMACBackend):
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index c09a9618..370fd68a 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -495,4 +495,5 @@ class MACContext(object):
signature.
"""
+# DeprecatedIn07
CMACContext = MACContext