diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-10-20 16:48:59 -0700 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-10-20 16:48:59 -0700 |
commit | 126afca70edc3fac2e493c6b7cd05219c8d8e373 (patch) | |
tree | e4c0081f7f153eb551b284d45ab945d851b26af1 /cryptography/hazmat/primitives/hmac.py | |
parent | a31e26f0dca915ccbb2e5e87a929b6bbc154c3c3 (diff) | |
parent | 7d15688fe0c64d324691fc3886bcc9a5cdba62d1 (diff) | |
download | cryptography-126afca70edc3fac2e493c6b7cd05219c8d8e373.tar.gz cryptography-126afca70edc3fac2e493c6b7cd05219c8d8e373.tar.bz2 cryptography-126afca70edc3fac2e493c6b7cd05219c8d8e373.zip |
Merge pull request #1423 from alex/pr/1396
Add MACContext and switch HMAC and CMAC to use it
Diffstat (limited to 'cryptography/hazmat/primitives/hmac.py')
-rw-r--r-- | cryptography/hazmat/primitives/hmac.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cryptography/hazmat/primitives/hmac.py b/cryptography/hazmat/primitives/hmac.py index 026ad3b3..23292432 100644 --- a/cryptography/hazmat/primitives/hmac.py +++ b/cryptography/hazmat/primitives/hmac.py @@ -21,6 +21,7 @@ from cryptography.hazmat.backends.interfaces import HMACBackend from cryptography.hazmat.primitives import constant_time, interfaces +@utils.register_interface(interfaces.MACContext) @utils.register_interface(interfaces.HashContext) class HMAC(object): def __init__(self, key, algorithm, backend, ctx=None): |