Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/cryptography/x509/certificate_transparency.py: 93%

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

15 statements  

1# This file is dual licensed under the terms of the Apache License, Version 

2# 2.0, and the BSD License. See the LICENSE file in the root of this repository 

3# for complete details. 

4 

5from __future__ import annotations 

6 

7from cryptography import utils 

8from cryptography.hazmat.bindings._rust import x509 as rust_x509 

9 

10 

11class LogEntryType(utils.Enum): 

12 X509_CERTIFICATE = 0 

13 PRE_CERTIFICATE = 1 

14 

15 

16class Version(utils.Enum): 

17 v1 = 0 

18 

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 = 0 

30 RSA = 1 

31 DSA = 2 

32 ECDSA = 3 

33 

34 

35SignedCertificateTimestamp = rust_x509.Sct