diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-06 22:17:40 -0430 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-07 10:15:32 -0400 |
commit | b352531220a2718ca5dddce09ff0cdda1a4bd227 (patch) | |
tree | b00a50ef9397a5cc6a740852bd481fc0977c906f /src | |
parent | acfb618f1016bdd8333f3a4f41c0cc5955c8a1a4 (diff) | |
download | cryptography-b352531220a2718ca5dddce09ff0cdda1a4bd227.tar.gz cryptography-b352531220a2718ca5dddce09ff0cdda1a4bd227.tar.bz2 cryptography-b352531220a2718ca5dddce09ff0cdda1a4bd227.zip |
improved language
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/primitives/ciphers/modes.py | 2 |
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 |