CryptoDataHub 0.12.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. CryptoDataHub-0.12.6.dist-info/LICENSE.txt +373 -0
  2. CryptoDataHub-0.12.6.dist-info/METADATA +119 -0
  3. CryptoDataHub-0.12.6.dist-info/RECORD +70 -0
  4. CryptoDataHub-0.12.6.dist-info/WHEEL +5 -0
  5. CryptoDataHub-0.12.6.dist-info/top_level.txt +1 -0
  6. cryptodatahub/__init__.py +0 -0
  7. cryptodatahub/__setup__.py +10 -0
  8. cryptodatahub/common/__init__.py +0 -0
  9. cryptodatahub/common/algorithm.py +164 -0
  10. cryptodatahub/common/attack-named.json +74 -0
  11. cryptodatahub/common/attack-type.json +58 -0
  12. cryptodatahub/common/authentication.json +113 -0
  13. cryptodatahub/common/block-cipher-mode.json +75 -0
  14. cryptodatahub/common/block-cipher.json +474 -0
  15. cryptodatahub/common/certificate-transparency-log.json +2394 -0
  16. cryptodatahub/common/client.json +20 -0
  17. cryptodatahub/common/dhparam-well-known.json +1975 -0
  18. cryptodatahub/common/ecparam-well-known.json +1868 -0
  19. cryptodatahub/common/entity.json +269 -0
  20. cryptodatahub/common/entity.py +110 -0
  21. cryptodatahub/common/exception.py +28 -0
  22. cryptodatahub/common/grade.py +200 -0
  23. cryptodatahub/common/hash.json +273 -0
  24. cryptodatahub/common/key-exchange.json +140 -0
  25. cryptodatahub/common/key.py +571 -0
  26. cryptodatahub/common/mac.json +404 -0
  27. cryptodatahub/common/named-group.json +902 -0
  28. cryptodatahub/common/parameter.py +149 -0
  29. cryptodatahub/common/root-certificate.json +19240 -0
  30. cryptodatahub/common/server.json +56 -0
  31. cryptodatahub/common/signature.json +233 -0
  32. cryptodatahub/common/standard.json +57 -0
  33. cryptodatahub/common/stores.py +323 -0
  34. cryptodatahub/common/types.py +524 -0
  35. cryptodatahub/common/utils.py +112 -0
  36. cryptodatahub/common/vulnerability.json +2 -0
  37. cryptodatahub/dnsrec/__init__.py +0 -0
  38. cryptodatahub/dnsrec/algorithm.json +114 -0
  39. cryptodatahub/dnsrec/algorithm.py +87 -0
  40. cryptodatahub/dnsrec/digest-type.json +26 -0
  41. cryptodatahub/dnsrec/rr-type.json +805 -0
  42. cryptodatahub/ssh/__init__.py +0 -0
  43. cryptodatahub/ssh/algorithm.py +194 -0
  44. cryptodatahub/ssh/compression-algorithm.json +24 -0
  45. cryptodatahub/ssh/elliptic-curve-identifier.json +50 -0
  46. cryptodatahub/ssh/encryption-algorithm.json +587 -0
  47. cryptodatahub/ssh/host-key-algorithm.json +482 -0
  48. cryptodatahub/ssh/kex-algorithm.json +709 -0
  49. cryptodatahub/ssh/mac-algorithm.json +566 -0
  50. cryptodatahub/tls/__init__.py +0 -0
  51. cryptodatahub/tls/algorithm.py +324 -0
  52. cryptodatahub/tls/certificate-compression-algorithm.json +14 -0
  53. cryptodatahub/tls/cipher-kind.json +171 -0
  54. cryptodatahub/tls/cipher-suite-extension.json +10 -0
  55. cryptodatahub/tls/cipher-suite.json +5098 -0
  56. cryptodatahub/tls/client.json +4757 -0
  57. cryptodatahub/tls/client.py +220 -0
  58. cryptodatahub/tls/compression-method.json +20 -0
  59. cryptodatahub/tls/ec-point-format.json +20 -0
  60. cryptodatahub/tls/extension-type.json +282 -0
  61. cryptodatahub/tls/grease-one-byte.json +34 -0
  62. cryptodatahub/tls/grease-two-byte.json +66 -0
  63. cryptodatahub/tls/hash-and-signature-algorithm.json +266 -0
  64. cryptodatahub/tls/named-curve.json +292 -0
  65. cryptodatahub/tls/next-protocol-name.json +20 -0
  66. cryptodatahub/tls/protocol-name.json +71 -0
  67. cryptodatahub/tls/psk-key-exchange-mode.json +10 -0
  68. cryptodatahub/tls/token-binding-paramater.json +14 -0
  69. cryptodatahub/tls/version.json +154 -0
  70. cryptodatahub/tls/version.py +17 -0
