
    ,d                       d dl mZ d dlZd dlZd dlmZ d dlmZ d dl	m
Z
  G d dej                  Z G d d	ej                  Z G d
 dej                  Z G d dej                  Ze                    ej                   dS )    )annotationsN)utils)x509)HashAlgorithmc                      e Zd ZdZdZdS )LogEntryTyper      N)__name__
__module____qualname__X509_CERTIFICATEPRE_CERTIFICATE     Jlib/python3.11/site-packages/cryptography/x509/certificate_transparency.pyr   r      s        OOOr   r   c                      e Zd ZdZdS )Versionr   N)r
   r   r   v1r   r   r   r   r      s        	
BBBr   r   c                  "    e Zd ZdZdZdZdZdZdS )SignatureAlgorithmz
    Signature algorithms that are valid for SCTs.

    These are exactly the same as SignatureAlgorithm in RFC 5246 (TLS 1.2).

    See: <https://datatracker.ietf.org/doc/html/rfc5246#section-7.4.1.4.1>
    r   r	         N)r
   r   r   __doc__	ANONYMOUSRSADSAECDSAr   r   r   r   r      s.          I
C
CEEEr   r   c                     e Zd Zeej        dd                        Zeej        dd                        Zeej        dd                        Zeej        dd	                        Z	eej        dd                        Z
eej        dd                        Zeej        dd                        Zeej        dd                        ZdS )SignedCertificateTimestampreturnr   c                    dS )z*
        Returns the SCT version.
        Nr   selfs    r   versionz"SignedCertificateTimestamp.version(         r   bytesc                    dS )zM
        Returns an identifier indicating which log this SCT is for.
        Nr   r"   s    r   log_idz!SignedCertificateTimestamp.log_id/   r%   r   datetime.datetimec                    dS )z5
        Returns the timestamp for this SCT.
        Nr   r"   s    r   	timestampz$SignedCertificateTimestamp.timestamp6   r%   r   r   c                    dS )zV
        Returns whether this is an SCT for a certificate or pre-certificate.
        Nr   r"   s    r   
entry_typez%SignedCertificateTimestamp.entry_type=   r%   r   r   c                    dS )zJ
        Returns the hash algorithm used for the SCT's signature.
        Nr   r"   s    r   signature_hash_algorithmz3SignedCertificateTimestamp.signature_hash_algorithmD   r%   r   r   c                    dS )zM
        Returns the signing algorithm used for the SCT's signature.
        Nr   r"   s    r   signature_algorithmz.SignedCertificateTimestamp.signature_algorithmK   r%   r   c                    dS )z5
        Returns the signature for this SCT.
        Nr   r"   s    r   	signaturez$SignedCertificateTimestamp.signatureR   r%   r   c                    dS )zG
        Returns the raw bytes of any extensions for this SCT.
        Nr   r"   s    r   extension_bytesz*SignedCertificateTimestamp.extension_bytesY   r%   r   N)r    r   )r    r&   )r    r)   )r    r   )r    r   )r    r   )r
   r   r   propertyabcabstractmethodr$   r(   r+   r-   r/   r1   r3   r5   r   r   r   r   r   '   s           X
     X
     X
     X
     X
     X
     X
     X  r   r   )	metaclass)
__future__r   r7   datetimecryptographyr   "cryptography.hazmat.bindings._rustr   	rust_x509%cryptography.hazmat.primitives.hashesr   Enumr   r   r   ABCMetar   registerSctr   r   r   <module>rD      s5  
 # " " " " " 



        @ @ @ @ @ @ ? ? ? ? ? ?    5:   
    ej          7 7 7 7 73; 7 7 7 7t  # #IM 2 2 2 2 2r   