aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/hazmat/primitives/hmac.py
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-11-11 11:48:39 -0800
committerDavid Reid <dreid@dreid.org>2013-11-18 09:57:18 -0800
commitd706515791ad42a527b39e899b89e4f669dff430 (patch)
treee1ecbca88057d82ac7e898483139c5587ba39ec0 /cryptography/hazmat/primitives/hmac.py
parent729e62b0e19c2278da762af5f3fcc4e083747497 (diff)
downloadcryptography-d706515791ad42a527b39e899b89e4f669dff430.tar.gz
cryptography-d706515791ad42a527b39e899b89e4f669dff430.tar.bz2
cryptography-d706515791ad42a527b39e899b89e4f669dff430.zip
Move register so it can be used by cryptography.hazmat.bindings.interfaces.
Diffstat (limited to 'cryptography/hazmat/primitives/hmac.py')
-rw-r--r--cryptography/hazmat/primitives/hmac.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cryptography/hazmat/primitives/hmac.py b/cryptography/hazmat/primitives/hmac.py
index 1bbe39c7..08dfae01 100644
--- a/cryptography/hazmat/primitives/hmac.py
+++ b/cryptography/hazmat/primitives/hmac.py
@@ -15,11 +15,12 @@ from __future__ import absolute_import, division, print_function
import six
+from cryptography import utils
from cryptography.exceptions import AlreadyFinalized
from cryptography.hazmat.primitives import interfaces
-@interfaces.register(interfaces.HashContext)
+@utils.register_interface(interfaces.HashContext)
class HMAC(object):
def __init__(self, key, algorithm, ctx=None, backend=None):
if not isinstance(algorithm, interfaces.HashAlgorithm):