codekingpro/portable-devtools
114k
1# This file is dual licensed under the terms of the Apache License, Version2# 2.0, and the BSD License. See the LICENSE file in the root of this repository3# for complete details.4 5from __future__ import annotations6 7from cryptography import utils8from cryptography.hazmat.bindings._rust import x509 as rust_x5099 10 11class LogEntryType(utils.Enum):12 X509_CERTIFICATE = 013 PRE_CERTIFICATE = 114 15 16class Version(utils.Enum):17 v1 = 018 19 20class SignatureAlgorithm(utils.Enum):21 """22 Signature algorithms that are valid for SCTs.23 24 These are exactly the same as SignatureAlgorithm in RFC 5246 (TLS 1.2).25 26 See: <https://datatracker.ietf.org/doc/html/rfc5246#section-7.4.1.4.1>27 """28 29 ANONYMOUS = 030 RSA = 131 DSA = 232 ECDSA = 333 34 35SignedCertificateTimestamp = rust_x509.Sct36 