aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-21 11:21:21 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-29 17:19:45 -0600
commita5e1081098be6734f8abe31ce0b84c72490f4cb3 (patch)
treeacb05c07e8eb5a16eacc01cddaab247c695f486c
parent65c4e0a396b9d4183d9ce16b27742d407eb9d91d (diff)
downloadcryptography-a5e1081098be6734f8abe31ce0b84c72490f4cb3.tar.gz
cryptography-a5e1081098be6734f8abe31ce0b84c72490f4cb3.tar.bz2
cryptography-a5e1081098be6734f8abe31ce0b84c72490f4cb3.zip
add tag as abstractproperty for modewithaad
-rw-r--r--cryptography/hazmat/primitives/interfaces.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index 574c8226..f216686a 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -57,7 +57,11 @@ class ModeWithNonce(six.with_metaclass(abc.ABCMeta)):
class ModeWithAAD(six.with_metaclass(abc.ABCMeta)):
- pass
+ @abc.abstractproperty
+ def tag(self):
+ """
+ The value of the tag supplied to the constructor of this mode.
+ """
class CipherContext(six.with_metaclass(abc.ABCMeta)):