1 from cryptography.hazmat.backends.interfaces import HMACBackend
2 from cryptography.hazmat.primitives.hashes import HashAlgorithm
6 self, key: bytes, length: int, algorithm: HashAlgorithm, backend: HMACBackend | None = ..., enforce_key_length: bool = ...
8 def generate(self, counter: int) -> bytes: ...
9 def get_provisioning_uri(self, account_name: str, counter: int, issuer: str | None) -> str: ...
10 def verify(self, hotp: bytes, counter: int) -> None: ...