diff --git a/tests/test_aead.py b/tests/test_aead.py index c1b1a902..98a9902b 100644 --- a/tests/test_aead.py +++ b/tests/test_aead.py @@ -159,7 +159,7 @@ def test_variants_roundtrip_aad( with pytest.raises(exc.CryptoError): ct1 = bytearray(ct) ct1[0] = ct1[0] ^ 0xFF - c.decrypt(ct1, aad, unonce, ukey) + c.decrypt(bytes(ct1), aad, unonce, ukey) @given( @@ -193,7 +193,7 @@ def test_variants_roundtrip_no_aad( with pytest.raises(exc.CryptoError): ct1 = bytearray(ct) ct1[0] = ct1[0] ^ 0xFF - c.decrypt(ct1, aad, unonce, ukey) + c.decrypt(bytes(ct1), aad, unonce, ukey) @pytest.mark.parametrize(