aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/hazmat/primitives/ciphers
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptography/hazmat/primitives/ciphers')
-rw-r--r--src/cryptography/hazmat/primitives/ciphers/modes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/ciphers/modes.py b/src/cryptography/hazmat/primitives/ciphers/modes.py
index ad0bcbcd..802e544a 100644
--- a/src/cryptography/hazmat/primitives/ciphers/modes.py
+++ b/src/cryptography/hazmat/primitives/ciphers/modes.py
@@ -173,7 +173,7 @@ class GCM(object):
raise TypeError("initialization_vector must be bytes")
if tag is not None and not isinstance(tag, bytes):
- raise TypeError("tag must be bytes when provided")
+ raise TypeError("tag must be bytes or None")
self._initialization_vector = initialization_vector
self._tag = tag