1 from typing import Any, Optional
\r
3 from Crypto.PublicKey.pubkey import pubkey
\r
4 from Crypto.PublicKey.pubkey import * # noqa: F403
\r
6 class error(Exception): ...
\r
8 def generate(bits, randfunc, progress_func: Optional[Any] = ...): ...
\r
9 def construct(tup): ...
\r
11 class ElGamalobj(pubkey):
\r
12 keydata = ... # type: Any
\r
13 def encrypt(self, plaintext, K): ...
\r
14 def decrypt(self, ciphertext): ...
\r
15 def sign(self, M, K): ...
\r
16 def verify(self, M, signature): ...
\r
18 def has_private(self): ...
\r
19 def publickey(self): ...
\r