Merge pull request #254 from alex/contributing
Call out the security reporting info in the CONTRIBUTING file
diff --git a/cryptography/hazmat/bindings/openssl/backend.py b/cryptography/hazmat/bindings/openssl/backend.py
index 4760f9b..71bb9fc 100644
--- a/cryptography/hazmat/bindings/openssl/backend.py
+++ b/cryptography/hazmat/bindings/openssl/backend.py
@@ -307,7 +307,7 @@
assert res != 0
res = self._backend.lib.EVP_MD_CTX_cleanup(self._ctx)
assert res == 1
- return self._backend.ffi.buffer(buf)[:self.algorithm.digest_size]
+ return self._backend.ffi.buffer(buf)[:]
class Hashes(object):
@@ -373,7 +373,7 @@
res = self._backend.lib.Cryptography_HMAC_Final(self._ctx, buf, buflen)
assert res != 0
self._backend.lib.HMAC_CTX_cleanup(self._ctx)
- return self._backend.ffi.buffer(buf)[:self.algorithm.digest_size]
+ return self._backend.ffi.buffer(buf)[:]
class HMACs(object):