massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / cryptography / cryptography / hazmat / primitives / twofactor / totp.pyi
1 from cryptography.hazmat.backends.interfaces import HMACBackend
2 from cryptography.hazmat.primitives.hashes import HashAlgorithm
3
4 class TOTP(object):
5     def __init__(
6         self,
7         key: bytes,
8         length: int,
9         algorithm: HashAlgorithm,
10         time_step: int,
11         backend: HMACBackend | None = ...,
12         enforce_key_length: bool = ...,
13     ): ...
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: ...