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
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/cryptography/cryptography/hazmat/primitives/twofactor/totp.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/cryptography/cryptography/hazmat/primitives/twofactor/totp.pyi
new file mode 100644 (file)
index 0000000..f6ba23e
--- /dev/null
@@ -0,0 +1,16 @@
+from cryptography.hazmat.backends.interfaces import HMACBackend
+from cryptography.hazmat.primitives.hashes import HashAlgorithm
+
+class TOTP(object):
+    def __init__(
+        self,
+        key: bytes,
+        length: int,
+        algorithm: HashAlgorithm,
+        time_step: int,
+        backend: HMACBackend | None = ...,
+        enforce_key_length: bool = ...,
+    ): ...
+    def generate(self, time: int) -> bytes: ...
+    def get_provisioning_uri(self, account_name: str, issuer: str | None) -> str: ...
+    def verify(self, totp: bytes, time: int) -> None: ...