aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2019-01-17 18:13:11 -0600
committerAlex Gaynor <alex.gaynor@gmail.com>2019-01-17 19:13:11 -0500
commit7f8d9c06ef386a9187aed3eaa4d29a88f11f8c7c (patch)
tree3f92cc92fd9cb681ec004e20a51b1390d73d6016 /src
parenta77994408da328e6b0fba331211be9ad2db5c5b6 (diff)
downloadcryptography-7f8d9c06ef386a9187aed3eaa4d29a88f11f8c7c.tar.gz
cryptography-7f8d9c06ef386a9187aed3eaa4d29a88f11f8c7c.tar.bz2
cryptography-7f8d9c06ef386a9187aed3eaa4d29a88f11f8c7c.zip
support byteslike in KBKDFHMAC (#4711)
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/primitives/kdf/kbkdf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/kdf/kbkdf.py b/src/cryptography/hazmat/primitives/kdf/kbkdf.py
index 74fe9e29..56783a85 100644
--- a/src/cryptography/hazmat/primitives/kdf/kbkdf.py
+++ b/src/cryptography/hazmat/primitives/kdf/kbkdf.py
@@ -100,7 +100,7 @@ class KBKDFHMAC(object):
if self._used:
raise AlreadyFinalized
- utils._check_bytes("key_material", key_material)
+ utils._check_byteslike("key_material", key_material)
self._used = True
# inverse floor division (equivalent to ceiling)