1 from cryptography.hazmat.backends.interfaces import PBKDF2HMACBackend
2 from cryptography.hazmat.primitives.hashes import HashAlgorithm
3 from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
5 class PBKDF2HMAC(KeyDerivationFunction):
7 self, algorithm: HashAlgorithm, length: int, salt: bytes, iterations: int, backend: PBKDF2HMACBackend | None = ...
9 def derive(self, key_material: bytes) -> bytes: ...
10 def verify(self, key_material: bytes, expected_key: bytes) -> None: ...