mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Move Crypto to 2and3 and generate rest of stubs. (#782)
I implemented strong types for Crypto.Cipher
This commit is contained in:
committed by
Łukasz Langa
parent
7e89fc0d49
commit
89da3a4159
9
out/Crypto/Util/Counter.pyi
Normal file
9
out/Crypto/Util/Counter.pyi
Normal file
@@ -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 = ...): ...
|
||||
10
out/Crypto/Util/__init__.pyi
Normal file
10
out/Crypto/Util/__init__.pyi
Normal file
@@ -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
|
||||
11
out/Crypto/Util/py3compat.pyi
Normal file
11
out/Crypto/Util/py3compat.pyi
Normal file
@@ -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): ...
|
||||
0
third_party/2/Crypto/Cipher/AES.pyi
vendored
0
third_party/2/Crypto/Cipher/AES.pyi
vendored
3
third_party/2/Crypto/Random/random.pyi
vendored
3
third_party/2/Crypto/Random/random.pyi
vendored
@@ -1,3 +0,0 @@
|
||||
# very stubby version of Crypto.Random
|
||||
|
||||
def randint(min: int, max: int) -> int: ...
|
||||
0
third_party/2/Crypto/__init__.pyi
vendored
0
third_party/2/Crypto/__init__.pyi
vendored
23
third_party/2and3/Crypto/Cipher/AES.pyi
vendored
Normal file
23
third_party/2and3/Crypto/Cipher/AES.pyi
vendored
Normal file
@@ -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
|
||||
23
third_party/2and3/Crypto/Cipher/ARC2.pyi
vendored
Normal file
23
third_party/2and3/Crypto/Cipher/ARC2.pyi
vendored
Normal file
@@ -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
|
||||
19
third_party/2and3/Crypto/Cipher/ARC4.pyi
vendored
Normal file
19
third_party/2and3/Crypto/Cipher/ARC4.pyi
vendored
Normal file
@@ -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
|
||||
23
third_party/2and3/Crypto/Cipher/Blowfish.pyi
vendored
Normal file
23
third_party/2and3/Crypto/Cipher/Blowfish.pyi
vendored
Normal file
@@ -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
|
||||
23
third_party/2and3/Crypto/Cipher/CAST.pyi
vendored
Normal file
23
third_party/2and3/Crypto/Cipher/CAST.pyi
vendored
Normal file
@@ -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
|
||||
23
third_party/2and3/Crypto/Cipher/DES.pyi
vendored
Normal file
23
third_party/2and3/Crypto/Cipher/DES.pyi
vendored
Normal file
@@ -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
|
||||
24
third_party/2and3/Crypto/Cipher/DES3.pyi
vendored
Normal file
24
third_party/2and3/Crypto/Cipher/DES3.pyi
vendored
Normal file
@@ -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
|
||||
17
third_party/2and3/Crypto/Cipher/PKCS1_OAEP.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Cipher/PKCS1_OAEP.pyi
vendored
Normal file
@@ -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: ...
|
||||
17
third_party/2and3/Crypto/Cipher/PKCS1_v1_5.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Cipher/PKCS1_v1_5.pyi
vendored
Normal file
@@ -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: ...
|
||||
20
third_party/2and3/Crypto/Cipher/XOR.pyi
vendored
Normal file
20
third_party/2and3/Crypto/Cipher/XOR.pyi
vendored
Normal file
@@ -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
|
||||
@@ -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.
|
||||
|
||||
21
third_party/2and3/Crypto/Cipher/blockalgo.pyi
vendored
Normal file
21
third_party/2and3/Crypto/Cipher/blockalgo.pyi
vendored
Normal file
@@ -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: ...
|
||||
20
third_party/2and3/Crypto/Hash/HMAC.pyi
vendored
Normal file
20
third_party/2and3/Crypto/Hash/HMAC.pyi
vendored
Normal file
@@ -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] = ...): ...
|
||||
17
third_party/2and3/Crypto/Hash/MD2.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Hash/MD2.pyi
vendored
Normal file
@@ -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
|
||||
17
third_party/2and3/Crypto/Hash/MD4.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Hash/MD4.pyi
vendored
Normal file
@@ -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
|
||||
17
third_party/2and3/Crypto/Hash/MD5.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Hash/MD5.pyi
vendored
Normal file
@@ -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
|
||||
17
third_party/2and3/Crypto/Hash/RIPEMD.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Hash/RIPEMD.pyi
vendored
Normal file
@@ -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
|
||||
17
third_party/2and3/Crypto/Hash/SHA.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Hash/SHA.pyi
vendored
Normal file
@@ -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
|
||||
17
third_party/2and3/Crypto/Hash/SHA224.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Hash/SHA224.pyi
vendored
Normal file
@@ -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
|
||||
17
third_party/2and3/Crypto/Hash/SHA256.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Hash/SHA256.pyi
vendored
Normal file
@@ -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
|
||||
17
third_party/2and3/Crypto/Hash/SHA384.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Hash/SHA384.pyi
vendored
Normal file
@@ -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
|
||||
17
third_party/2and3/Crypto/Hash/SHA512.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Hash/SHA512.pyi
vendored
Normal file
@@ -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
|
||||
15
third_party/2and3/Crypto/Hash/__init__.pyi
vendored
Normal file
15
third_party/2and3/Crypto/Hash/__init__.pyi
vendored
Normal file
@@ -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
|
||||
15
third_party/2and3/Crypto/Hash/hashalgo.pyi
vendored
Normal file
15
third_party/2and3/Crypto/Hash/hashalgo.pyi
vendored
Normal file
@@ -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] = ...): ...
|
||||
14
third_party/2and3/Crypto/Protocol/AllOrNothing.pyi
vendored
Normal file
14
third_party/2and3/Crypto/Protocol/AllOrNothing.pyi
vendored
Normal file
@@ -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): ...
|
||||
9
third_party/2and3/Crypto/Protocol/Chaffing.pyi
vendored
Normal file
9
third_party/2and3/Crypto/Protocol/Chaffing.pyi
vendored
Normal file
@@ -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): ...
|
||||
11
third_party/2and3/Crypto/Protocol/KDF.pyi
vendored
Normal file
11
third_party/2and3/Crypto/Protocol/KDF.pyi
vendored
Normal file
@@ -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] = ...): ...
|
||||
8
third_party/2and3/Crypto/Protocol/__init__.pyi
vendored
Normal file
8
third_party/2and3/Crypto/Protocol/__init__.pyi
vendored
Normal file
@@ -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
|
||||
31
third_party/2and3/Crypto/PublicKey/DSA.pyi
vendored
Normal file
31
third_party/2and3/Crypto/PublicKey/DSA.pyi
vendored
Normal file
@@ -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
|
||||
21
third_party/2and3/Crypto/PublicKey/ElGamal.pyi
vendored
Normal file
21
third_party/2and3/Crypto/PublicKey/ElGamal.pyi
vendored
Normal file
@@ -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): ...
|
||||
36
third_party/2and3/Crypto/PublicKey/RSA.pyi
vendored
Normal file
36
third_party/2and3/Crypto/PublicKey/RSA.pyi
vendored
Normal file
@@ -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
|
||||
8
third_party/2and3/Crypto/PublicKey/__init__.pyi
vendored
Normal file
8
third_party/2and3/Crypto/PublicKey/__init__.pyi
vendored
Normal file
@@ -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
|
||||
25
third_party/2and3/Crypto/PublicKey/pubkey.pyi
vendored
Normal file
25
third_party/2and3/Crypto/PublicKey/pubkey.pyi
vendored
Normal file
@@ -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): ...
|
||||
29
third_party/2and3/Crypto/Random/Fortuna/FortunaAccumulator.pyi
vendored
Normal file
29
third_party/2and3/Crypto/Random/Fortuna/FortunaAccumulator.pyi
vendored
Normal file
@@ -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): ...
|
||||
20
third_party/2and3/Crypto/Random/Fortuna/FortunaGenerator.pyi
vendored
Normal file
20
third_party/2and3/Crypto/Random/Fortuna/FortunaGenerator.pyi
vendored
Normal file
@@ -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): ...
|
||||
17
third_party/2and3/Crypto/Random/Fortuna/SHAd256.pyi
vendored
Normal file
17
third_party/2and3/Crypto/Random/Fortuna/SHAd256.pyi
vendored
Normal file
@@ -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] = ...): ...
|
||||
@@ -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: ...
|
||||
5
third_party/2and3/Crypto/Random/OSRNG/__init__.pyi
vendored
Normal file
5
third_party/2and3/Crypto/Random/OSRNG/__init__.pyi
vendored
Normal file
@@ -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
|
||||
9
third_party/2and3/Crypto/Random/OSRNG/fallback.pyi
vendored
Normal file
9
third_party/2and3/Crypto/Random/OSRNG/fallback.pyi
vendored
Normal file
@@ -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: ...
|
||||
10
third_party/2and3/Crypto/Random/OSRNG/posix.pyi
vendored
Normal file
10
third_party/2and3/Crypto/Random/OSRNG/posix.pyi
vendored
Normal file
@@ -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: ...
|
||||
15
third_party/2and3/Crypto/Random/OSRNG/rng_base.pyi
vendored
Normal file
15
third_party/2and3/Crypto/Random/OSRNG/rng_base.pyi
vendored
Normal file
@@ -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 = ...): ...
|
||||
5
third_party/2and3/Crypto/Random/__init__.pyi
vendored
Normal file
5
third_party/2and3/Crypto/Random/__init__.pyi
vendored
Normal file
@@ -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): ...
|
||||
21
third_party/2and3/Crypto/Random/random.pyi
vendored
Normal file
21
third_party/2and3/Crypto/Random/random.pyi
vendored
Normal file
@@ -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
|
||||
13
third_party/2and3/Crypto/Signature/PKCS1_PSS.pyi
vendored
Normal file
13
third_party/2and3/Crypto/Signature/PKCS1_PSS.pyi
vendored
Normal file
@@ -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] = ...): ...
|
||||
12
third_party/2and3/Crypto/Signature/PKCS1_v1_5.pyi
vendored
Normal file
12
third_party/2and3/Crypto/Signature/PKCS1_v1_5.pyi
vendored
Normal file
@@ -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): ...
|
||||
7
third_party/2and3/Crypto/Signature/__init__.pyi
vendored
Normal file
7
third_party/2and3/Crypto/Signature/__init__.pyi
vendored
Normal file
@@ -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
|
||||
7
third_party/2and3/Crypto/Util/Counter.pyi
vendored
Normal file
7
third_party/2and3/Crypto/Util/Counter.pyi
vendored
Normal file
@@ -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 = ...): ...
|
||||
13
third_party/2and3/Crypto/Util/RFC1751.pyi
vendored
Normal file
13
third_party/2and3/Crypto/Util/RFC1751.pyi
vendored
Normal file
@@ -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
|
||||
10
third_party/2and3/Crypto/Util/__init__.pyi
vendored
Normal file
10
third_party/2and3/Crypto/Util/__init__.pyi
vendored
Normal file
@@ -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
|
||||
49
third_party/2and3/Crypto/Util/asn1.pyi
vendored
Normal file
49
third_party/2and3/Crypto/Util/asn1.pyi
vendored
Normal file
@@ -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 = ...): ...
|
||||
26
third_party/2and3/Crypto/Util/number.pyi
vendored
Normal file
26
third_party/2and3/Crypto/Util/number.pyi
vendored
Normal file
@@ -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
|
||||
20
third_party/2and3/Crypto/Util/randpool.pyi
vendored
Normal file
20
third_party/2and3/Crypto/Util/randpool.pyi
vendored
Normal file
@@ -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 = ...): ...
|
||||
6
third_party/2and3/Crypto/Util/strxor.pyi
vendored
Normal file
6
third_party/2and3/Crypto/Util/strxor.pyi
vendored
Normal file
@@ -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): ...
|
||||
11
third_party/2and3/Crypto/__init__.pyi
vendored
Normal file
11
third_party/2and3/Crypto/__init__.pyi
vendored
Normal file
@@ -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
|
||||
11
third_party/2and3/Crypto/pct_warnings.pyi
vendored
Normal file
11
third_party/2and3/Crypto/pct_warnings.pyi
vendored
Normal file
@@ -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): ...
|
||||
Reference in New Issue
Block a user