aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-19 18:11:51 -0700
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-19 18:11:51 -0700
commit0123d4ca3c4a6b2da4a577b9943ec5bf4544246c (patch)
treee65eae2538fa1499f60c382359103ec39e202538
parent641ad5838a5613a3b7c287cb3444550a2fc01dc3 (diff)
parent5d135e0bfbf4d16eb05fb2f38a3bba33deaf09d8 (diff)
downloadcryptography-0123d4ca3c4a6b2da4a577b9943ec5bf4544246c.tar.gz
cryptography-0123d4ca3c4a6b2da4a577b9943ec5bf4544246c.tar.bz2
cryptography-0123d4ca3c4a6b2da4a577b9943ec5bf4544246c.zip
Merge pull request #1415 from alex/assert-simplification
Split this assert into two.
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index 6fad6fc7..567f1648 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -1005,10 +1005,8 @@ class Backend(object):
res = get_func(group, point, check_x, check_y, bn_ctx)
assert res == 1
- assert (
- self._lib.BN_cmp(bn_x, check_x) == 0 and
- self._lib.BN_cmp(bn_y, check_y) == 0
- )
+ assert self._lib.BN_cmp(bn_x, check_x) == 0
+ assert self._lib.BN_cmp(bn_y, check_y) == 0
res = self._lib.EC_KEY_set_public_key(ctx, point)
assert res == 1