diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2020-04-06 22:32:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 21:32:25 -0500 |
commit | c93c4934996139ed390d90d6b82e1c4af962dc8c (patch) | |
tree | 0466f00f094a332c2a0a404c924f57744e78ad34 /src/cryptography | |
parent | 56143e1adb273e332e19f91e019d42ba14ab1b3a (diff) | |
download | cryptography-c93c4934996139ed390d90d6b82e1c4af962dc8c.tar.gz cryptography-c93c4934996139ed390d90d6b82e1c4af962dc8c.tar.bz2 cryptography-c93c4934996139ed390d90d6b82e1c4af962dc8c.zip |
See if we can remove an OpenSSL 1.0.1 workaround (#5184)
Diffstat (limited to 'src/cryptography')
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/ciphers.py | 8 |
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 |