Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/ecdsa/__init__.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:16 +0000

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) 

32from .ecdh import ( 

33 ECDH, 

34 NoKeyError, 

35 NoCurveError, 

36 InvalidCurveError, 

37 InvalidSharedSecretError, 

38) 

39from .der import UnexpectedDER 

40from . import _version 

41 

42# This code comes from http://github.com/tlsfuzzer/python-ecdsa 

43__all__ = [ 

44 "curves", 

45 "der", 

46 "ecdsa", 

47 "ellipticcurve", 

48 "keys", 

49 "numbertheory", 

50 "test_pyecdsa", 

51 "util", 

52 "six", 

53] 

54 

55_hush_pyflakes = [ 

56 SigningKey, 

57 VerifyingKey, 

58 BadSignatureError, 

59 BadDigestError, 

60 MalformedPointError, 

61 UnexpectedDER, 

62 InvalidCurveError, 

63 NoKeyError, 

64 InvalidSharedSecretError, 

65 ECDH, 

66 NoCurveError, 

67 NIST192p, 

68 NIST224p, 

69 NIST256p, 

70 NIST384p, 

71 NIST521p, 

72 SECP256k1, 

73 BRAINPOOLP160r1, 

74 BRAINPOOLP192r1, 

75 BRAINPOOLP224r1, 

76 BRAINPOOLP256r1, 

77 BRAINPOOLP320r1, 

78 BRAINPOOLP384r1, 

79 BRAINPOOLP512r1, 

80 SECP112r1, 

81 SECP112r2, 

82 SECP128r1, 

83 SECP160r1, 

84 Ed25519, 

85 Ed448, 

86 six.b(""), 

87] 

88del _hush_pyflakes 

89 

90__version__ = _version.get_versions()["version"]