aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2020-04-06 22:32:25 -0400
committerGitHub <noreply@github.com>2020-04-06 21:32:25 -0500
commitc93c4934996139ed390d90d6b82e1c4af962dc8c (patch)
tree0466f00f094a332c2a0a404c924f57744e78ad34
parent56143e1adb273e332e19f91e019d42ba14ab1b3a (diff)
downloadcryptography-c93c4934996139ed390d90d6b82e1c4af962dc8c.tar.gz
cryptography-c93c4934996139ed390d90d6b82e1c4af962dc8c.tar.bz2
cryptography-c93c4934996139ed390d90d6b82e1c4af962dc8c.zip
See if we can remove an OpenSSL 1.0.1 workaround (#5184)
-rw-r--r--src/cryptography/hazmat/backends/openssl/ciphers.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/ciphers.py b/src/cryptography/hazmat/backends/openssl/ciphers.py
index 4568f71f..1de81419 100644
--- a/src/cryptography/hazmat/backends/openssl/ciphers.py
+++ b/src/cryptography/hazmat/backends/openssl/ciphers.py
@@ -134,14 +134,6 @@ class _CipherContext(object):
return outlen[0]
def finalize(self):
- # OpenSSL 1.0.1 on Ubuntu 12.04 (and possibly other distributions)
- # appears to have a bug where you must make at least one call to update
- # even if you are only using authenticate_additional_data or the
- # GCM tag will be wrong. An (empty) call to update resolves this
- # and is harmless for all other versions of OpenSSL.
- if isinstance(self._mode, modes.GCM):
- self.update(b"")
-
if (
self._operation == self._DECRYPT and
isinstance(self._mode, modes.ModeWithAuthenticationTag) and