diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-01-17 09:41:25 -0600 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-01-17 10:41:25 -0500 |
commit | 8d9ea52be9e7de1373641d3afaed9b292cb03f43 (patch) | |
tree | 4ac1aba34cc455f4e0b20b8b3a010ef81221a6c8 /tests | |
parent | b480d2d4dbc6339f476d49faa0900eae2f4c1d07 (diff) | |
download | cryptography-8d9ea52be9e7de1373641d3afaed9b292cb03f43.tar.gz cryptography-8d9ea52be9e7de1373641d3afaed9b292cb03f43.tar.bz2 cryptography-8d9ea52be9e7de1373641d3afaed9b292cb03f43.zip |
support byteslike in hmac update (#4705)
needed for some KDF keying material
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/primitives/test_hmac.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hazmat/primitives/test_hmac.py b/tests/hazmat/primitives/test_hmac.py index b6d18ff1..0e2fe688 100644 --- a/tests/hazmat/primitives/test_hmac.py +++ b/tests/hazmat/primitives/test_hmac.py @@ -84,7 +84,7 @@ class TestHMAC(object): def test_buffer_protocol(self, backend): key = bytearray(b"2b7e151628aed2a6abf7158809cf4f3c") h = hmac.HMAC(key, hashes.SHA256(), backend) - h.update(b"6bc1bee22e409f96e93d7e117393172a") + h.update(bytearray(b"6bc1bee22e409f96e93d7e117393172a")) assert h.finalize() == binascii.unhexlify( b"a1bf7169c56a501c6585190ff4f07cad6e492a3ee187c0372614fb444b9fc3f0" ) |