@@ -0,0 +1,154 @@
1
+ {
2
+ "SSL2": {
3
+ "_code_in_hex": "0x0002",
4
+ "code": 2
5
+ },
6
+ "SSL3": {
7
+ "_code_in_hex": "0x0300",
8
+ "code": 768
9
+ },
10
+ "TLS1": {
11
+ "_code_in_hex": "0x0301",
12
+ "code": 769
13
+ },
14
+ "TLS1_1": {
15
+ "_code_in_hex": "0x0302",
16
+ "code": 770
17
+ },
18
+ "TLS1_2": {
19
+ "_code_in_hex": "0x0303",
20
+ "code": 771
21
+ },
22
+ "TLS1_3": {
23
+ "_code_in_hex": "0x0304",
24
+ "code": 772
25
+ },
26
+ "TLS1_3_GOOGLE_EXPERIMENT_1": {
27
+ "_code_in_hex": "0x7e01",
28
+ "code": 32257
29
+ },
30
+ "TLS1_3_GOOGLE_EXPERIMENT_2": {
31
+ "_code_in_hex": "0x7e02",
32
+ "code": 32258
33
+ },
34
+ "TLS1_3_GOOGLE_EXPERIMENT_3": {
35
+ "_code_in_hex": "0x7e03",
36
+ "code": 32259
37
+ },
38
+ "TLS1_3_DRAFT_0": {
39
+ "_code_in_hex": "0x7f00",
40
+ "code": 32512
41
+ },
42
+ "TLS1_3_DRAFT_1": {
43
+ "_code_in_hex": "0x7f01",
44
+ "code": 32513
45
+ },
46
+ "TLS1_3_DRAFT_2": {
47
+ "_code_in_hex": "0x7f02",
48
+ "code": 32514
49
+ },
50
+ "TLS1_3_DRAFT_3": {
51
+ "_code_in_hex": "0x7f03",
52
+ "code": 32515
53
+ },
54
+ "TLS1_3_DRAFT_4": {
55
+ "_code_in_hex": "0x7f04",
56
+ "code": 32516
57
+ },
58
+ "TLS1_3_DRAFT_5": {
59
+ "_code_in_hex": "0x7f05",
60
+ "code": 32517
61
+ },
62
+ "TLS1_3_DRAFT_6": {
63
+ "_code_in_hex": "0x7f06",
64
+ "code": 32518
65
+ },
66
+ "TLS1_3_DRAFT_7": {
67
+ "_code_in_hex": "0x7f07",
68
+ "code": 32519
69
+ },
70
+ "TLS1_3_DRAFT_8": {
71
+ "_code_in_hex": "0x7f08",
72
+ "code": 32520
73
+ },
74
+ "TLS1_3_DRAFT_9": {
75
+ "_code_in_hex": "0x7f09",
76
+ "code": 32521
77
+ },
78
+ "TLS1_3_DRAFT_10": {
79
+ "_code_in_hex": "0x7f0a",
80
+ "code": 32522
81
+ },
82
+ "TLS1_3_DRAFT_11": {
83
+ "_code_in_hex": "0x7f0b",
84
+ "code": 32523
85
+ },
86
+ "TLS1_3_DRAFT_12": {
87
+ "_code_in_hex": "0x7f0c",
88
+ "code": 32524
89
+ },
90
+ "TLS1_3_DRAFT_13": {
91
+ "_code_in_hex": "0x7f0d",
92
+ "code": 32525
93
+ },
94
+ "TLS1_3_DRAFT_14": {
95
+ "_code_in_hex": "0x7f0e",
96
+ "code": 32526
97
+ },
98
+ "TLS1_3_DRAFT_15": {
99
+ "_code_in_hex": "0x7f0f",
100
+ "code": 32527
101
+ },
102
+ "TLS1_3_DRAFT_16": {
103
+ "_code_in_hex": "0x7f10",
104
+ "code": 32528
105
+ },
106
+ "TLS1_3_DRAFT_17": {
107
+ "_code_in_hex": "0x7f11",
108
+ "code": 32529
109
+ },
110
+ "TLS1_3_DRAFT_18": {
111
+ "_code_in_hex": "0x7f12",
112
+ "code": 32530
113
+ },
114
+ "TLS1_3_DRAFT_19": {
115
+ "_code_in_hex": "0x7f13",
116
+ "code": 32531
117
+ },
118
+ "TLS1_3_DRAFT_20": {
119
+ "_code_in_hex": "0x7f14",
120
+ "code": 32532
121
+ },
122
+ "TLS1_3_DRAFT_21": {
123
+ "_code_in_hex": "0x7f15",
124
+ "code": 32533
125
+ },
126
+ "TLS1_3_DRAFT_22": {
127
+ "_code_in_hex": "0x7f16",
128
+ "code": 32534
129
+ },
130
+ "TLS1_3_DRAFT_23": {
131
+ "_code_in_hex": "0x7f17",
132
+ "code": 32535
133
+ },
134
+ "TLS1_3_DRAFT_24": {
135
+ "_code_in_hex": "0x7f18",
136
+ "code": 32536
137
+ },
138
+ "TLS1_3_DRAFT_25": {
139
+ "_code_in_hex": "0x7f19",
140
+ "code": 32537
141
+ },
142
+ "TLS1_3_DRAFT_26": {
143
+ "_code_in_hex": "0x7f1a",
144
+ "code": 32538
145
+ },
146
+ "TLS1_3_DRAFT_27": {
147
+ "_code_in_hex": "0x7f1b",
148
+ "code": 32539
149
+ },
150
+ "TLS1_3_DRAFT_28": {
151
+ "_code_in_hex": "0x7f1c",
152
+ "code": 32540
153
+ }
154
+ }
@@ -0,0 +1,17 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ import attr
4
+
5
+ from cryptodatahub.common.types import CryptoDataEnumBase, CryptoDataParamsEnumNumeric
6
+
7
+
8
+ @attr.s
9
+ class VersionParams(CryptoDataParamsEnumNumeric):
10
+ code = attr.ib(validator=attr.validators.instance_of(int))
11
+
12
+ @classmethod
13
+ def get_code_size(cls):
14
+ return 2
15
+
16
+
17
+ TlsVersion = CryptoDataEnumBase('TlsVersion', CryptoDataEnumBase.get_json_records(VersionParams))