--- /dev/null
+from typing import Any, Optional\r
+\r
+from Crypto.PublicKey.pubkey import pubkey\r
+from Crypto.PublicKey.pubkey import * # noqa: F403\r
+\r
+class error(Exception): ...\r
+\r
+def generate(bits, randfunc, progress_func: Optional[Any] = ...): ...\r
+def construct(tup): ...\r
+\r
+class ElGamalobj(pubkey):\r
+ keydata = ... # type: Any\r
+ def encrypt(self, plaintext, K): ...\r
+ def decrypt(self, ciphertext): ...\r
+ def sign(self, M, K): ...\r
+ def verify(self, M, signature): ...\r
+ def size(self): ...\r
+ def has_private(self): ...\r
+ def publickey(self): ...\r