diff options
author | David Reid <dreid@dreid.org> | 2014-01-28 14:46:44 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2014-02-03 10:05:27 -0800 |
commit | fec6d147eef3ada5b8d3c11714216f9438db58e3 (patch) | |
tree | e276216d90cbb94ed5e9abe0f5b9b8735bd66425 /tests | |
parent | aa9b9f1942f8c6bd5cfaa3de46e5ed64f816f49c (diff) | |
download | cryptography-fec6d147eef3ada5b8d3c11714216f9438db58e3.tar.gz cryptography-fec6d147eef3ada5b8d3c11714216f9438db58e3.tar.bz2 cryptography-fec6d147eef3ada5b8d3c11714216f9438db58e3.zip |
bytes all the things.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/primitives/test_hkdf.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/hazmat/primitives/test_hkdf.py b/tests/hazmat/primitives/test_hkdf.py index 3d9dffda..53bc098d 100644 --- a/tests/hazmat/primitives/test_hkdf.py +++ b/tests/hazmat/primitives/test_hkdf.py @@ -43,10 +43,10 @@ class TestHKDF(object): backend=backend ) - hkdf.derive('\x01' * 16) + hkdf.derive(b'\x01' * 16) with pytest.raises(exceptions.AlreadyFinalized): - hkdf.derive('\x02' * 16) + hkdf.derive(b'\x02' * 16) hkdf = HKDF( hashes.SHA256(), @@ -56,10 +56,10 @@ class TestHKDF(object): backend=backend ) - hkdf.verify('\x01' * 16, 'gJ\xfb{\xb1Oi\xc5sMC\xb7\xe4@\xf7u') + hkdf.verify(b'\x01' * 16, b'gJ\xfb{\xb1Oi\xc5sMC\xb7\xe4@\xf7u') with pytest.raises(exceptions.AlreadyFinalized): - hkdf.verify('\x02' * 16, 'gJ\xfb{\xb1Oi\xc5sMC\xb7\xe4@\xf7u') + hkdf.verify(b'\x02' * 16, b'gJ\xfb{\xb1Oi\xc5sMC\xb7\xe4@\xf7u') def test_verify(self, backend): hkdf = HKDF( @@ -70,7 +70,7 @@ class TestHKDF(object): backend=backend ) - hkdf.verify('\x01' * 16, 'gJ\xfb{\xb1Oi\xc5sMC\xb7\xe4@\xf7u') + hkdf.verify(b'\x01' * 16, b'gJ\xfb{\xb1Oi\xc5sMC\xb7\xe4@\xf7u') def test_verify_invalid(self, backend): hkdf = HKDF( @@ -82,4 +82,4 @@ class TestHKDF(object): ) with pytest.raises(exceptions.InvalidKey): - hkdf.verify('\x02' * 16, 'gJ\xfb{\xb1Oi\xc5sMC\xb7\xe4@\xf7u') + hkdf.verify(b'\x02' * 16, b'gJ\xfb{\xb1Oi\xc5sMC\xb7\xe4@\xf7u') |