diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-23 00:17:34 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-28 17:34:37 -0500 |
commit | 64cadb367f2a533e828a030481fde9f0a46d7801 (patch) | |
tree | c05e31f3cb0d9090f79468b4de29e8c211bfd573 /cryptography | |
parent | 0317b04b119ceb55e11cf1be28c5223bad240c26 (diff) | |
download | cryptography-64cadb367f2a533e828a030481fde9f0a46d7801.tar.gz cryptography-64cadb367f2a533e828a030481fde9f0a46d7801.tar.bz2 cryptography-64cadb367f2a533e828a030481fde9f0a46d7801.zip |
cleanup context after finalizing
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/bindings/openssl/backend.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/backend.py b/cryptography/hazmat/bindings/openssl/backend.py index 300495cb..db5a9e1e 100644 --- a/cryptography/hazmat/bindings/openssl/backend.py +++ b/cryptography/hazmat/bindings/openssl/backend.py @@ -287,6 +287,7 @@ class HMACs(object): buflen[0] = digest_size res = self._backend.lib.HMAC_Final(ctx, buf, buflen) assert res != 0 + self._backend.lib.HMAC_CTX_cleanup(ctx) return self._backend.ffi.buffer(buf)[:digest_size] def copy_ctx(self, ctx): |