U BBû`“ã@s"dZddlmZmZmZmZddlmZddlm Z m Z m Z m Z m Z ddlmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZddlmZm Z m!Z!m"Z"Gd d „d eƒZ#Gd d „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„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;e jEdN<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) ÚVersionZv0Zv1Zv2Zv3Zv4Zv5©rrééééN©Ú__name__Ú __module__Ú __qualname__Ú_map©r*r*ú]C:\Users\shjeevan\PycharmProjects\Verisk-XactWare\venv3.8\Lib\site-packages\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©Úimplicitr1ZmicrosrN)r&r'r(rr.r*r*r*r+r/Js ýr/c@s(eZdZdefdeddifdefgZdS)Ú ExtensionZextn_idÚcriticalÚdefaultFZ extn_valueN)r&r'r(rrrr.r*r*r*r+r4Rs ýr4c@seZdZeZdS)Ú ExtensionsN)r&r'r(r4Ú _child_specr*r*r*r+r7Zsr7c@sneZdZdefdefdefdefdefdeddifd e d d ifd eddifd e dddœfde dddœfg Z dS)ÚTSTInfoÚversionÚpolicyÚmessage_imprintÚ serial_numberZgen_timeZaccuracyr1TZorderingr6FÚnonceZtsar)Úexplicitr1Ú extensionsrr2N) r&r'r(rrr,rrr/rrr7r.r*r*r*r+r9^s   ör9c @sNeZdZdefdefdeddifdeddifdedd ifd ed dd œfgZ d S)Ú TimeStampReqr:r<Z req_policyr1Tr>Zcert_reqr6Fr@rr2N) r&r'r(rr,rrrr7r.r*r*r*r+rAms   úrAc@seZdZdddddddœZdS) Ú PKIStatusZgrantedZgranted_with_modsZ rejectionÚwaitingZrevocation_warningZrevocation_notificationr Nr%r*r*r*r+rBxsúrBc@seZdZeZdS)Ú PKIFreeTextN)r&r'r(rr8r*r*r*r+rDƒsrDc @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+rE‡sørEc@s.eZdZdefdeddifdeddifgZdS)Ú PKIStatusInfoÚstatusZ status_stringr1TZ fail_infoN)r&r'r(rBrDrEr.r*r*r*r+rL”s  ýrLc@seZdZdefdefgZdS)Ú TimeStampResprMZtime_stamp_tokenN)r&r'r(rLr r.r*r*r*r+rNœsþrNc@s:eZdZdefdeddifdeddifdeddifgZdS)ÚMetaDataZhash_protectedÚ file_namer1TÚ media_typeZother_meta_dataN)r&r'r(rrrrr.r*r*r*r+rO£s    ürOc@s"eZdZdefdeddifgZdS)ÚTimeStampAndCRLÚ time_stampÚcrlr1TN)r&r'r(r rr.r*r*r*r+rR¬s þrRc@seZdZeZdS)ÚTimeStampTokenEvidenceN)r&r'r(rRr8r*r*r*r+rU³srUc@seZdZeZdS)ÚDigestAlgorithmsN)r&r'r(rr8r*r*r*r+rV·srVc@seZdZdefdefgZdS)ÚEncryptionInfoZencryption_info_typeZencryption_info_valueN©r&r'r(rr r.r*r*r*r+rW»sþrWc@seZdZeZdS)ÚPartialHashtreeN)r&r'r(rr8r*r*r*r+rYÂsrYc@seZdZeZdS)ÚPartialHashtreesN)r&r'r(rYr8r*r*r*r+rZÆsrZc@s@eZdZdedddœfdedddœfdedddœfd efgZd S) ÚArchiveTimeStampZdigest_algorithmrTr2Ú attributesrZreduced_hashtreer!rSN)r&r'r(rrrZr r.r*r*r*r+r[Ês ür[c@seZdZeZdS)ÚArchiveTimeStampSequenceN)r&r'r(r[r8r*r*r*r+r]Ósr]c@s>eZdZdefdefdedddœfdedddœfd efgZd S) ÚEvidenceRecordr:Zdigest_algorithmsZ crypto_infosrTr2Zencryption_inforZarchive_time_stamp_sequenceN) r&r'r(rrVrrWr]r.r*r*r*r+r^×s ûr^c@seZdZdefdefgZdS)Ú OtherEvidenceZoe_typeZoe_valueNrXr*r*r*r+r_ásþr_c@s4eZdZdeddifdeddifdeddifgZdS) ÚEvidenceZ tst_evidencer3rZ ers_evidencerZother_evidencer!N)r&r'r(rUr^r_Z _alternativesr*r*r*r+r`ès   ýr`c@s@eZdZdefdeddifdeddifdeddifdefgZdS) ÚTimeStampedDatar:Zdata_urir1TZ meta_dataÚcontentZtemporal_evidenceN) r&r'r(rrrOrr`r.r*r*r*r+raðs    ûrac@seZdZdefdefgZdS)Ú IssuerSerialZissuerr=N)r&r'r(rrr.r*r*r*r+rcúsþrcc@s"eZdZdefdeddifgZdS)Ú ESSCertIDÚ cert_hashÚ issuer_serialr1TN)r&r'r(rrcr.r*r*r*r+rds þrdc@seZdZeZdS)Ú ESSCertIDsN)r&r'r(rdr8r*r*r*r+rgsrgc@s"eZdZdefdeddifgZdS)ÚSigningCertificateÚcertsÚpoliciesr1TN)r&r'r(rgrr.r*r*r*r+rh s þrhc@seZdZeZdS)ÚSetOfSigningCertificatesN)r&r'r(rhr8r*r*r*r+rksrkc@s2eZdZdedddiifdefdeddifgZd S) Ú ESSCertIDv2r-r6Ú algorithmÚsha256rerfr1TN)r&r'r(rrrcr.r*r*r*r+rls ýrlc@seZdZeZdS)Ú ESSCertIDv2sN)r&r'r(rlr8r*r*r*r+rosroc@s"eZdZdefdeddifgZdS)ÚSigningCertificateV2rirjr1TN)r&r'r(rorr.r*r*r*r+rp#s þrpc@seZdZeZdS)ÚSetOfSigningCertificatesV2N)r&r'r(rpr8r*r*r*r+rq*srqZtst_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 r r Úcorer rrrrrrrrrrrrrTrÚx509rrrrrr,r/r4r7r9rArBrDrErLrNrOrRrUrVrWrYrZr[r]r^r_r`rarcrdrgrhrkrlrorprqZ _oid_specsr)r*r*r*r+Úsb <