1 from cryptography.hazmat.backends.interfaces import HMACBackend
2 from cryptography.hazmat.primitives.hashes import HashAlgorithm
3 from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
5 class HKDF(KeyDerivationFunction):
7 self, algorithm: HashAlgorithm, length: int, salt: bytes | None, info: bytes | None, backend: HMACBackend | None = ...
9 def derive(self, key_material: bytes) -> bytes: ...
10 def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
12 class HKDFExpand(KeyDerivationFunction):
13 def __init__(self, algorithm: HashAlgorithm, length: int, info: bytes | None, backend: HMACBackend | None = ...): ...
14 def derive(self, key_material: bytes) -> bytes: ...
15 def verify(self, key_material: bytes, expected_key: bytes) -> None: ...