1 from cryptography.hazmat.backends.interfaces import HashBackend, HMACBackend
2 from cryptography.hazmat.primitives.hashes import HashAlgorithm
3 from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
5 class ConcatKDFHash(KeyDerivationFunction):
6 def __init__(self, algorithm: HashAlgorithm, length: int, otherinfo: bytes | None, backend: HashBackend | None = ...): ...
7 def derive(self, key_material: bytes) -> bytes: ...
8 def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
10 class ConcatKDFHMAC(KeyDerivationFunction):
13 algorithm: HashAlgorithm,
16 otherinfo: bytes | None,
17 backend: HMACBackend | None = ...,
19 def derive(self, key_material: bytes) -> bytes: ...
20 def verify(self, key_material: bytes, expected_key: bytes) -> None: ...