aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/hazmat/backends/openssl/hmac.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-02-13 12:49:27 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-02-13 12:49:27 -0500
commit0f696fab0e012bca0b69f2c933c679f5ecbe80ad (patch)
tree96d5ed3979e735548b0e3ec6a59f5017d820526b /src/cryptography/hazmat/backends/openssl/hmac.py
parent723cc3f2ed921c01168ea8f35ca7e94f2cc0a44b (diff)
parent2636e4abd54140a26cf8f0793d1be16d9458e032 (diff)
downloadcryptography-0f696fab0e012bca0b69f2c933c679f5ecbe80ad.tar.gz
cryptography-0f696fab0e012bca0b69f2c933c679f5ecbe80ad.tar.bz2
cryptography-0f696fab0e012bca0b69f2c933c679f5ecbe80ad.zip
Merge pull request #1658 from reaperhulk/move-hash-interfaces
Move hash interfaces
Diffstat (limited to 'src/cryptography/hazmat/backends/openssl/hmac.py')
-rw-r--r--src/cryptography/hazmat/backends/openssl/hmac.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/hmac.py b/src/cryptography/hazmat/backends/openssl/hmac.py
index 356d2aa8..dfe9d93b 100644
--- a/src/cryptography/hazmat/backends/openssl/hmac.py
+++ b/src/cryptography/hazmat/backends/openssl/hmac.py
@@ -9,11 +9,11 @@ from cryptography import utils
from cryptography.exceptions import (
InvalidSignature, UnsupportedAlgorithm, _Reasons
)
-from cryptography.hazmat.primitives import constant_time, interfaces
+from cryptography.hazmat.primitives import constant_time, hashes, interfaces
@utils.register_interface(interfaces.MACContext)
-@utils.register_interface(interfaces.HashContext)
+@utils.register_interface(hashes.HashContext)
class _HMACContext(object):
def __init__(self, backend, key, algorithm, ctx=None):
self._algorithm = algorithm