massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / Crypto / PublicKey / RSA.pyi
1 from typing import Any, Optional, Union, Text\r
2 from .pubkey import pubkey\r
3 \r
4 class _RSAobj(pubkey):\r
5     keydata = ...  # type: Any\r
6     implementation = ...  # type: Any\r
7     key = ...  # type: Any\r
8     def __init__(self, implementation, key, randfunc: Optional[Any] = ...) -> None: ...\r
9     def __getattr__(self, attrname): ...\r
10     def encrypt(self, plaintext, K): ...\r
11     def decrypt(self, ciphertext): ...\r
12     def sign(self, M, K): ...\r
13     def verify(self, M, signature): ...\r
14     def has_private(self): ...\r
15     def size(self): ...\r
16     def can_blind(self): ...\r
17     def can_encrypt(self): ...\r
18     def can_sign(self): ...\r
19     def publickey(self): ...\r
20     def exportKey(self, format: str = ..., passphrase: Optional[Any] = ..., pkcs: int = ...): ...\r
21 \r
22 class RSAImplementation:\r
23     error = ...  # type: Any\r
24     def __init__(self, **kwargs) -> None: ...\r
25     def generate(self, bits, randfunc: Optional[Any] = ..., progress_func: Optional[Any] = ..., e: int = ...): ...\r
26     def construct(self, tup): ...\r
27     def importKey(self, externKey: Any, passphrase: Union[None, bytes, Text] = ...) -> _RSAobj: ...\r
28 \r
29 generate = ...  # type: Any\r
30 construct = ...  # type: Any\r
31 importKey = ...  # type: Any\r
32 error = ...  # type: Any\r