3 from cryptography.hazmat.backends.interfaces import HMACBackend
4 from cryptography.hazmat.primitives.hashes import HashAlgorithm
5 from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
10 class CounterLocation(Enum):
14 class KBKDFHMAC(KeyDerivationFunction):
17 algorithm: HashAlgorithm,
22 location: CounterLocation,
24 context: bytes | None,
26 backend: HMACBackend | None = ...,
28 def derive(self, key_material: bytes) -> bytes: ...
29 def verify(self, key_material: bytes, expected_key: bytes) -> None: ...