| 1 |
# while we don't use six in this file, we did bundle it for a long time, so |
| 2 |
# keep as part of module in a virtual way (through __all__) |
| 3 |
import six |
| 4 |
from .keys import ( |
| 5 |
SigningKey, |
| 6 |
VerifyingKey, |
| 7 |
BadSignatureError, |
| 8 |
BadDigestError, |
| 9 |
MalformedPointError, |
| 10 |
) |
| 11 |
from .curves import ( |
| 12 |
NIST192p, |
| 13 |
NIST224p, |
| 14 |
NIST256p, |
| 15 |
NIST384p, |
| 16 |
NIST521p, |
| 17 |
SECP256k1, |
| 18 |
BRAINPOOLP160r1, |
| 19 |
BRAINPOOLP192r1, |
| 20 |
BRAINPOOLP224r1, |
| 21 |
BRAINPOOLP256r1, |
| 22 |
BRAINPOOLP320r1, |
| 23 |
BRAINPOOLP384r1, |
| 24 |
BRAINPOOLP512r1, |
| 25 |
SECP112r1, |
| 26 |
SECP112r2, |
| 27 |
SECP128r1, |
| 28 |
SECP160r1, |
| 29 |
Ed25519, |
| 30 |
Ed448, |
| 31 |
BRAINPOOLP160t1, |
| 32 |
BRAINPOOLP192t1, |
| 33 |
BRAINPOOLP224t1, |
| 34 |
BRAINPOOLP256t1, |
| 35 |
BRAINPOOLP320t1, |
| 36 |
BRAINPOOLP384t1, |
| 37 |
BRAINPOOLP512t1, |
| 38 |
) |
| 39 |
from .ecdh import ( |
| 40 |
ECDH, |
| 41 |
NoKeyError, |
| 42 |
NoCurveError, |
| 43 |
InvalidCurveError, |
| 44 |
InvalidSharedSecretError, |
| 45 |
) |
| 46 |
from .der import UnexpectedDER |
| 47 |
from . import _version |
| 48 |
|
| 49 |
# This code comes from http://github.com/tlsfuzzer/python-ecdsa |
| 50 |
__all__ = [ |
| 51 |
"curves", |
| 52 |
"der", |
| 53 |
"ecdsa", |
| 54 |
"ellipticcurve", |
| 55 |
"keys", |
| 56 |
"numbertheory", |
| 57 |
"test_pyecdsa", |
| 58 |
"util", |
| 59 |
"six", |
| 60 |
] |
| 61 |
|
| 62 |
_hush_pyflakes = [ |
| 63 |
SigningKey, |
| 64 |
VerifyingKey, |
| 65 |
BadSignatureError, |
| 66 |
BadDigestError, |
| 67 |
MalformedPointError, |
| 68 |
UnexpectedDER, |
| 69 |
InvalidCurveError, |
| 70 |
NoKeyError, |
| 71 |
InvalidSharedSecretError, |
| 72 |
ECDH, |
| 73 |
NoCurveError, |
| 74 |
NIST192p, |
| 75 |
NIST224p, |
| 76 |
NIST256p, |
| 77 |
NIST384p, |
| 78 |
NIST521p, |
| 79 |
SECP256k1, |
| 80 |
BRAINPOOLP160r1, |
| 81 |
BRAINPOOLP192r1, |
| 82 |
BRAINPOOLP224r1, |
| 83 |
BRAINPOOLP256r1, |
| 84 |
BRAINPOOLP320r1, |
| 85 |
BRAINPOOLP384r1, |
| 86 |
BRAINPOOLP512r1, |
| 87 |
SECP112r1, |
| 88 |
SECP112r2, |
| 89 |
SECP128r1, |
| 90 |
SECP160r1, |
| 91 |
Ed25519, |
| 92 |
Ed448, |
| 93 |
six.b(""), |
| 94 |
BRAINPOOLP160t1, |
| 95 |
BRAINPOOLP192t1, |
| 96 |
BRAINPOOLP224t1, |
| 97 |
BRAINPOOLP256t1, |
| 98 |
BRAINPOOLP320t1, |
| 99 |
BRAINPOOLP384t1, |
| 100 |
BRAINPOOLP512t1, |
| 101 |
] |
| 102 |
del _hush_pyflakes |
| 103 |
|
| 104 |
__version__ = _version.get_versions()["version"] |