Move ModeAuthenticationWithTag into ciphers
This class should be broken out into the ciphers module as well.
diff --git a/src/cryptography/hazmat/primitives/interfaces/__init__.py b/src/cryptography/hazmat/primitives/interfaces/__init__.py
index 6dedd1f..2f9880d 100644
--- a/src/cryptography/hazmat/primitives/interfaces/__init__.py
+++ b/src/cryptography/hazmat/primitives/interfaces/__init__.py
@@ -12,6 +12,7 @@
BlockCipherAlgorithm,
CipherAlgorithm,
Mode,
+ ModeWithAuthenticationTag,
ModeWithInitializationVector,
ModeWithNonce)
@@ -19,21 +20,13 @@
"BlockCipherAlgorithm",
"CipherAlgorithm",
"Mode",
+ "ModeWithAuthenticationTag",
"ModeWithInitializationVector",
"ModeWithNonce"
]
@six.add_metaclass(abc.ABCMeta)
-class ModeWithAuthenticationTag(object):
- @abc.abstractproperty
- def tag(self):
- """
- The value of the tag supplied to the constructor of this mode.
- """
-
-
-@six.add_metaclass(abc.ABCMeta)
class CipherContext(object):
@abc.abstractmethod
def update(self, data):
diff --git a/src/cryptography/hazmat/primitives/interfaces/ciphers.py b/src/cryptography/hazmat/primitives/interfaces/ciphers.py
index df6d5f7..075a9c2 100644
--- a/src/cryptography/hazmat/primitives/interfaces/ciphers.py
+++ b/src/cryptography/hazmat/primitives/interfaces/ciphers.py
@@ -65,3 +65,12 @@
"""
The value of the nonce for this mode as bytes.
"""
+
+
+@six.add_metaclass(abc.ABCMeta)
+class ModeWithAuthenticationTag(object):
+ @abc.abstractproperty
+ def tag(self):
+ """
+ The value of the tag supplied to the constructor of this mode.
+ """