U
vf @ s d dl mZ d dlZd dlZd dlmZ d dlmZ d dl m
Z
G dd dejZG dd d ejZ
G d
d dejZG dd
d
ejdZeej dS ) )annotationsN)utils)x509)
HashAlgorithmc @ s e Zd ZdZdZdS )LogEntryTyper N)__name__
__module____qualname__ZX509_CERTIFICATEZPRE_CERTIFICATE r r ]/opt/alt/python38/lib64/python3.8/site-packages/cryptography/x509/certificate_transparency.pyr s r c @ s e Zd ZdZdS )Versionr N)r r r
v1r r r r r
s r
c @ s e Zd ZdZdZdZdZdZdS )SignatureAlgorithmz
Signature algorithms that are valid for SCTs.
These are exactly the same as SignatureAlgorithm in RFC 5246 (TLS 1.2).
See:
r r N)r r r
__doc__Z ANONYMOUSZRSAZDSAZECDSAr r r r r s
r c @ s e Zd ZeejddddZeejddddZeejddd d
Zeejdddd
Z eejddddZ
eejddddZeejddddZeejddddZ
dS )SignedCertificateTimestampr
)returnc C s dS )z*
Returns the SCT version.
Nr selfr r r version( s z"SignedCertificateTimestamp.versionbytesc C s dS )zM
Returns an identifier indicating which log this SCT is for.
Nr r r r r log_id/ s z!SignedCertificateTimestamp.log_idzdatetime.datetimec C s dS )z5
Returns the timestamp for this SCT.
Nr r r r r timestamp6 s z$SignedCertificateTimestamp.timestampr c C s dS )zV
Returns whether this is an SCT for a certificate or pre-certificate.
Nr r r r r
entry_type= s z%SignedCertificateTimestamp.entry_typer c C s dS )zJ
Returns the hash algorithm used for the SCT's signature.
Nr r r r r signature_hash_algorithmD s z3SignedCertificateTimestamp.signature_hash_algorithmr c C s dS )zM
Returns the signing algorithm used for the SCT's signature.
Nr r r r r signature_algorithmK s z.SignedCertificateTimestamp.signature_algorithmc C s dS )z5
Returns the signature for this SCT.
Nr r r r r signatureR s z$SignedCertificateTimestamp.signaturec C s dS )zG
Returns the raw bytes of any extensions for this SCT.
Nr r r r r extension_bytesY s z*SignedCertificateTimestamp.extension_bytesN)r r r
propertyabcabstractmethodr r r r r r r r r r r r r ' s0 r ) metaclass)
__future__r r! datetimeZcryptographyr Z"cryptography.hazmat.bindings._rustr Z rust_x509Z%cryptography.hazmat.primitives.hashesr Enumr r
r ABCMetar registerZSctr r r r s :