diff options
author | David Reid <dreid@dreid.org> | 2013-11-12 15:50:43 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2013-11-12 15:50:43 -0800 |
commit | fcd36a9bb98fe6e13bc37cc833f317a3ee656eef (patch) | |
tree | adc44cfbca50c99f261c45d893d9378ea57e673b /cryptography/hazmat/primitives/hmac.py | |
parent | 9d0d94d97cb8ed8d15b24018e20c08cf1f7b78b4 (diff) | |
parent | 4faa094526f49c83a75d21a6e796546d4d539c6c (diff) | |
download | cryptography-fcd36a9bb98fe6e13bc37cc833f317a3ee656eef.tar.gz cryptography-fcd36a9bb98fe6e13bc37cc833f317a3ee656eef.tar.bz2 cryptography-fcd36a9bb98fe6e13bc37cc833f317a3ee656eef.zip |
Merge branch 'master' into hmac-context-from-backend
Conflicts:
cryptography/hazmat/bindings/openssl/backend.py
cryptography/hazmat/primitives/hmac.py
Diffstat (limited to 'cryptography/hazmat/primitives/hmac.py')
-rw-r--r-- | cryptography/hazmat/primitives/hmac.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cryptography/hazmat/primitives/hmac.py b/cryptography/hazmat/primitives/hmac.py index 57a908c4..0f1b4fac 100644 --- a/cryptography/hazmat/primitives/hmac.py +++ b/cryptography/hazmat/primitives/hmac.py @@ -21,7 +21,6 @@ from cryptography.hazmat.primitives import interfaces @interfaces.register(interfaces.HashContext) class HMAC(object): def __init__(self, key, algorithm, ctx=None, backend=None): - super(HMAC, self).__init__() if not isinstance(algorithm, interfaces.HashAlgorithm): raise TypeError("Expected instance of interfaces.HashAlgorithm.") self.algorithm = algorithm @@ -44,8 +43,10 @@ class HMAC(object): def copy(self): return HMAC( - self._key, self.algorithm, ctx=self._ctx.copy(), - backend=self._backend + self._key, + self.algorithm, + backend=self._backend, + ctx=self._ctx.copy() ) def finalize(self): |