o
    vh                     @   s8  d dl mZmZmZ ddlmZ 	 g dZG dd dejZG dd dej	Z
G d	d
 d
ejZG dd dej	ZG dd dejZG dd dejZG dd dejZG dd dej	ZG dd dej	ZG dd dej	ZG dd dej	ZG dd dejZG dd dej	ZG dd  d ejZG d!d" d"ej	ZG d#d$ d$ej	ZG d%d& d&ejZG d'd( d(ej	ZG d)d* d*ejZG d+d, d,ejZG d-d. d.ejZG d/d0 d0ej	Z G d1d2 d2ejZ!G d3d4 d4ej	Z"ed5d6e ed7d8e ed9d:ej# ed;d<ej$ ed=d>e" ed?d@ej% edAdBe dCS )D    )algoscmscore   )register_cms_attribute)CommitmentTypeIdentifierCommitmentTypeQualifierCommitmentTypeQualifiersCommitmentTypeIndicationSigPolicyQualifierIdNoticeNumbersNoticeReferenceSPUserNoticeSPDocSpecificationSigPolicyQualifierInfoSigPolicyQualifierInfosSignaturePolicyIdSignaturePolicyIdentifierSignaturePolicyDocumentSignaturePolicyStoreDisplayTextSignerAttributesV2CertifiedAttributesV2CertifiedAttributeChoicesOtherAttrCertOtherAttrCertIdSignedAssertionsSignedAssertionSignedAssertionIdc                   @   s   e Zd ZdddddddZdS )	r   proof_of_originproof_of_receiptproof_of_deliveryproof_of_senderproof_of_approvalproof_of_creation)z1.2.840.113549.1.9.16.6.1z1.2.840.113549.1.9.16.6.2z1.2.840.113549.1.9.16.6.3z1.2.840.113549.1.9.16.6.4z1.2.840.113549.1.9.16.6.5z1.2.840.113549.1.9.16.6.6N__name__
__module____qualname___map r*   r*   Z/var/www/html/hyperkenya/venv/lib/python3.10/site-packages/pyhanko/sign/ades/cades_asn1.pyr   ,   s    
r   c                   @   &   e Zd ZdefdejfgZdZi ZdS )r   commitment_type_identifier	qualifier)r-   r.   N)	r&   r'   r(   r   r   Any_fields	_oid_pair
_oid_specsr*   r*   r*   r+   r   8   s    r   c                   @      e Zd ZeZdS )r	   N)r&   r'   r(   r   _child_specr*   r*   r*   r+   r	   D       r	   c                   @   s"   e Zd ZdefdeddifgZdS )r
   commitment_type_idcommitment_type_qualifieroptionalTN)r&   r'   r(   r   r	   r0   r*   r*   r*   r+   r
   H   s    r
   c                   @   s   e Zd ZddddZdS )r   sp_uri
sp_unoticesp_doc_specification)z1.2.840.113549.1.9.16.5.1z1.2.840.113549.1.9.16.5.2z0.4.0.19122.2.1Nr%   r*   r*   r*   r+   r   S   s
    
r   c                   @   s(   e Zd ZdejfdejfdejfgZdS )r   visible_string
bmp_stringutf8_stringN)r&   r'   r(   r   VisibleString	BMPString
UTF8String_alternativesr*   r*   r*   r+   r   ]   s
    r   c                   @   s   e Zd ZejZdS )r   N)r&   r'   r(   r   Integerr4   r*   r*   r*   r+   r   g   s    
r   c                   @      e Zd ZdefdefgZdS )r   organizationnotice_numbersN)r&   r'   r(   r   r   r0   r*   r*   r*   r+   r   k   s    r   c                   @   s(   e Zd ZdeddifdeddifgZdS )r   
notice_refr8   Texplicit_textN)r&   r'   r(   r   r   r0   r*   r*   r*   r+   r   o   s    r   c                   @       e Zd ZdejfdejfgZdS )r   oiduriN)r&   r'   r(   r   ObjectIdentifier	IA5Stringr0   r*   r*   r*   r+   r   v   s    r   c                   @   s0   e Zd ZdefdejfgZdZeje	e
dZdS )r   sig_policy_qualifier_idsig_qualifier)rN   rO   )r9   r:   r;   N)r&   r'   r(   r   r   r/   r0   r1   rM   r   r   r2   r*   r*   r*   r+   r   z   s    
r   c                   @   r3   )r   N)r&   r'   r(   r   r4   r*   r*   r*   r+   r      r5   r   c                   @   s,   e Zd ZdejfdejfdeddifgZdS )r   sig_policy_idsig_policy_hashsig_policy_qualifiersr8   TN)	r&   r'   r(   r   rL   r   
DigestInfor   r0   r*   r*   r*   r+   r      s
    r   c                   @   s   e Zd ZdefdejfgZdS )r   signature_policy_idsignature_policy_impliedN)r&   r'   r(   r   r   NullrB   r*   r*   r*   r+   r      s    r   c                   @   rI   )r   sig_policy_encodedsig_policy_local_uriN)r&   r'   r(   r   OctetStringrM   r0   r*   r*   r*   r+   r      s    r   c                   @   rD   )r   sp_doc_specsp_documentN)r&   r'   r(   r   r   r0   r*   r*   r*   r+   r      s    r   c                   @      e Zd Zi ZdS )r   Nr%   r*   r*   r*   r+   r      r5   r   c                   @   r,   )r   other_attr_cert_idother_attr_cert)r]   r^   N)	r&   r'   r(   r   r   r/   r0   r1   r2   r*   r*   r*   r+   r          r   c                   @   s*   e Zd ZdejddifdeddifgZdS )r   	attr_certexplicitr   r^   r   N)r&   r'   r(   r   AttributeCertificateV2r   rB   r*   r*   r*   r+   r      s    r   c                   @   r3   )r   N)r&   r'   r(   r   r4   r*   r*   r*   r+   r      r5   r   c                   @   r\   )r   Nr%   r*   r*   r*   r+   r      r5   r   c                   @   r,   )r   signed_assertion_idsigned_assertion)rc   rd   N)	r&   r'   r(   r   r   r/   r0   r1   r2   r*   r*   r*   r+   r      r_   r   c                   @   r3   )r   N)r&   r'   r(   r   r4   r*   r*   r*   r+   r      r5   r   c                   @   s<   e Zd ZdejdddfdedddfdedddfgZd	S )
r   claimed_attributesTr   )r8   ra   certified_attributes_v2r   signed_assertions   N)r&   r'   r(   r   AttCertAttributesr   r   r0   r*   r*   r*   r+   r      s    r   z1.2.840.113549.1.9.16.2.15signature_policy_identifierz1.2.840.113549.1.9.16.2.16commitment_typez1.2.840.113549.1.9.16.2.20content_time_stampz0.4.0.1733.2.1	mime_typez0.4.0.19122.1.1signer_attributes_v2z0.4.0.19122.1.2claimed_samlz0.4.0.19122.1.3signature_policy_storeN)&
asn1cryptor   r   r   	asn1_utilr   __all__rL   r   Sequencer   
SequenceOfr	   r
   r   Choicer   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ContentInforA   rY   r*   r*   r*   r+   <module>   s^    

	

