aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2016-02-28 14:34:23 +0100
committerHynek Schlawack <hs@ox.cx>2016-02-28 14:34:23 +0100
commit68246fd1a587aa3fad81ed9c0f04066c43543ebb (patch)
tree742ab33f78fc291a11b1376dbcc245ca8ef5f502
parentb5a6debdafe0e842273b3eba0f202794d4cad817 (diff)
parent85e34b3e2741958a105e0e27c0a60c2a12b57675 (diff)
downloadcryptography-68246fd1a587aa3fad81ed9c0f04066c43543ebb.tar.gz
cryptography-68246fd1a587aa3fad81ed9c0f04066c43543ebb.tar.bz2
cryptography-68246fd1a587aa3fad81ed9c0f04066c43543ebb.zip
Merge pull request #2744 from alex/error-format
Correct the error string for a message
-rw-r--r--src/cryptography/hazmat/primitives/ciphers/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/ciphers/base.py b/src/cryptography/hazmat/primitives/ciphers/base.py
index dae93655..496975ae 100644
--- a/src/cryptography/hazmat/primitives/ciphers/base.py
+++ b/src/cryptography/hazmat/primitives/ciphers/base.py
@@ -185,7 +185,7 @@ class _AEADCipherContext(object):
self._aad_bytes_processed += len(data)
if self._aad_bytes_processed > self._ctx._mode._MAX_AAD_BYTES:
raise ValueError(
- "{0} has a maximum AAD byte limit of {0}".format(
+ "{0} has a maximum AAD byte limit of {1}".format(
self._ctx._mode.name, self._ctx._mode._MAX_AAD_BYTES
)
)