tigrcorn-security 0.3.16.dev5__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.
- tigrcorn_security/__init__.py +1 -0
- tigrcorn_security/alpn.py +29 -0
- tigrcorn_security/certs.py +10 -0
- tigrcorn_security/policies.py +68 -0
- tigrcorn_security/py.typed +1 -0
- tigrcorn_security/tls.py +583 -0
- tigrcorn_security/tls13/__init__.py +95 -0
- tigrcorn_security/tls13/extensions.py +759 -0
- tigrcorn_security/tls13/handshake.py +1411 -0
- tigrcorn_security/tls13/key_schedule.py +108 -0
- tigrcorn_security/tls13/messages.py +428 -0
- tigrcorn_security/tls13/transcript.py +51 -0
- tigrcorn_security/tls_cipher_policy.py +43 -0
- tigrcorn_security/x509/__init__.py +31 -0
- tigrcorn_security/x509/path.py +1284 -0
- tigrcorn_security-0.3.16.dev5.dist-info/METADATA +239 -0
- tigrcorn_security-0.3.16.dev5.dist-info/RECORD +20 -0
- tigrcorn_security-0.3.16.dev5.dist-info/WHEEL +5 -0
- tigrcorn_security-0.3.16.dev5.dist-info/licenses/LICENSE +163 -0
- tigrcorn_security-0.3.16.dev5.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
from .extensions import (
|
|
2
|
+
CIPHER_TLS_AES_128_GCM_SHA256,
|
|
3
|
+
CIPHER_TLS_AES_256_GCM_SHA384,
|
|
4
|
+
GROUP_SECP256R1,
|
|
5
|
+
GROUP_X25519,
|
|
6
|
+
QUIC_EARLY_DATA_SENTINEL,
|
|
7
|
+
SIG_RSA_PKCS1_SHA256,
|
|
8
|
+
SIG_ECDSA_SECP256R1_SHA256,
|
|
9
|
+
SIG_ED25519,
|
|
10
|
+
SIG_RSA_PSS_PSS_SHA256,
|
|
11
|
+
SIG_RSA_PSS_RSAE_SHA256,
|
|
12
|
+
SUPPORTED_CERTIFICATE_SIGNATURE_SCHEMES,
|
|
13
|
+
SUPPORTED_CIPHER_SUITES,
|
|
14
|
+
SUPPORTED_GROUPS,
|
|
15
|
+
SUPPORTED_SIGNATURE_SCHEMES,
|
|
16
|
+
ExtensionType,
|
|
17
|
+
CipherSuiteParameters,
|
|
18
|
+
OfferedPsks,
|
|
19
|
+
PskIdentity,
|
|
20
|
+
TlsExtension,
|
|
21
|
+
TransportParameters,
|
|
22
|
+
cipher_suite_name,
|
|
23
|
+
cipher_suite_parameters,
|
|
24
|
+
format_cipher_suite_allowlist,
|
|
25
|
+
parse_cipher_suite_allowlist,
|
|
26
|
+
)
|
|
27
|
+
from .key_schedule import Tls13KeySchedule, TrafficSecrets
|
|
28
|
+
from .messages import *
|
|
29
|
+
from .transcript import HandshakeTranscript
|
|
30
|
+
|
|
31
|
+
__all__ = [
|
|
32
|
+
'CIPHER_TLS_AES_128_GCM_SHA256',
|
|
33
|
+
'CIPHER_TLS_AES_256_GCM_SHA384',
|
|
34
|
+
'GROUP_SECP256R1',
|
|
35
|
+
'GROUP_X25519',
|
|
36
|
+
'QUIC_EARLY_DATA_SENTINEL',
|
|
37
|
+
'SIG_RSA_PKCS1_SHA256',
|
|
38
|
+
'SIG_ECDSA_SECP256R1_SHA256',
|
|
39
|
+
'SIG_ED25519',
|
|
40
|
+
'SIG_RSA_PSS_RSAE_SHA256',
|
|
41
|
+
'SIG_RSA_PSS_PSS_SHA256',
|
|
42
|
+
'SUPPORTED_CERTIFICATE_SIGNATURE_SCHEMES',
|
|
43
|
+
'SUPPORTED_CIPHER_SUITES',
|
|
44
|
+
'SUPPORTED_GROUPS',
|
|
45
|
+
'SUPPORTED_SIGNATURE_SCHEMES',
|
|
46
|
+
'ExtensionType',
|
|
47
|
+
'CipherSuiteParameters',
|
|
48
|
+
'OfferedPsks',
|
|
49
|
+
'PskIdentity',
|
|
50
|
+
'TlsExtension',
|
|
51
|
+
'TransportParameters',
|
|
52
|
+
'cipher_suite_name',
|
|
53
|
+
'cipher_suite_parameters',
|
|
54
|
+
'format_cipher_suite_allowlist',
|
|
55
|
+
'parse_cipher_suite_allowlist',
|
|
56
|
+
'HandshakeTranscript',
|
|
57
|
+
'Tls13KeySchedule',
|
|
58
|
+
'TrafficSecrets',
|
|
59
|
+
'HandshakeFlight',
|
|
60
|
+
'QuicTlsHandshakeDriver',
|
|
61
|
+
'QuicSessionTicket',
|
|
62
|
+
'QuicTrafficSecrets',
|
|
63
|
+
'TlsAlertError',
|
|
64
|
+
'generate_self_signed_certificate',
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def __getattr__(name: str):
|
|
69
|
+
if name in {
|
|
70
|
+
'HandshakeFlight',
|
|
71
|
+
'QuicSessionTicket',
|
|
72
|
+
'QuicTlsHandshakeDriver',
|
|
73
|
+
'QuicTrafficSecrets',
|
|
74
|
+
'TlsAlertError',
|
|
75
|
+
'generate_self_signed_certificate',
|
|
76
|
+
}:
|
|
77
|
+
from .handshake import (
|
|
78
|
+
HandshakeFlight,
|
|
79
|
+
QuicSessionTicket,
|
|
80
|
+
QuicTlsHandshakeDriver,
|
|
81
|
+
QuicTrafficSecrets,
|
|
82
|
+
TlsAlertError,
|
|
83
|
+
generate_self_signed_certificate,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
mapping = {
|
|
87
|
+
'HandshakeFlight': HandshakeFlight,
|
|
88
|
+
'QuicSessionTicket': QuicSessionTicket,
|
|
89
|
+
'QuicTlsHandshakeDriver': QuicTlsHandshakeDriver,
|
|
90
|
+
'QuicTrafficSecrets': QuicTrafficSecrets,
|
|
91
|
+
'TlsAlertError': TlsAlertError,
|
|
92
|
+
'generate_self_signed_certificate': generate_self_signed_certificate,
|
|
93
|
+
}
|
|
94
|
+
return mapping[name]
|
|
95
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|