diff --git a/src/cryptography/hazmat/primitives/padding.py b/src/cryptography/hazmat/primitives/padding.py
--- a/src/cryptography/hazmat/primitives/padding.py
+++ b/src/cryptography/hazmat/primitives/padding.py
@@ -40,9 +40,9 @@ def _byte_padding_update(buffer_, data, block_size):
     if buffer_ is None:
         raise AlreadyFinalized("Context was already finalized.")
 
-    utils._check_bytes("data", data)
+    utils._check_byteslike("data", data)
 
-    buffer_ += data
+    buffer_ += bytes(data)
 
     finished_blocks = len(buffer_) // (block_size // 8)
 
@@ -64,9 +64,9 @@ def _byte_unpadding_update(buffer_, data, block_size):
     if buffer_ is None:
         raise AlreadyFinalized("Context was already finalized.")
 
-    utils._check_bytes("data", data)
+    utils._check_byteslike("data", data)
 
-    buffer_ += data
+    buffer_ += bytes(data)
 
     finished_blocks = max(len(buffer_) // (block_size // 8) - 1, 0)
 

diff --git a/tests/hazmat/primitives/test_padding.py b/tests/hazmat/primitives/test_padding.py
--- a/tests/hazmat/primitives/test_padding.py
+++ b/tests/hazmat/primitives/test_padding.py
@@ -109,6 +109,18 @@ def test_large_padding(self):
 
         assert data == b""
 
+    def test_bytearray(self):
+        padder = padding.PKCS7(128).padder()
+        unpadded = bytearray(b"t" * 38)
+        padded = (
+            padder.update(unpadded)
+            + padder.update(unpadded)
+            + padder.finalize()
+        )
+        unpadder = padding.PKCS7(128).unpadder()
+        final = unpadder.update(padded) + unpadder.finalize()
+        assert final == unpadded + unpadded
+
 
 class TestANSIX923(object):
     @pytest.mark.parametrize("size", [127, 4096, -2])
@@ -193,3 +205,15 @@ def test_use_after_finalize(self):
             unpadder.update(b"")
         with pytest.raises(AlreadyFinalized):
             unpadder.finalize()
+
+    def test_bytearray(self):
+        padder = padding.ANSIX923(128).padder()
+        unpadded = bytearray(b"t" * 38)
+        padded = (
+            padder.update(unpadded)
+            + padder.update(unpadded)
+            + padder.finalize()
+        )
+        unpadder = padding.ANSIX923(128).unpadder()
+        final = unpadder.update(padded) + unpadder.finalize()
+        assert final == unpadded + unpadded

Allow bytearray in padding and unpadding
It looks like in the padding code, it requires the data passed to padding and unpadding to be bytes, and does not allow bytearray's. I saw in #4409 that bytes like objects were allowed as key material and such, does it make sense to allow them to be given to padders and unpadders? If so, I think it's just two instances of `_check_bytes` that would need to changed to `_check_byteslike` in https://github.com/pyca/cryptography/blob/master/src/cryptography/hazmat/primitives/padding.py, line 43 and 67.

Allowing buffers in padding seems reasonable -- though it's kind of pointless unless we change the internals of the padders, which would make tons of copies as currently written.
I don't quite follow?
The point of allowing buffers is that you can clear the memory, and thus be resillient to memory disclosure vulnerabilities.

Right now our padding implementation makes many copies of the memory, so even if the caller cleared _their_ copy, you wouldn't be secure against a disclosure vulnerability. Therefore we'e need to refactor the implementation to not make so many copies before we should support passing buffers.
Ah, I see. I admit, I was only thinking of convenience in this case, after passing a bytearray to a padder and being rejected.
tests/hazmat/primitives/test_padding.py::TestPKCS7::test_invalid_block_size[127] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_invalid_block_size[4096] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_invalid_block_size[-2] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_invalid_padding[128-1111] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_invalid_padding[128-1111111111111111] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_invalid_padding[128-111111111111111\x06] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_invalid_padding[128-] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_invalid_padding[128-\x06\x06\x06\x06\x06\x06] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_invalid_padding[128-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_non_bytes tests/hazmat/primitives/test_padding.py::TestPKCS7::test_pad[128-1111111111-1111111111\x06\x06\x06\x06\x06\x06] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_pad[128-111111111111111122222222222222-111111111111111122222222222222\x02\x02] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_pad[128-1111111111111111-1111111111111111\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_pad[128-11111111111111111-11111111111111111\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_unpad[128-1111111111-1111111111\x06\x06\x06\x06\x06\x06] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_unpad[128-111111111111111122222222222222-111111111111111122222222222222\x02\x02] tests/hazmat/primitives/test_padding.py::TestPKCS7::test_use_after_finalize tests/hazmat/primitives/test_padding.py::TestPKCS7::test_large_padding tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_block_size[127] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_block_size[4096] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_block_size[-2] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_padding[128-1111] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_padding[128-1111111111111111] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_padding[128-111111111111111\x06] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_padding[128-1111111111\x06\x06\x06\x06\x06\x06] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_padding[128-] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_padding[128-\x06\x06\x06\x06\x06\x06] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_invalid_padding[128-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_non_bytes tests/hazmat/primitives/test_padding.py::TestANSIX923::test_pad[128-1111111111-1111111111\x00\x00\x00\x00\x00\x06] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_pad[128-111111111111111122222222222222-111111111111111122222222222222\x00\x02] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_pad[128-1111111111111111-1111111111111111\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_pad[128-11111111111111111-11111111111111111\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_unpad[128-1111111111-1111111111\x00\x00\x00\x00\x00\x06] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_unpad[128-111111111111111122222222222222-111111111111111122222222222222\x00\x02] tests/hazmat/primitives/test_padding.py::TestANSIX923::test_use_after_finalize
tests/hazmat/primitives/test_padding.py::TestPKCS7::test_bytearray tests/hazmat/primitives/test_padding.py::TestANSIX923::test_bytearray