aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/hazmat/backends/openssl/hashes.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-09-26 09:55:15 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-09-26 09:55:15 -0400
commit915e0a1194400203b0e49e05de5facbc4ac8eb66 (patch)
treec2d328a451b25e9b66fbbbea74384def147e69b6 /src/cryptography/hazmat/backends/openssl/hashes.py
parent3f3f20c7b429a19819e90e0bb181c5895e18c7dc (diff)
downloadcryptography-915e0a1194400203b0e49e05de5facbc4ac8eb66.tar.gz
cryptography-915e0a1194400203b0e49e05de5facbc4ac8eb66.tar.bz2
cryptography-915e0a1194400203b0e49e05de5facbc4ac8eb66.zip
converted a few more asserts
Diffstat (limited to 'src/cryptography/hazmat/backends/openssl/hashes.py')
-rw-r--r--src/cryptography/hazmat/backends/openssl/hashes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/hashes.py b/src/cryptography/hazmat/backends/openssl/hashes.py
index a6b65f22..02ce5f0d 100644
--- a/src/cryptography/hazmat/backends/openssl/hashes.py
+++ b/src/cryptography/hazmat/backends/openssl/hashes.py
@@ -56,7 +56,7 @@ class _HashContext(object):
outlen = self._backend._ffi.new("unsigned int *")
res = self._backend._lib.EVP_DigestFinal_ex(self._ctx, buf, outlen)
self._backend.openssl_assert(res != 0)
- assert outlen[0] == self.algorithm.digest_size
+ self._backend.openssl_assert(outlen[0] == self.algorithm.digest_size)
res = self._backend._lib.EVP_MD_CTX_cleanup(self._ctx)
self._backend.openssl_assert(res == 1)
return self._backend._ffi.buffer(buf)[:outlen[0]]