aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/hazmat/primitives/hmac.py
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-11-18 13:02:00 -0800
committerDavid Reid <dreid@dreid.org>2013-11-18 13:02:00 -0800
commitdcf62db81ad60b3591ae6d83dce43c311a347ac2 (patch)
tree08512317ebee9a8155e3cd3854ca1fc7eedc7442 /cryptography/hazmat/primitives/hmac.py
parent984eeeb388e79db6354efd884e0f5d8b7b069560 (diff)
downloadcryptography-dcf62db81ad60b3591ae6d83dce43c311a347ac2.tar.gz
cryptography-dcf62db81ad60b3591ae6d83dce43c311a347ac2.tar.bz2
cryptography-dcf62db81ad60b3591ae6d83dce43c311a347ac2.zip
Move interfaces.register to utils.register_interface in preparation for more interface modules.
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):