diff options
author | David Reid <dreid@dreid.org> | 2014-01-28 13:38:13 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2014-02-03 10:05:27 -0800 |
commit | aa9b9f1942f8c6bd5cfaa3de46e5ed64f816f49c (patch) | |
tree | 1997012fde95600c98b78a88c20628da33ce1e43 | |
parent | bddcb34bdd000d75a1259d0308f60ffd9b4b3375 (diff) | |
download | cryptography-aa9b9f1942f8c6bd5cfaa3de46e5ed64f816f49c.tar.gz cryptography-aa9b9f1942f8c6bd5cfaa3de46e5ed64f816f49c.tar.bz2 cryptography-aa9b9f1942f8c6bd5cfaa3de46e5ed64f816f49c.zip |
Actually register the interface.
-rw-r--r-- | cryptography/hazmat/primitives/kdf/hkdf.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cryptography/hazmat/primitives/kdf/hkdf.py b/cryptography/hazmat/primitives/kdf/hkdf.py index 71c277f4..ce264f9b 100644 --- a/cryptography/hazmat/primitives/kdf/hkdf.py +++ b/cryptography/hazmat/primitives/kdf/hkdf.py @@ -14,10 +14,14 @@ import six from cryptography import exceptions -from cryptography.hazmat.primitives import hmac +from cryptography import utils + from cryptography.hazmat.primitives import constant_time +from cryptography.hazmat.primitives import hmac +from cryptography.hazmat.primitives import interfaces +@utils.register_interface(interfaces.KeyDerivationFunction) class HKDF(object): def __init__(self, algorithm, length, salt, info, backend): self._algorithm = algorithm |