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 / hotp.pyi
1 from cryptography.hazmat.backends.interfaces import HMACBackend
2 from cryptography.hazmat.primitives.hashes import HashAlgorithm
3
4 class HOTP(object):
5     def __init__(
6         self, key: bytes, length: int, algorithm: HashAlgorithm, backend: HMACBackend | None = ..., enforce_key_length: bool = ...
7     ): ...
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: ...