aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-12-21 18:41:38 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-12-21 18:41:38 -0600
commitfc73e2d04315e21011869fbd925df9e7a99d21ae (patch)
tree155a8dbffcd017e84dfe9d49375bd6f9382a83b6 /cryptography
parenta7fbf07a3e96133b40df05ac5be159bbf6f1fc91 (diff)
downloadcryptography-fc73e2d04315e21011869fbd925df9e7a99d21ae.tar.gz
cryptography-fc73e2d04315e21011869fbd925df9e7a99d21ae.tar.bz2
cryptography-fc73e2d04315e21011869fbd925df9e7a99d21ae.zip
prose updates for GCM tag
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index 9697a4a6..b0ea96ea 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -320,8 +320,8 @@ class _CipherContext(object):
assert res != 0
if operation == self._DECRYPT:
if not mode.tag or len(mode.tag) < 4:
- raise ValueError("Authentication tag must be provided "
- "and 4 bytes or longer when decrypting")
+ raise ValueError("Authentication tag must be provided and "
+ "be 4 bytes or longer when decrypting")
res = self._backend.lib.EVP_CIPHER_CTX_ctrl(
ctx, self._backend.lib.Cryptography_EVP_CTRL_GCM_SET_TAG,
len(mode.tag), mode.tag