1 from cryptography.hazmat.backends.interfaces import ScryptBackend
2 from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
4 class Scrypt(KeyDerivationFunction):
5 def __init__(self, salt: bytes, length: int, n: int, r: int, p: int, backend: ScryptBackend | None = ...): ...
6 def derive(self, key_material: bytes) -> bytes: ...
7 def verify(self, key_material: bytes, expected_key: bytes) -> None: ...