aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-23 09:41:49 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-28 17:34:37 -0500
commit00dd509f180b6229cfd4b913274a94df3bc05a00 (patch)
tree1901c5c6d715b34a36f5b7c1e54f4c952c51d31a /cryptography
parent6122d129e97efc49390bd2c41f644b85b1056cce (diff)
downloadcryptography-00dd509f180b6229cfd4b913274a94df3bc05a00.tar.gz
cryptography-00dd509f180b6229cfd4b913274a94df3bc05a00.tar.bz2
cryptography-00dd509f180b6229cfd4b913274a94df3bc05a00.zip
address initial review comments
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/bindings/openssl/backend.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cryptography/hazmat/bindings/openssl/backend.py b/cryptography/hazmat/bindings/openssl/backend.py
index db5a9e1e..635d6a0c 100644
--- a/cryptography/hazmat/bindings/openssl/backend.py
+++ b/cryptography/hazmat/bindings/openssl/backend.py
@@ -283,8 +283,7 @@ class HMACs(object):
def finalize_ctx(self, ctx, digest_size):
buf = self._backend.ffi.new("unsigned char[]", digest_size)
- buflen = self._backend.ffi.new("unsigned int *")
- buflen[0] = digest_size
+ buflen = self._backend.ffi.new("unsigned int *", digest_size)
res = self._backend.lib.HMAC_Final(ctx, buf, buflen)
assert res != 0
self._backend.lib.HMAC_CTX_cleanup(ctx)