HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/asn1crypto/__pycache__/tsp.cpython-39.pyc
a

�,�h��@s"dZddlmZmZmZmZddlmZddlm	Z	m
Z
mZmZm
Z
ddlmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZddlmZm Z m!Z!m"Z"Gd	d
�d
e�Z#Gdd�de�Z$Gd
d�de�Z%Gdd�de�Z&Gdd�de�Z'Gdd�de�Z(Gdd�de�Z)Gdd�de�Z*Gdd�de�Z+Gdd�de�Z,Gdd�de�Z-Gdd �d e�Z.Gd!d"�d"e�Z/Gd#d$�d$e�Z0Gd%d&�d&e�Z1Gd'd(�d(e�Z2Gd)d*�d*e�Z3Gd+d,�d,e�Z4Gd-d.�d.e�Z5Gd/d0�d0e�Z6Gd1d2�d2e�Z7Gd3d4�d4e�Z8Gd5d6�d6e�Z9Gd7d8�d8e�Z:Gd9d:�d:e�Z;Gd;d<�d<e�Z<Gd=d>�d>e�Z=Gd?d@�d@e�Z>GdAdB�dBe�Z?GdCdD�dDe�Z@GdEdF�dFe�ZAGdGdH�dHe�ZBGdIdJ�dJe�ZCGdKdL�dLe�ZDe(e
jEdM<e;e
jEdN<e;ejEdN<dMejFdO<dNejFdP<dQe
jFdR<e@e	jEdQ<dSe
jFdT<eDe	jEdS<dUS)Va�
ASN.1 type classes for the time stamp protocol (TSP). Exports the following
items:

 - TimeStampReq()
 - TimeStampResp()

Also adds TimeStampedData() support to asn1crypto.cms.ContentInfo(),
TimeStampedData() and TSTInfo() support to
asn1crypto.cms.EncapsulatedContentInfo() and some oids and value parsers to
asn1crypto.cms.CMSAttribute().

Other type classes are defined that help compose the types listed above.
�)�unicode_literals�division�absolute_import�print_function�)�DigestAlgorithm)�CMSAttribute�CMSAttributeType�ContentInfo�ContentType�EncapsulatedContentInfo)
�Any�	BitString�Boolean�Choice�GeneralizedTime�	IA5String�Integer�ObjectIdentifier�OctetString�Sequence�
SequenceOf�SetOf�
UTF8String)�CertificateList)�
Attributes�CertificatePolicies�GeneralName�GeneralNamesc@seZdZddddddd�ZdS)	�VersionZv0�v1�v2Zv3�v4Zv5�rr����N��__name__�
__module__�__qualname__�_map�r-r-�?/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/asn1crypto/tsp.pyr8s�rc@seZdZdefdefgZdS)�MessageImprint�hash_algorithmZhashed_messageN)r)r*r+rr�_fieldsr-r-r-r.r/Cs�r/c@s8eZdZdeddifdeddd�fdeddd�fgZd	S)
�Accuracy�seconds�optionalTZmillisr��implicitr4�microsrN)r)r*r+rr1r-r-r-r.r2Js�r2c@s(eZdZdefdeddifdefgZdS)�	ExtensionZextn_id�critical�defaultFZ
extn_valueN)r)r*r+rrrr1r-r-r-r.r8Rs�r8c@seZdZeZdS)�
ExtensionsN)r)r*r+r8�_child_specr-r-r-r.r;Zsr;c@sneZdZdefdefdefdefdefdeddifd	e	d
difdeddifd
e
ddd�fdeddd�fg
ZdS)�TSTInfo�version�policy�message_imprint�
serial_numberZgen_timeZaccuracyr4T�orderingr:F�nonceZtsar)�explicitr4�
extensionsrr5N)
r)r*r+rrr/rrr2rrr;r1r-r-r-r.r=^s�r=c
@sNeZdZdefdefdeddifdeddifdedd	ifd
eddd�fgZ	d
S)�TimeStampReqr>r@Z
req_policyr4TrCZcert_reqr:FrErr5N)
r)r*r+rr/rrrr;r1r-r-r-r.rFms�rFc@seZdZddddddd�ZdS)	�	PKIStatusZgrantedZgranted_with_modsZ	rejectionZwaitingZrevocation_warningZrevocation_notificationr#Nr(r-r-r-r.rGxs�rGc@seZdZeZdS)�PKIFreeTextN)r)r*r+rr<r-r-r-r.rH�srHc	@s"eZdZddddddddd	�Zd
S)�PKIFailureInfoZbad_alg�bad_requestZbad_data_formatZtime_not_availableZunaccepted_policyZunaccepted_extensionsZadd_info_not_availableZsystem_failure)rr$r'�����Nr(r-r-r-r.rI�s�rIc@s.eZdZdefdeddifdeddifgZdS)�
PKIStatusInfo�statusZ
status_stringr4TZ	fail_infoN)r)r*r+rGrHrIr1r-r-r-r.rP�s�rPc@seZdZdefdefgZdS)�
TimeStampResprQZtime_stamp_tokenN)r)r*r+rPr
r1r-r-r-r.rR�s�rRc@s:eZdZdefdeddifdeddifdeddifgZdS)�MetaDataZhash_protected�	file_namer4T�
media_typeZother_meta_dataN)r)r*r+rrrrr1r-r-r-r.rS�s
�rSc@s"eZdZdefdeddifgZdS)�TimeStampAndCRL�
time_stamp�crlr4TN)r)r*r+rrr1r-r-r-r.rV�s�rVc@seZdZeZdS)�TimeStampTokenEvidenceN)r)r*r+rVr<r-r-r-r.rY�srYc@seZdZeZdS)�DigestAlgorithmsN)r)r*r+rr<r-r-r-r.rZ�srZc@seZdZdefdefgZdS)�EncryptionInfoZencryption_info_typeZencryption_info_valueN�r)r*r+rr
r1r-r-r-r.r[�s�r[c@seZdZeZdS)�PartialHashtreeN)r)r*r+rr<r-r-r-r.r]�sr]c@seZdZeZdS)�PartialHashtreesN)r)r*r+r]r<r-r-r-r.r^�sr^c@s@eZdZdeddd�fdeddd�fdeddd�fd	efgZd
S)�ArchiveTimeStampZdigest_algorithmrTr5�
attributesrZreduced_hashtreer$rWN)r)r*r+rrr^r
r1r-r-r-r.r_�s
�r_c@seZdZeZdS)�ArchiveTimeStampSequenceN)r)r*r+r_r<r-r-r-r.ra�srac@s>eZdZdefdefdeddd�fdeddd�fd	efgZd
S)�EvidenceRecordr>Zdigest_algorithmsZcrypto_infosrTr5Zencryption_inforZarchive_time_stamp_sequenceN)	r)r*r+rrZrr[rar1r-r-r-r.rb�s�rbc@seZdZdefdefgZdS)�
OtherEvidenceZoe_typeZoe_valueNr\r-r-r-r.rc�s�rcc@s4eZdZdeddifdeddifdeddifgZdS)	�EvidenceZtst_evidencer6rZers_evidencerZother_evidencer$N)r)r*r+rYrbrcZ
_alternativesr-r-r-r.rd�s�rdc@s@eZdZdefdeddifdeddifdeddifdefgZdS)	�TimeStampedDatar>Zdata_urir4TZ	meta_data�contentZtemporal_evidenceN)	r)r*r+rrrSrrdr1r-r-r-r.re�s�rec@seZdZdefdefgZdS)�IssuerSerialZissuerrAN)r)r*r+rrr1r-r-r-r.rg�s�rgc@s"eZdZdefdeddifgZdS)�	ESSCertID�	cert_hash�
issuer_serialr4TN)r)r*r+rrgr1r-r-r-r.rhs�rhc@seZdZeZdS)�
ESSCertIDsN)r)r*r+rhr<r-r-r-r.rksrkc@s"eZdZdefdeddifgZdS)�SigningCertificate�certs�policiesr4TN)r)r*r+rkrr1r-r-r-r.rls�rlc@seZdZeZdS)�SetOfSigningCertificatesN)r)r*r+rlr<r-r-r-r.rosroc@s2eZdZdedddiifdefdeddifgZd	S)
�ESSCertIDv2r0r:�	algorithm�sha256rirjr4TN)r)r*r+rrrgr1r-r-r-r.rps�rpc@seZdZeZdS)�ESSCertIDv2sN)r)r*r+rpr<r-r-r-r.rssrsc@s"eZdZdefdeddifgZdS)�SigningCertificateV2rmrnr4TN)r)r*r+rsrr1r-r-r-r.rt#s�rtc@seZdZeZdS)�SetOfSigningCertificatesV2N)r)r*r+rtr<r-r-r-r.ru*sruZtst_infoZtimestamped_dataz1.2.840.113549.1.9.16.1.4z1.2.840.113549.1.9.16.1.31Zsigning_certificatez1.2.840.113549.1.9.16.2.12Zsigning_certificate_v2z1.2.840.113549.1.9.16.2.47N)G�__doc__�
__future__rrrrZalgosrZcmsrr	r
rr�corer
rrrrrrrrrrrrrXr�x509rrrrrr/r2r8r;r=rFrGrHrIrPrRrSrVrYrZr[r]r^r_rarbrcrdrergrhrkrlrorprsrtruZ
_oid_specsr,r-r-r-r.�<module>sb<