diff --git a/out/Crypto/Util/Counter.pyi b/out/Crypto/Util/Counter.pyi new file mode 100644 index 000000000..93cbc4baf --- /dev/null +++ b/out/Crypto/Util/Counter.pyi @@ -0,0 +1,9 @@ +# Stubs for Crypto.Util.Counter (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any +from Crypto.Util.py21compat import * +from Crypto.Util.py3compat import * + +def new(nbits, prefix: Any = ..., suffix: Any = ..., initial_value: int = ..., overflow: int = ..., little_endian: bool = ..., allow_wraparound: bool = ..., disable_shortcut: bool = ...): ... diff --git a/out/Crypto/Util/__init__.pyi b/out/Crypto/Util/__init__.pyi new file mode 100644 index 000000000..26f6576ca --- /dev/null +++ b/out/Crypto/Util/__init__.pyi @@ -0,0 +1,10 @@ +# Stubs for Crypto.Util (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +# Names in __all__ with no definition: +# RFC1751 +# asn1 +# number +# randpool +# strxor diff --git a/out/Crypto/Util/py3compat.pyi b/out/Crypto/Util/py3compat.pyi new file mode 100644 index 000000000..c003ebb29 --- /dev/null +++ b/out/Crypto/Util/py3compat.pyi @@ -0,0 +1,11 @@ +# Stubs for Crypto.Util.py3compat (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +__revision__ = ... # type: str + +def b(s): ... +def bchr(s): ... +def bstr(s): ... +def bord(s): ... +def tobytes(s): ... diff --git a/third_party/2/Crypto/Cipher/AES.pyi b/third_party/2/Crypto/Cipher/AES.pyi deleted file mode 100644 index e69de29bb..000000000 diff --git a/third_party/2/Crypto/Random/random.pyi b/third_party/2/Crypto/Random/random.pyi deleted file mode 100644 index 76f278091..000000000 --- a/third_party/2/Crypto/Random/random.pyi +++ /dev/null @@ -1,3 +0,0 @@ -# very stubby version of Crypto.Random - -def randint(min: int, max: int) -> int: ... diff --git a/third_party/2/Crypto/__init__.pyi b/third_party/2/Crypto/__init__.pyi deleted file mode 100644 index e69de29bb..000000000 diff --git a/third_party/2and3/Crypto/Cipher/AES.pyi b/third_party/2and3/Crypto/Cipher/AES.pyi new file mode 100644 index 000000000..45b13aba2 --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/AES.pyi @@ -0,0 +1,23 @@ +# Stubs for Crypto.Cipher.AES (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text +from .blockalgo import BlockAlgo + +__revision__ = ... # type: str + +class AESCipher(BlockAlgo): + def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... + +def new(key: Union[bytes, Text], *args, **kwargs) -> AESCipher: ... + +MODE_ECB = ... # type: int +MODE_CBC = ... # type: int +MODE_CFB = ... # type: int +MODE_PGP = ... # type: int +MODE_OFB = ... # type: int +MODE_CTR = ... # type: int +MODE_OPENPGP = ... # type: int +block_size = ... # type: int +key_size = ... # type: int diff --git a/third_party/2and3/Crypto/Cipher/ARC2.pyi b/third_party/2and3/Crypto/Cipher/ARC2.pyi new file mode 100644 index 000000000..08aec54d9 --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/ARC2.pyi @@ -0,0 +1,23 @@ +# Stubs for Crypto.Cipher.ARC2 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text +from .blockalgo import BlockAlgo + +__revision__ = ... # type: str + +class RC2Cipher(BlockAlgo): + def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... + +def new(key: Union[bytes, Text], *args, **kwargs) -> RC2Cipher: ... + +MODE_ECB = ... # type: int +MODE_CBC = ... # type: int +MODE_CFB = ... # type: int +MODE_PGP = ... # type: int +MODE_OFB = ... # type: int +MODE_CTR = ... # type: int +MODE_OPENPGP = ... # type: int +block_size = ... # type: int +key_size = ... # type: int diff --git a/third_party/2and3/Crypto/Cipher/ARC4.pyi b/third_party/2and3/Crypto/Cipher/ARC4.pyi new file mode 100644 index 000000000..3a5253943 --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/ARC4.pyi @@ -0,0 +1,19 @@ +# Stubs for Crypto.Cipher.ARC4 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text + +__revision__ = ... # type: str + +class ARC4Cipher: + block_size = ... # type: int + key_size = ... # type: int + def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... + def encrypt(self, plaintext): ... + def decrypt(self, ciphertext): ... + +def new(key: Union[bytes, Text], *args, **kwargs) -> ARC4Cipher: ... + +block_size = ... # type: int +key_size = ... # type: int diff --git a/third_party/2and3/Crypto/Cipher/Blowfish.pyi b/third_party/2and3/Crypto/Cipher/Blowfish.pyi new file mode 100644 index 000000000..546eac2ff --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/Blowfish.pyi @@ -0,0 +1,23 @@ +# Stubs for Crypto.Cipher.Blowfish (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text +from .blockalgo import BlockAlgo + +__revision__ = ... # type: str + +class BlowfishCipher(BlockAlgo): + def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... + +def new(key: Union[bytes, Text], *args, **kwargs) -> BlowfishCipher: ... + +MODE_ECB = ... # type: int +MODE_CBC = ... # type: int +MODE_CFB = ... # type: int +MODE_PGP = ... # type: int +MODE_OFB = ... # type: int +MODE_CTR = ... # type: int +MODE_OPENPGP = ... # type: int +block_size = ... # type: int +key_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Cipher/CAST.pyi b/third_party/2and3/Crypto/Cipher/CAST.pyi new file mode 100644 index 000000000..f63a43b61 --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/CAST.pyi @@ -0,0 +1,23 @@ +# Stubs for Crypto.Cipher.CAST (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text +from .blockalgo import BlockAlgo + +__revision__ = ... # type: str + +class CAST128Cipher(BlockAlgo): + def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... + +def new(key: Union[bytes, Text], *args, **kwargs) -> CAST128Cipher: ... + +MODE_ECB = ... # type: int +MODE_CBC = ... # type: int +MODE_CFB = ... # type: int +MODE_PGP = ... # type: int +MODE_OFB = ... # type: int +MODE_CTR = ... # type: int +MODE_OPENPGP = ... # type: int +block_size = ... # type: int +key_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Cipher/DES.pyi b/third_party/2and3/Crypto/Cipher/DES.pyi new file mode 100644 index 000000000..c2b2f5c5d --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/DES.pyi @@ -0,0 +1,23 @@ +# Stubs for Crypto.Cipher.DES (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text +from .blockalgo import BlockAlgo + +__revision__ = ... # type: str + +class DESCipher(BlockAlgo): + def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... + +def new(key: Union[bytes, Text], *args, **kwargs) -> DESCipher: ... + +MODE_ECB = ... # type: int +MODE_CBC = ... # type: int +MODE_CFB = ... # type: int +MODE_PGP = ... # type: int +MODE_OFB = ... # type: int +MODE_CTR = ... # type: int +MODE_OPENPGP = ... # type: int +block_size = ... # type: int +key_size = ... # type: int diff --git a/third_party/2and3/Crypto/Cipher/DES3.pyi b/third_party/2and3/Crypto/Cipher/DES3.pyi new file mode 100644 index 000000000..f8684b784 --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/DES3.pyi @@ -0,0 +1,24 @@ +# Stubs for Crypto.Cipher.DES3 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text + +from .blockalgo import BlockAlgo + +__revision__ = ... # type: str + +class DES3Cipher(BlockAlgo): + def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... + +def new(key: Union[bytes, Text], *args, **kwargs) -> DES3Cipher: ... + +MODE_ECB = ... # type: int +MODE_CBC = ... # type: int +MODE_CFB = ... # type: int +MODE_PGP = ... # type: int +MODE_OFB = ... # type: int +MODE_CTR = ... # type: int +MODE_OPENPGP = ... # type: int +block_size = ... # type: int +key_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Cipher/PKCS1_OAEP.pyi b/third_party/2and3/Crypto/Cipher/PKCS1_OAEP.pyi new file mode 100644 index 000000000..4f57f48a2 --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/PKCS1_OAEP.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Cipher.PKCS1_OAEP (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional, Union, Text + +from Crypto.PublicKey.RSA import _RSAobj + +class PKCS1OAEP_Cipher: + def __init__(self, key: _RSAobj, hashAlgo: Any, mgfunc: Any, label: Any) -> None: ... + def can_encrypt(self): ... + def can_decrypt(self): ... + def encrypt(self, message: Union[bytes, Text]) -> bytes: ... + def decrypt(self, ct: bytes) -> bytes: ... + + +def new(key: _RSAobj, hashAlgo: Optional[Any] = ..., mgfunc: Optional[Any] = ..., label: Any = ...) -> PKCS1OAEP_Cipher: ... diff --git a/third_party/2and3/Crypto/Cipher/PKCS1_v1_5.pyi b/third_party/2and3/Crypto/Cipher/PKCS1_v1_5.pyi new file mode 100644 index 000000000..5d1028297 --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/PKCS1_v1_5.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Cipher.PKCS1_v1_5 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text + +from Crypto.PublicKey.RSA import _RSAobj + +class PKCS115_Cipher: + def __init__(self, key: _RSAobj) -> None: ... + def can_encrypt(self) -> bool: ... + def can_decrypt(self) -> bool: ... + rf = ... # type: Any + def encrypt(self, message: Union[bytes, Text]) -> bytes: ... + def decrypt(self, ct: bytes, sentinel: Any) -> bytes: ... + +def new(key: _RSAobj) -> PKCS115_Cipher: ... diff --git a/third_party/2and3/Crypto/Cipher/XOR.pyi b/third_party/2and3/Crypto/Cipher/XOR.pyi new file mode 100644 index 000000000..c131867cf --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/XOR.pyi @@ -0,0 +1,20 @@ +# Stubs for Crypto.Cipher.XOR (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text + +__revision__ = ... # type: str + +class XORCipher: + block_size = ... # type: int + key_size = ... # type: int + def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... + def encrypt(self, plaintext: Union[bytes, Text]) -> bytes: ... + def decrypt(self, ciphertext: bytes) -> bytes: ... + + +def new(key: Union[bytes, Text], *args, **kwargs) -> XORCipher: ... + +block_size = ... # type: int +key_size = ... # type: int diff --git a/third_party/2/Crypto/Cipher/__init__.pyi b/third_party/2and3/Crypto/Cipher/__init__.pyi similarity index 85% rename from third_party/2/Crypto/Cipher/__init__.pyi rename to third_party/2and3/Crypto/Cipher/__init__.pyi index b6e2a04d7..3d42ce3dc 100644 --- a/third_party/2/Crypto/Cipher/__init__.pyi +++ b/third_party/2and3/Crypto/Cipher/__init__.pyi @@ -1,4 +1,4 @@ -# Stubs for Crypto.Cipher (Python 2) +# Stubs for Crypto.Cipher (Python 3.5) # # NOTE: This dynamically typed stub was automatically generated by stubgen. diff --git a/third_party/2and3/Crypto/Cipher/blockalgo.pyi b/third_party/2and3/Crypto/Cipher/blockalgo.pyi new file mode 100644 index 000000000..fa713774d --- /dev/null +++ b/third_party/2and3/Crypto/Cipher/blockalgo.pyi @@ -0,0 +1,21 @@ +# Stubs for Crypto.Cipher.blockalgo (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Union, Text + +MODE_ECB = ... # type: int +MODE_CBC = ... # type: int +MODE_CFB = ... # type: int +MODE_PGP = ... # type: int +MODE_OFB = ... # type: int +MODE_CTR = ... # type: int +MODE_OPENPGP = ... # type: int + +class BlockAlgo: + mode = ... # type: int + block_size = ... # type: int + IV = ... # type: Any + def __init__(self, factory: Any, key: Union[bytes, Text], *args, **kwargs) -> None: ... + def encrypt(self, plaintext: Union[bytes, Text]) -> bytes: ... + def decrypt(self, ciphertext: bytes) -> bytes: ... diff --git a/third_party/2and3/Crypto/Hash/HMAC.pyi b/third_party/2and3/Crypto/Hash/HMAC.pyi new file mode 100644 index 000000000..3a71ac4fb --- /dev/null +++ b/third_party/2and3/Crypto/Hash/HMAC.pyi @@ -0,0 +1,20 @@ +# Stubs for Crypto.Hash.HMAC (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +digest_size = ... # type: Any + +class HMAC: + digest_size = ... # type: Any + digestmod = ... # type: Any + outer = ... # type: Any + inner = ... # type: Any + def __init__(self, key, msg: Optional[Any] = ..., digestmod: Optional[Any] = ...) -> None: ... + def update(self, msg): ... + def copy(self): ... + def digest(self): ... + def hexdigest(self): ... + +def new(key, msg: Optional[Any] = ..., digestmod: Optional[Any] = ...): ... diff --git a/third_party/2and3/Crypto/Hash/MD2.pyi b/third_party/2and3/Crypto/Hash/MD2.pyi new file mode 100644 index 000000000..4449c71f6 --- /dev/null +++ b/third_party/2and3/Crypto/Hash/MD2.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Hash.MD2 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash.hashalgo import HashAlgo + +class MD2Hash(HashAlgo): + oid = ... # type: Any + digest_size = ... # type: int + block_size = ... # type: int + def __init__(self, data: Optional[Any] = ...) -> None: ... + def new(self, data: Optional[Any] = ...): ... + +def new(data: Optional[Any] = ...): ... + +digest_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Hash/MD4.pyi b/third_party/2and3/Crypto/Hash/MD4.pyi new file mode 100644 index 000000000..b2e7ee085 --- /dev/null +++ b/third_party/2and3/Crypto/Hash/MD4.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Hash.MD4 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash.hashalgo import HashAlgo + +class MD4Hash(HashAlgo): + oid = ... # type: Any + digest_size = ... # type: int + block_size = ... # type: int + def __init__(self, data: Optional[Any] = ...) -> None: ... + def new(self, data: Optional[Any] = ...): ... + +def new(data: Optional[Any] = ...): ... + +digest_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Hash/MD5.pyi b/third_party/2and3/Crypto/Hash/MD5.pyi new file mode 100644 index 000000000..15f7ce4fc --- /dev/null +++ b/third_party/2and3/Crypto/Hash/MD5.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Hash.MD5 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash.hashalgo import HashAlgo + +class MD5Hash(HashAlgo): + oid = ... # type: Any + digest_size = ... # type: int + block_size = ... # type: int + def __init__(self, data: Optional[Any] = ...) -> None: ... + def new(self, data: Optional[Any] = ...): ... + +def new(data: Optional[Any] = ...): ... + +digest_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Hash/RIPEMD.pyi b/third_party/2and3/Crypto/Hash/RIPEMD.pyi new file mode 100644 index 000000000..ba965de25 --- /dev/null +++ b/third_party/2and3/Crypto/Hash/RIPEMD.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Hash.RIPEMD (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash.hashalgo import HashAlgo + +class RIPEMD160Hash(HashAlgo): + oid = ... # type: Any + digest_size = ... # type: int + block_size = ... # type: int + def __init__(self, data: Optional[Any] = ...) -> None: ... + def new(self, data: Optional[Any] = ...): ... + +def new(data: Optional[Any] = ...): ... + +digest_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Hash/SHA.pyi b/third_party/2and3/Crypto/Hash/SHA.pyi new file mode 100644 index 000000000..16965f7e4 --- /dev/null +++ b/third_party/2and3/Crypto/Hash/SHA.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Hash.SHA (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash.hashalgo import HashAlgo + +class SHA1Hash(HashAlgo): + oid = ... # type: Any + digest_size = ... # type: int + block_size = ... # type: int + def __init__(self, data: Optional[Any] = ...) -> None: ... + def new(self, data: Optional[Any] = ...): ... + +def new(data: Optional[Any] = ...): ... + +digest_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Hash/SHA224.pyi b/third_party/2and3/Crypto/Hash/SHA224.pyi new file mode 100644 index 000000000..e9b68d2dc --- /dev/null +++ b/third_party/2and3/Crypto/Hash/SHA224.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Hash.SHA224 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash.hashalgo import HashAlgo + +class SHA224Hash(HashAlgo): + oid = ... # type: Any + digest_size = ... # type: int + block_size = ... # type: int + def __init__(self, data: Optional[Any] = ...) -> None: ... + def new(self, data: Optional[Any] = ...): ... + +def new(data: Optional[Any] = ...): ... + +digest_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Hash/SHA256.pyi b/third_party/2and3/Crypto/Hash/SHA256.pyi new file mode 100644 index 000000000..ca21b6f6c --- /dev/null +++ b/third_party/2and3/Crypto/Hash/SHA256.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Hash.SHA256 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash.hashalgo import HashAlgo + +class SHA256Hash(HashAlgo): + oid = ... # type: Any + digest_size = ... # type: int + block_size = ... # type: int + def __init__(self, data: Optional[Any] = ...) -> None: ... + def new(self, data: Optional[Any] = ...): ... + +def new(data: Optional[Any] = ...): ... + +digest_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Hash/SHA384.pyi b/third_party/2and3/Crypto/Hash/SHA384.pyi new file mode 100644 index 000000000..c318eed3d --- /dev/null +++ b/third_party/2and3/Crypto/Hash/SHA384.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Hash.SHA384 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash.hashalgo import HashAlgo + +class SHA384Hash(HashAlgo): + oid = ... # type: Any + digest_size = ... # type: int + block_size = ... # type: int + def __init__(self, data: Optional[Any] = ...) -> None: ... + def new(self, data: Optional[Any] = ...): ... + +def new(data: Optional[Any] = ...): ... + +digest_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Hash/SHA512.pyi b/third_party/2and3/Crypto/Hash/SHA512.pyi new file mode 100644 index 000000000..623951198 --- /dev/null +++ b/third_party/2and3/Crypto/Hash/SHA512.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Hash.SHA512 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash.hashalgo import HashAlgo + +class SHA512Hash(HashAlgo): + oid = ... # type: Any + digest_size = ... # type: int + block_size = ... # type: int + def __init__(self, data: Optional[Any] = ...) -> None: ... + def new(self, data: Optional[Any] = ...): ... + +def new(data: Optional[Any] = ...): ... + +digest_size = ... # type: Any diff --git a/third_party/2and3/Crypto/Hash/__init__.pyi b/third_party/2and3/Crypto/Hash/__init__.pyi new file mode 100644 index 000000000..63859117b --- /dev/null +++ b/third_party/2and3/Crypto/Hash/__init__.pyi @@ -0,0 +1,15 @@ +# Stubs for Crypto.Hash (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +# Names in __all__ with no definition: +# HMAC +# MD2 +# MD4 +# MD5 +# RIPEMD +# SHA +# SHA224 +# SHA256 +# SHA384 +# SHA512 diff --git a/third_party/2and3/Crypto/Hash/hashalgo.pyi b/third_party/2and3/Crypto/Hash/hashalgo.pyi new file mode 100644 index 000000000..e76245373 --- /dev/null +++ b/third_party/2and3/Crypto/Hash/hashalgo.pyi @@ -0,0 +1,15 @@ +# Stubs for Crypto.Hash.hashalgo (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class HashAlgo: + digest_size = ... # type: Any + block_size = ... # type: Any + def __init__(self, hashFactory, data: Optional[Any] = ...) -> None: ... + def update(self, data): ... + def digest(self): ... + def hexdigest(self): ... + def copy(self): ... + def new(self, data: Optional[Any] = ...): ... diff --git a/third_party/2and3/Crypto/Protocol/AllOrNothing.pyi b/third_party/2and3/Crypto/Protocol/AllOrNothing.pyi new file mode 100644 index 000000000..300e1bfbd --- /dev/null +++ b/third_party/2and3/Crypto/Protocol/AllOrNothing.pyi @@ -0,0 +1,14 @@ +# Stubs for Crypto.Protocol.AllOrNothing (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +__revision__ = ... # type: str + +def isInt(x): ... + +class AllOrNothing: + def __init__(self, ciphermodule, mode: Optional[Any] = ..., IV: Optional[Any] = ...) -> None: ... + def digest(self, text): ... + def undigest(self, blocks): ... diff --git a/third_party/2and3/Crypto/Protocol/Chaffing.pyi b/third_party/2and3/Crypto/Protocol/Chaffing.pyi new file mode 100644 index 000000000..73c1d56ee --- /dev/null +++ b/third_party/2and3/Crypto/Protocol/Chaffing.pyi @@ -0,0 +1,9 @@ +# Stubs for Crypto.Protocol.Chaffing (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +__revision__ = ... # type: str + +class Chaff: + def __init__(self, factor: float = ..., blocksper: int = ...) -> None: ... + def chaff(self, blocks): ... diff --git a/third_party/2and3/Crypto/Protocol/KDF.pyi b/third_party/2and3/Crypto/Protocol/KDF.pyi new file mode 100644 index 000000000..a14b351c4 --- /dev/null +++ b/third_party/2and3/Crypto/Protocol/KDF.pyi @@ -0,0 +1,11 @@ +# Stubs for Crypto.Protocol.KDF (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.Hash import SHA as SHA1 + +__revision__ = ... # type: str + +def PBKDF1(password, salt, dkLen, count: int = ..., hashAlgo: Optional[Any] = ...): ... +def PBKDF2(password, salt, dkLen: int = ..., count: int = ..., prf: Optional[Any] = ...): ... diff --git a/third_party/2and3/Crypto/Protocol/__init__.pyi b/third_party/2and3/Crypto/Protocol/__init__.pyi new file mode 100644 index 000000000..afcab98f1 --- /dev/null +++ b/third_party/2and3/Crypto/Protocol/__init__.pyi @@ -0,0 +1,8 @@ +# Stubs for Crypto.Protocol (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +# Names in __all__ with no definition: +# AllOrNothing +# Chaffing +# KDF diff --git a/third_party/2and3/Crypto/PublicKey/DSA.pyi b/third_party/2and3/Crypto/PublicKey/DSA.pyi new file mode 100644 index 000000000..30b7b1ca1 --- /dev/null +++ b/third_party/2and3/Crypto/PublicKey/DSA.pyi @@ -0,0 +1,31 @@ +# Stubs for Crypto.PublicKey.DSA (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from .pubkey import pubkey + +class _DSAobj(pubkey): + keydata = ... # type: Any + implementation = ... # type: Any + key = ... # type: Any + def __init__(self, implementation, key) -> None: ... + def __getattr__(self, attrname): ... + def sign(self, M, K): ... + def verify(self, M, signature): ... + def has_private(self): ... + def size(self): ... + def can_blind(self): ... + def can_encrypt(self): ... + def can_sign(self): ... + def publickey(self): ... + +class DSAImplementation: + error = ... # type: Any + def __init__(self, **kwargs) -> None: ... + def generate(self, bits, randfunc: Optional[Any] = ..., progress_func: Optional[Any] = ...): ... + def construct(self, tup): ... + +generate = ... # type: Any +construct = ... # type: Any +error = ... # type: Any diff --git a/third_party/2and3/Crypto/PublicKey/ElGamal.pyi b/third_party/2and3/Crypto/PublicKey/ElGamal.pyi new file mode 100644 index 000000000..1695ba1cb --- /dev/null +++ b/third_party/2and3/Crypto/PublicKey/ElGamal.pyi @@ -0,0 +1,21 @@ +# Stubs for Crypto.PublicKey.ElGamal (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from Crypto.PublicKey.pubkey import * + +class error(Exception): ... + +def generate(bits, randfunc, progress_func: Optional[Any] = ...): ... +def construct(tup): ... + +class ElGamalobj(pubkey): + keydata = ... # type: Any + def encrypt(self, plaintext, K): ... + def decrypt(self, ciphertext): ... + def sign(self, M, K): ... + def verify(self, M, signature): ... + def size(self): ... + def has_private(self): ... + def publickey(self): ... diff --git a/third_party/2and3/Crypto/PublicKey/RSA.pyi b/third_party/2and3/Crypto/PublicKey/RSA.pyi new file mode 100644 index 000000000..1fbd6ff22 --- /dev/null +++ b/third_party/2and3/Crypto/PublicKey/RSA.pyi @@ -0,0 +1,36 @@ +# Stubs for Crypto.PublicKey.RSA (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional, Union, Text +from .pubkey import pubkey + +class _RSAobj(pubkey): + keydata = ... # type: Any + implementation = ... # type: Any + key = ... # type: Any + def __init__(self, implementation, key, randfunc: Optional[Any] = ...) -> None: ... + def __getattr__(self, attrname): ... + def encrypt(self, plaintext, K): ... + def decrypt(self, ciphertext): ... + def sign(self, M, K): ... + def verify(self, M, signature): ... + def has_private(self): ... + def size(self): ... + def can_blind(self): ... + def can_encrypt(self): ... + def can_sign(self): ... + def publickey(self): ... + def exportKey(self, format: str = ..., passphrase: Optional[Any] = ..., pkcs: int = ...): ... + +class RSAImplementation: + error = ... # type: Any + def __init__(self, **kwargs) -> None: ... + def generate(self, bits, randfunc: Optional[Any] = ..., progress_func: Optional[Any] = ..., e: int = ...): ... + def construct(self, tup): ... + def importKey(self, externKey: Any, passphrase: Union[None, bytes, Text] = ...) -> _RSAobj: ... + +generate = ... # type: Any +construct = ... # type: Any +importKey = ... # type: Any +error = ... # type: Any diff --git a/third_party/2and3/Crypto/PublicKey/__init__.pyi b/third_party/2and3/Crypto/PublicKey/__init__.pyi new file mode 100644 index 000000000..84bc3bc5f --- /dev/null +++ b/third_party/2and3/Crypto/PublicKey/__init__.pyi @@ -0,0 +1,8 @@ +# Stubs for Crypto.PublicKey (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +# Names in __all__ with no definition: +# DSA +# ElGamal +# RSA diff --git a/third_party/2and3/Crypto/PublicKey/pubkey.pyi b/third_party/2and3/Crypto/PublicKey/pubkey.pyi new file mode 100644 index 000000000..7415b32c5 --- /dev/null +++ b/third_party/2and3/Crypto/PublicKey/pubkey.pyi @@ -0,0 +1,25 @@ +# Stubs for Crypto.PublicKey.pubkey (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from Crypto.Util.number import * + +__revision__ = ... # type: str + +class pubkey: + def __init__(self) -> None: ... + def encrypt(self, plaintext, K): ... + def decrypt(self, ciphertext): ... + def sign(self, M, K): ... + def verify(self, M, signature): ... + def validate(self, M, signature): ... + def blind(self, M, B): ... + def unblind(self, M, B): ... + def can_sign(self): ... + def can_encrypt(self): ... + def can_blind(self): ... + def size(self): ... + def has_private(self): ... + def publickey(self): ... + def __eq__(self, other): ... + def __ne__(self, other): ... diff --git a/third_party/2and3/Crypto/Random/Fortuna/FortunaAccumulator.pyi b/third_party/2and3/Crypto/Random/Fortuna/FortunaAccumulator.pyi new file mode 100644 index 000000000..e8430709c --- /dev/null +++ b/third_party/2and3/Crypto/Random/Fortuna/FortunaAccumulator.pyi @@ -0,0 +1,29 @@ +# Stubs for Crypto.Random.Fortuna.FortunaAccumulator (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +__revision__ = ... # type: str + +class FortunaPool: + digest_size = ... # type: Any + def __init__(self) -> None: ... + def append(self, data): ... + def digest(self): ... + def hexdigest(self): ... + length = ... # type: int + def reset(self): ... + +def which_pools(r): ... + +class FortunaAccumulator: + min_pool_size = ... # type: int + reseed_interval = ... # type: float + reseed_count = ... # type: int + generator = ... # type: Any + last_reseed = ... # type: Any + pools = ... # type: Any + def __init__(self) -> None: ... + def random_data(self, bytes): ... + def add_random_event(self, source_number, pool_number, data): ... diff --git a/third_party/2and3/Crypto/Random/Fortuna/FortunaGenerator.pyi b/third_party/2and3/Crypto/Random/Fortuna/FortunaGenerator.pyi new file mode 100644 index 000000000..89d13abd7 --- /dev/null +++ b/third_party/2and3/Crypto/Random/Fortuna/FortunaGenerator.pyi @@ -0,0 +1,20 @@ +# Stubs for Crypto.Random.Fortuna.FortunaGenerator (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +__revision__ = ... # type: str + +class AESGenerator: + block_size = ... # type: Any + key_size = ... # type: int + max_blocks_per_request = ... # type: Any + counter = ... # type: Any + key = ... # type: Any + block_size_shift = ... # type: Any + blocks_per_key = ... # type: Any + max_bytes_per_request = ... # type: Any + def __init__(self) -> None: ... + def reseed(self, seed): ... + def pseudo_random_data(self, bytes): ... diff --git a/third_party/2and3/Crypto/Random/Fortuna/SHAd256.pyi b/third_party/2and3/Crypto/Random/Fortuna/SHAd256.pyi new file mode 100644 index 000000000..5a83fd9d5 --- /dev/null +++ b/third_party/2and3/Crypto/Random/Fortuna/SHAd256.pyi @@ -0,0 +1,17 @@ +# Stubs for Crypto.Random.Fortuna.SHAd256 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class _SHAd256: + digest_size = ... # type: Any + def __init__(self, internal_api_check, sha256_hash_obj) -> None: ... + def copy(self): ... + def digest(self): ... + def hexdigest(self): ... + def update(self, data): ... + +digest_size = ... # type: Any + +def new(data: Optional[Any] = ...): ... diff --git a/third_party/2/Crypto/Random/__init__.pyi b/third_party/2and3/Crypto/Random/Fortuna/__init__.pyi similarity index 50% rename from third_party/2/Crypto/Random/__init__.pyi rename to third_party/2and3/Crypto/Random/Fortuna/__init__.pyi index c13ab8232..797c245b4 100644 --- a/third_party/2/Crypto/Random/__init__.pyi +++ b/third_party/2and3/Crypto/Random/Fortuna/__init__.pyi @@ -1,5 +1,4 @@ -# Stubs for Crypto.Random (Python 2) +# Stubs for Crypto.Random.Fortuna (Python 3.5) # # NOTE: This dynamically typed stub was automatically generated by stubgen. -def get_random_bytes(n: int) -> str: ... diff --git a/third_party/2and3/Crypto/Random/OSRNG/__init__.pyi b/third_party/2and3/Crypto/Random/OSRNG/__init__.pyi new file mode 100644 index 000000000..e73ed2e1c --- /dev/null +++ b/third_party/2and3/Crypto/Random/OSRNG/__init__.pyi @@ -0,0 +1,5 @@ +# Stubs for Crypto.Random.OSRNG (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +__revision__ = ... # type: str diff --git a/third_party/2and3/Crypto/Random/OSRNG/fallback.pyi b/third_party/2and3/Crypto/Random/OSRNG/fallback.pyi new file mode 100644 index 000000000..fafc38852 --- /dev/null +++ b/third_party/2and3/Crypto/Random/OSRNG/fallback.pyi @@ -0,0 +1,9 @@ +# Stubs for Crypto.Random.OSRNG.fallback (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from .rng_base import BaseRNG + +class PythonOSURandomRNG(BaseRNG): + name = ... # type: str + def __init__(self) -> None: ... diff --git a/third_party/2and3/Crypto/Random/OSRNG/posix.pyi b/third_party/2and3/Crypto/Random/OSRNG/posix.pyi new file mode 100644 index 000000000..c7d4613a6 --- /dev/null +++ b/third_party/2and3/Crypto/Random/OSRNG/posix.pyi @@ -0,0 +1,10 @@ +# Stubs for Crypto.Random.OSRNG.posix (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from .rng_base import BaseRNG + +class DevURandomRNG(BaseRNG): + name = ... # type: str + def __init__(self, devname: Optional[Any] = ...) -> None: ... diff --git a/third_party/2and3/Crypto/Random/OSRNG/rng_base.pyi b/third_party/2and3/Crypto/Random/OSRNG/rng_base.pyi new file mode 100644 index 000000000..4fa634a92 --- /dev/null +++ b/third_party/2and3/Crypto/Random/OSRNG/rng_base.pyi @@ -0,0 +1,15 @@ +# Stubs for Crypto.Random.OSRNG.rng_base (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +__revision__ = ... # type: str + +class BaseRNG: + closed = ... # type: bool + def __init__(self) -> None: ... + def __del__(self): ... + def __enter__(self): ... + def __exit__(self): ... + def close(self): ... + def flush(self): ... + def read(self, N: int = ...): ... diff --git a/third_party/2and3/Crypto/Random/__init__.pyi b/third_party/2and3/Crypto/Random/__init__.pyi new file mode 100644 index 000000000..d9872cb3b --- /dev/null +++ b/third_party/2and3/Crypto/Random/__init__.pyi @@ -0,0 +1,5 @@ +# Stubs for Crypto.Random (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +def new(*args, **kwargs): ... diff --git a/third_party/2and3/Crypto/Random/random.pyi b/third_party/2and3/Crypto/Random/random.pyi new file mode 100644 index 000000000..12a2e6fbb --- /dev/null +++ b/third_party/2and3/Crypto/Random/random.pyi @@ -0,0 +1,21 @@ +# Stubs for Crypto.Random.random (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class StrongRandom: + def __init__(self, rng: Optional[Any] = ..., randfunc: Optional[Any] = ...) -> None: ... + def getrandbits(self, k): ... + def randrange(self, *args): ... + def randint(self, a, b): ... + def choice(self, seq): ... + def shuffle(self, x): ... + def sample(self, population, k): ... + +getrandbits = ... # type: Any +randrange = ... # type: Any +randint = ... # type: Any +choice = ... # type: Any +shuffle = ... # type: Any +sample = ... # type: Any diff --git a/third_party/2and3/Crypto/Signature/PKCS1_PSS.pyi b/third_party/2and3/Crypto/Signature/PKCS1_PSS.pyi new file mode 100644 index 000000000..12edf2645 --- /dev/null +++ b/third_party/2and3/Crypto/Signature/PKCS1_PSS.pyi @@ -0,0 +1,13 @@ +# Stubs for Crypto.Signature.PKCS1_PSS (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class PSS_SigScheme: + def __init__(self, key, mgfunc, saltLen) -> None: ... + def can_sign(self): ... + def sign(self, mhash): ... + def verify(self, mhash, S): ... + +def new(key, mgfunc: Optional[Any] = ..., saltLen: Optional[Any] = ...): ... diff --git a/third_party/2and3/Crypto/Signature/PKCS1_v1_5.pyi b/third_party/2and3/Crypto/Signature/PKCS1_v1_5.pyi new file mode 100644 index 000000000..d48d3a345 --- /dev/null +++ b/third_party/2and3/Crypto/Signature/PKCS1_v1_5.pyi @@ -0,0 +1,12 @@ +# Stubs for Crypto.Signature.PKCS1_v1_5 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + + +class PKCS115_SigScheme: + def __init__(self, key) -> None: ... + def can_sign(self): ... + def sign(self, mhash): ... + def verify(self, mhash, S): ... + +def new(key): ... diff --git a/third_party/2and3/Crypto/Signature/__init__.pyi b/third_party/2and3/Crypto/Signature/__init__.pyi new file mode 100644 index 000000000..710372a43 --- /dev/null +++ b/third_party/2and3/Crypto/Signature/__init__.pyi @@ -0,0 +1,7 @@ +# Stubs for Crypto.Signature (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +# Names in __all__ with no definition: +# PKCS1_PSS +# PKCS1_v1_5 diff --git a/third_party/2and3/Crypto/Util/Counter.pyi b/third_party/2and3/Crypto/Util/Counter.pyi new file mode 100644 index 000000000..620c1be5a --- /dev/null +++ b/third_party/2and3/Crypto/Util/Counter.pyi @@ -0,0 +1,7 @@ +# Stubs for Crypto.Util.Counter (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def new(nbits, prefix: Any = ..., suffix: Any = ..., initial_value: int = ..., overflow: int = ..., little_endian: bool = ..., allow_wraparound: bool = ..., disable_shortcut: bool = ...): ... diff --git a/third_party/2and3/Crypto/Util/RFC1751.pyi b/third_party/2and3/Crypto/Util/RFC1751.pyi new file mode 100644 index 000000000..abd7444e5 --- /dev/null +++ b/third_party/2and3/Crypto/Util/RFC1751.pyi @@ -0,0 +1,13 @@ +# Stubs for Crypto.Util.RFC1751 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +__revision__ = ... # type: str +binary = ... # type: Any + +def key_to_english(key): ... +def english_to_key(s): ... + +wordlist = ... # type: Any diff --git a/third_party/2and3/Crypto/Util/__init__.pyi b/third_party/2and3/Crypto/Util/__init__.pyi new file mode 100644 index 000000000..26f6576ca --- /dev/null +++ b/third_party/2and3/Crypto/Util/__init__.pyi @@ -0,0 +1,10 @@ +# Stubs for Crypto.Util (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +# Names in __all__ with no definition: +# RFC1751 +# asn1 +# number +# randpool +# strxor diff --git a/third_party/2and3/Crypto/Util/asn1.pyi b/third_party/2and3/Crypto/Util/asn1.pyi new file mode 100644 index 000000000..b9227af16 --- /dev/null +++ b/third_party/2and3/Crypto/Util/asn1.pyi @@ -0,0 +1,49 @@ +# Stubs for Crypto.Util.asn1 (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class DerObject: + typeTags = ... # type: Any + typeTag = ... # type: Any + payload = ... # type: Any + def __init__(self, ASN1Type: Optional[Any] = ..., payload: Any = ...) -> None: ... + def isType(self, ASN1Type): ... + def encode(self): ... + def decode(self, derEle, noLeftOvers: int = ...): ... + +class DerInteger(DerObject): + value = ... # type: Any + def __init__(self, value: int = ...) -> None: ... + payload = ... # type: Any + def encode(self): ... + def decode(self, derEle, noLeftOvers: int = ...): ... + +class DerSequence(DerObject): + def __init__(self, startSeq: Optional[Any] = ...) -> None: ... + def __delitem__(self, n): ... + def __getitem__(self, n): ... + def __setitem__(self, key, value): ... + def __setslice__(self, i, j, sequence): ... + def __delslice__(self, i, j): ... + def __getslice__(self, i, j): ... + def __len__(self): ... + def append(self, item): ... + def hasInts(self): ... + def hasOnlyInts(self): ... + payload = ... # type: Any + def encode(self): ... + def decode(self, derEle, noLeftOvers: int = ...): ... + +class DerOctetString(DerObject): + payload = ... # type: Any + def __init__(self, value: Any = ...) -> None: ... + def decode(self, derEle, noLeftOvers: int = ...): ... + +class DerNull(DerObject): + def __init__(self) -> None: ... + +class DerObjectId(DerObject): + def __init__(self) -> None: ... + def decode(self, derEle, noLeftOvers: int = ...): ... diff --git a/third_party/2and3/Crypto/Util/number.pyi b/third_party/2and3/Crypto/Util/number.pyi new file mode 100644 index 000000000..265f14265 --- /dev/null +++ b/third_party/2and3/Crypto/Util/number.pyi @@ -0,0 +1,26 @@ +# Stubs for Crypto.Util.number (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional +from warnings import warn as _warn + +__revision__ = ... # type: str +bignum = ... # type: Any + +def size(N): ... +def getRandomNumber(N, randfunc: Optional[Any] = ...): ... +def getRandomInteger(N, randfunc: Optional[Any] = ...): ... +def getRandomRange(a, b, randfunc: Optional[Any] = ...): ... +def getRandomNBitInteger(N, randfunc: Optional[Any] = ...): ... +def GCD(x, y): ... +def inverse(u, v): ... +def getPrime(N, randfunc: Optional[Any] = ...): ... +def getStrongPrime(N, e: int = ..., false_positive_prob: float = ..., randfunc: Optional[Any] = ...): ... +def isPrime(N, false_positive_prob: float = ..., randfunc: Optional[Any] = ...): ... +def long_to_bytes(n, blocksize: int = ...): ... +def bytes_to_long(s): ... +def long2str(n, blocksize: int = ...): ... +def str2long(s): ... + +sieve_base = ... # type: Any diff --git a/third_party/2and3/Crypto/Util/randpool.pyi b/third_party/2and3/Crypto/Util/randpool.pyi new file mode 100644 index 000000000..4a5f2ac63 --- /dev/null +++ b/third_party/2and3/Crypto/Util/randpool.pyi @@ -0,0 +1,20 @@ +# Stubs for Crypto.Util.randpool (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +__revision__ = ... # type: str + +class RandomPool: + bytes = ... # type: Any + bits = ... # type: Any + entropy = ... # type: Any + def __init__(self, numbytes: int = ..., cipher: Optional[Any] = ..., hash: Optional[Any] = ..., file: Optional[Any] = ...) -> None: ... + def get_bytes(self, N): ... + def randomize(self, N: int = ...): ... + def stir(self, s: str = ...): ... + def stir_n(self, N: int = ...): ... + def add_event(self, s: str = ...): ... + def getBytes(self, N): ... + def addEvent(self, event, s: str = ...): ... diff --git a/third_party/2and3/Crypto/Util/strxor.pyi b/third_party/2and3/Crypto/Util/strxor.pyi new file mode 100644 index 000000000..8ba57b53c --- /dev/null +++ b/third_party/2and3/Crypto/Util/strxor.pyi @@ -0,0 +1,6 @@ +# Stubs for Crypto.Util.strxor (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +def strxor(*args, **kwargs): ... +def strxor_c(*args, **kwargs): ... diff --git a/third_party/2and3/Crypto/__init__.pyi b/third_party/2and3/Crypto/__init__.pyi new file mode 100644 index 000000000..7b99b0414 --- /dev/null +++ b/third_party/2and3/Crypto/__init__.pyi @@ -0,0 +1,11 @@ +# Stubs for Crypto (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +# Names in __all__ with no definition: +# Cipher +# Hash +# Protocol +# PublicKey +# Signature +# Util diff --git a/third_party/2and3/Crypto/pct_warnings.pyi b/third_party/2and3/Crypto/pct_warnings.pyi new file mode 100644 index 000000000..6fb4fc855 --- /dev/null +++ b/third_party/2and3/Crypto/pct_warnings.pyi @@ -0,0 +1,11 @@ +# Stubs for Crypto.pct_warnings (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +class CryptoWarning(Warning): ... +class CryptoDeprecationWarning(DeprecationWarning, CryptoWarning): ... +class CryptoRuntimeWarning(RuntimeWarning, CryptoWarning): ... +class RandomPool_DeprecationWarning(CryptoDeprecationWarning): ... +class ClockRewindWarning(CryptoRuntimeWarning): ... +class GetRandomNumber_DeprecationWarning(CryptoDeprecationWarning): ... +class PowmInsecureWarning(CryptoRuntimeWarning): ...