aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-15 11:01:01 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-20 16:53:03 -0500
commit755c8ba8b3cfc9e310d9f8ec6135961a2d933282 (patch)
treea162a8ccbdb997f46bfcf9a073a16a0fc7a6aa3e
parent34ce33859b87df620e1edf27ba88db5b7e151a25 (diff)
downloadcryptography-755c8ba8b3cfc9e310d9f8ec6135961a2d933282.tar.gz
cryptography-755c8ba8b3cfc9e310d9f8ec6135961a2d933282.tar.bz2
cryptography-755c8ba8b3cfc9e310d9f8ec6135961a2d933282.zip
change some alignment
-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]