diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-19 12:38:22 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-19 22:16:15 -0500 |
commit | 07827ebe994121262ab0d25936c443d81be7f9c4 (patch) | |
tree | 2f589a4bffbe05facab0e821d3b07675ba904167 | |
parent | b16937fed8ef6afebdb1f3198d145df876497c81 (diff) | |
download | cryptography-07827ebe994121262ab0d25936c443d81be7f9c4.tar.gz cryptography-07827ebe994121262ab0d25936c443d81be7f9c4.tar.bz2 cryptography-07827ebe994121262ab0d25936c443d81be7f9c4.zip |
remove redundant assert (reason assertion covers this case)
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index b3c2f0ee..9ac062c2 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -897,10 +897,6 @@ class _RSASignatureContext(object): if res != 1: errors = self._backend._consume_errors() assert errors[0].lib == self._backend._lib.ERR_LIB_RSA - assert (errors[0].reason == - self._backend._lib.RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE or - errors[0].reason == - self._backend._lib.RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY) reason = None if (errors[0].reason == self._backend._lib.RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE): |