diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-01-16 22:07:17 -0600 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-01-16 23:07:17 -0500 |
commit | b480d2d4dbc6339f476d49faa0900eae2f4c1d07 (patch) | |
tree | 6e2345d51feefdec0abbdc878b44b84bdb859628 /src/cryptography/hazmat/primitives/hashes.py | |
parent | bfc6fae472457c37abafb3818b44f0bd639be6cc (diff) | |
download | cryptography-b480d2d4dbc6339f476d49faa0900eae2f4c1d07.tar.gz cryptography-b480d2d4dbc6339f476d49faa0900eae2f4c1d07.tar.bz2 cryptography-b480d2d4dbc6339f476d49faa0900eae2f4c1d07.zip |
support byteslike in hash updates (#4702)
This is needed to handle keying material in some of the KDFs
Diffstat (limited to 'src/cryptography/hazmat/primitives/hashes.py')
-rw-r--r-- | src/cryptography/hazmat/primitives/hashes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/hashes.py b/src/cryptography/hazmat/primitives/hashes.py index 35b7d646..0d6e47fb 100644 --- a/src/cryptography/hazmat/primitives/hashes.py +++ b/src/cryptography/hazmat/primitives/hashes.py @@ -82,7 +82,7 @@ class Hash(object): def update(self, data): if self._ctx is None: raise AlreadyFinalized("Context was already finalized.") - utils._check_bytes("data", data) + utils._check_byteslike("data", data) self._ctx.update(data) def copy(self): |