1 from cryptography.hazmat.backends.interfaces import HMACBackend
2 from cryptography.hazmat.primitives.hashes import HashAlgorithm
9 algorithm: HashAlgorithm,
11 backend: HMACBackend | None = ...,
12 enforce_key_length: bool = ...,
14 def generate(self, time: int) -> bytes: ...
15 def get_provisioning_uri(self, account_name: str, issuer: str | None) -> str: ...
16 def verify(self, totp: bytes, time: int) -> None: ...