Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/ecdsa/__init__.py: 91%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
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__)
3import six
4from .keys import (
5 SigningKey,
6 VerifyingKey,
7 BadSignatureError,
8 BadDigestError,
9 MalformedPointError,
10)
11from .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)
39from .ecdh import (
40 ECDH,
41 NoKeyError,
42 NoCurveError,
43 InvalidCurveError,
44 InvalidSharedSecretError,
45)
46from .der import UnexpectedDER
47from . import _version
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]
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]
102del _hush_pyflakes
104__version__ = _version.get_versions()["version"]