aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index 3ecb9c19..27141eca 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -545,10 +545,10 @@ class Backend(object):
errors = self._consume_errors()
assert errors
assert errors[0].lib == self._lib.ERR_LIB_RSA
- assert (errors[0].reason ==
- self._lib.RSA_R_BLOCK_TYPE_IS_NOT_01 or
- errors[0].reason ==
- self._lib.RSA_R_BLOCK_TYPE_IS_NOT_02)
+ assert (
+ errors[0].reason == self._lib.RSA_R_BLOCK_TYPE_IS_NOT_01 or
+ errors[0].reason == self._lib.RSA_R_BLOCK_TYPE_IS_NOT_02
+ )
raise InvalidDecryption
return self._ffi.buffer(buf)[:outlen[0]]
@@ -572,10 +572,10 @@ class Backend(object):
errors = self._consume_errors()
assert errors
assert errors[0].lib == self._lib.ERR_LIB_RSA
- assert (errors[0].reason ==
- self._lib.RSA_R_BLOCK_TYPE_IS_NOT_01 or
- errors[0].reason ==
- self._lib.RSA_R_BLOCK_TYPE_IS_NOT_02)
+ assert (
+ errors[0].reason == self._lib.RSA_R_BLOCK_TYPE_IS_NOT_01 or
+ errors[0].reason == self._lib.RSA_R_BLOCK_TYPE_IS_NOT_02
+ )
raise InvalidDecryption
return self._ffi.buffer(buf)[:res]