remove length check (which cffi handles)
diff --git a/cryptography/hazmat/primitives/kdf/pbkdf2.py b/cryptography/hazmat/primitives/kdf/pbkdf2.py
index 27f9c7e..1cc35f6 100644
--- a/cryptography/hazmat/primitives/kdf/pbkdf2.py
+++ b/cryptography/hazmat/primitives/kdf/pbkdf2.py
@@ -29,8 +29,6 @@
)
self._called = False
self.algorithm = algorithm
- if length > 2**31 - 1:
- raise ValueError("Requested length too large.")
self._length = length
self._salt = salt
self.iterations = iterations
diff --git a/tests/hazmat/primitives/test_pbkdf2.py b/tests/hazmat/primitives/test_pbkdf2.py
index 6dd1012..4d15d7a 100644
--- a/tests/hazmat/primitives/test_pbkdf2.py
+++ b/tests/hazmat/primitives/test_pbkdf2.py
@@ -57,7 +57,3 @@
kdf = PBKDF2(hashes.SHA1(), 20, b"salt", 10, default_backend())
with pytest.raises(InvalidKey):
kdf.verify(b"password2", key)
-
- def test_salt_too_long(self):
- with pytest.raises(ValueError):
- PBKDF2(hashes.SHA1(), 2**31, b"salt", 10, default_backend())