1 from typing import Any, Optional, Union, Text
\r
2 from .pubkey import pubkey
\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
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
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
29 generate = ... # type: Any
\r
30 construct = ... # type: Any
\r
31 importKey = ... # type: Any
\r
32 error = ... # type: Any
\r