
     h                        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 )    N)utils)x509)HashAlgorithmc                       e Zd ZdZdZdS )LogEntryTyper      N)__name__
__module____qualname__X509_CERTIFICATEPRE_CERTIFICATE     f/var/www/html/Sam_Eipo/venv/lib/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efd                        Zeej        defd                        Z	eej        de
j
        fd                        Zeej        defd                        Zeej        defd                        Zeej        defd                        Zeej        defd                        Zeej        defd	                        Zd
S )SignedCertificateTimestampreturnc                     dS )z*
        Returns the SCT version.
        Nr   selfs    r   versionz"SignedCertificateTimestamp.version'         r   c                     dS )zM
        Returns an identifier indicating which log this SCT is for.
        Nr   r!   s    r   log_idz!SignedCertificateTimestamp.log_id.   r$   r   c                     dS )z5
        Returns the timestamp for this SCT.
        Nr   r!   s    r   	timestampz$SignedCertificateTimestamp.timestamp5   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   c                     dS )zJ
        Returns the hash algorithm used for the SCT's signature.
        Nr   r!   s    r   signature_hash_algorithmz3SignedCertificateTimestamp.signature_hash_algorithmC   r$   r   c                     dS )zM
        Returns the signing algorithm used for the SCT's signature.
        Nr   r!   s    r   signature_algorithmz.SignedCertificateTimestamp.signature_algorithmJ   r$   r   c                     dS )z5
        Returns the signature for this SCT.
        Nr   r!   s    r   	signaturez$SignedCertificateTimestamp.signatureQ   r$   r   c                     dS )zG
        Returns the raw bytes of any extensions for this SCT.
        Nr   r!   s    r   extension_bytesz*SignedCertificateTimestamp.extension_bytesX   r$   r   N)r	   r
   r   propertyabcabstractmethodr   r#   bytesr&   datetimer(   r   r*   r   r,   r   r.   r0   r2   r   r   r   r   r   &   s            X
      X
 8,     X
 L     X
 -     X
 %7     X
 5     X
      X  r   r   )	metaclass)r4   r7   cryptographyr   "cryptography.hazmat.bindings._rustr   	rust_x509%cryptography.hazmat.primitives.hashesr   Enumr   r   r   ABCMetar   registerSctr   r   r   <module>rA      s#   


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