<s> from pyasn1 . type import tag , namedtype , namedval , univ , constraint , char , useful <EOL> from pyasn1_modules . rfc2459 import * <EOL> class Attribute ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT:type>' , AttributeType ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , univ . SetOf ( componentType = AttributeValue ( ) ) ) <EOL> ) <EOL> class AttributeValueAssertion ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , AttributeType ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , AttributeValue ( ) ) <EOL> ) <EOL> pkcs_7 = univ . ObjectIdentifier ( '<STR_LIT>' ) <EOL> data = univ . ObjectIdentifier ( '<STR_LIT>' ) <EOL> signedData = univ . ObjectIdentifier ( '<STR_LIT>' ) <EOL> envelopedData = univ . ObjectIdentifier ( '<STR_LIT>' ) <EOL> signedAndEnvelopedData = univ . ObjectIdentifier ( '<STR_LIT>' ) <EOL> digestedData = univ . ObjectIdentifier ( '<STR_LIT>' ) <EOL> encryptedData = univ . ObjectIdentifier ( '<STR_LIT>' ) <EOL> class ContentType ( univ . ObjectIdentifier ) : pass <EOL> class ContentEncryptionAlgorithmIdentifier ( AlgorithmIdentifier ) : pass <EOL> class EncryptedContent ( univ . OctetString ) : pass <EOL> class EncryptedContentInfo ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , ContentType ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , ContentEncryptionAlgorithmIdentifier ( ) ) , <EOL> namedtype . OptionalNamedType ( '<STR_LIT>' , EncryptedContent ( ) . subtype ( implicitTag = tag . Tag ( tag . tagClassContext , tag . tagFormatConstructed , <NUM_LIT:0> ) ) ) <EOL> ) <EOL> class Version ( univ . Integer ) : pass <EOL> class EncryptedData ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT:version>' , Version ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , EncryptedContentInfo ( ) ) <EOL> ) <EOL> class DigestAlgorithmIdentifier ( AlgorithmIdentifier ) : pass <EOL> class DigestAlgorithmIdentifiers ( univ . SetOf ) : <EOL> componentType = DigestAlgorithmIdentifier ( ) <EOL> class Digest ( univ . OctetString ) : pass <EOL> class ContentInfo ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , ContentType ( ) ) , <EOL> namedtype . OptionalNamedType ( '<STR_LIT:content>' , univ . Any ( ) . subtype ( explicitTag = tag . Tag ( tag . tagClassContext , tag . tagFormatConstructed , <NUM_LIT:0> ) ) ) <EOL> ) <EOL> class DigestedData ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT:version>' , Version ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , DigestAlgorithmIdentifier ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , ContentInfo ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , Digest ) <EOL> ) <EOL> class IssuerAndSerialNumber ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , Name ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , CertificateSerialNumber ( ) ) <EOL> ) <EOL> class KeyEncryptionAlgorithmIdentifier ( AlgorithmIdentifier ) : pass <EOL> class EncryptedKey ( univ . OctetString ) : pass <EOL> class RecipientInfo ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT:version>' , Version ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , IssuerAndSerialNumber ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , KeyEncryptionAlgorithmIdentifier ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , EncryptedKey ( ) ) <EOL> ) <EOL> class RecipientInfos ( univ . SetOf ) : <EOL> componentType = RecipientInfo ( ) <EOL> class Attributes ( univ . SetOf ) : <EOL> componentType = Attribute ( ) <EOL> class ExtendedCertificateInfo ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT:version>' , Version ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , Certificate ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , Attributes ( ) ) <EOL> ) <EOL> class SignatureAlgorithmIdentifier ( AlgorithmIdentifier ) : pass <EOL> class Signature ( univ . BitString ) : pass <EOL> class ExtendedCertificate ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , ExtendedCertificateInfo ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , SignatureAlgorithmIdentifier ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , Signature ( ) ) <EOL> ) <EOL> class ExtendedCertificateOrCertificate ( univ . Choice ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , Certificate ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , ExtendedCertificate ( ) . subtype ( implicitTag = tag . Tag ( tag . tagClassContext , tag . tagFormatConstructed , <NUM_LIT:0> ) ) ) <EOL> ) <EOL> class ExtendedCertificatesAndCertificates ( univ . SetOf ) : <EOL> componentType = ExtendedCertificateOrCertificate ( ) <EOL> class SerialNumber ( univ . Integer ) : pass <EOL> class CRLEntry ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , SerialNumber ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , useful . UTCTime ( ) ) <EOL> ) <EOL> class TBSCertificateRevocationList ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , AlgorithmIdentifier ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , Name ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , useful . UTCTime ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , useful . UTCTime ( ) ) , <EOL> namedtype . OptionalNamedType ( '<STR_LIT>' , univ . SequenceOf ( componentType = CRLEntry ( ) ) ) <EOL> ) <EOL> class CertificateRevocationList ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , TBSCertificateRevocationList ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , AlgorithmIdentifier ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , univ . BitString ( ) ) <EOL> ) <EOL> class CertificateRevocationLists ( univ . SetOf ) : <EOL> componentType = CertificateRevocationList ( ) <EOL> class DigestEncryptionAlgorithmIdentifier ( AlgorithmIdentifier ) : pass <EOL> class EncryptedDigest ( univ . OctetString ) : pass <EOL> class SignerInfo ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT:version>' , Version ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , IssuerAndSerialNumber ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , DigestAlgorithmIdentifier ( ) ) , <EOL> namedtype . OptionalNamedType ( '<STR_LIT>' , Attributes ( ) . subtype ( implicitTag = tag . Tag ( tag . tagClassContext , tag . tagFormatConstructed , <NUM_LIT:0> ) ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , DigestEncryptionAlgorithmIdentifier ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , EncryptedDigest ( ) ) , <EOL> namedtype . OptionalNamedType ( '<STR_LIT>' , Attributes ( ) . subtype ( implicitTag = tag . Tag ( tag . tagClassContext , tag . tagFormatConstructed , <NUM_LIT:1> ) ) ) <EOL> ) <EOL> class SignerInfos ( univ . SetOf ) : <EOL> componentType = SignerInfo ( ) <EOL> class SignedAndEnvelopedData ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT:version>' , Version ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , RecipientInfos ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , DigestAlgorithmIdentifiers ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , EncryptedContentInfo ( ) ) , <EOL> namedtype . OptionalNamedType ( '<STR_LIT>' , ExtendedCertificatesAndCertificates ( ) . subtype ( implicitTag = tag . Tag ( tag . tagClassContext , tag . tagFormatConstructed , <NUM_LIT:0> ) ) ) , <EOL> namedtype . OptionalNamedType ( '<STR_LIT>' , CertificateRevocationLists ( ) . subtype ( implicitTag = tag . Tag ( tag . tagClassContext , tag . tagFormatConstructed , <NUM_LIT:1> ) ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , SignerInfos ( ) ) <EOL> ) <EOL> class EnvelopedData ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT:version>' , Version ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , RecipientInfos ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , EncryptedContentInfo ( ) ) <EOL> ) <EOL> class DigestInfo ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT>' , DigestAlgorithmIdentifier ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , Digest ( ) ) <EOL> ) <EOL> class SignedData ( univ . Sequence ) : <EOL> componentType = namedtype . NamedTypes ( <EOL> namedtype . NamedType ( '<STR_LIT:version>' , Version ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , DigestAlgorithmIdentifiers ( ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , ContentInfo ( ) ) , <EOL> namedtype . OptionalNamedType ( '<STR_LIT>' , ExtendedCertificatesAndCertificates ( ) . subtype ( implicitTag = tag . Tag ( tag . tagClassContext , tag . tagFormatConstructed , <NUM_LIT:0> ) ) ) , <EOL> namedtype . OptionalNamedType ( '<STR_LIT>' , CertificateRevocationLists ( ) . subtype ( implicitTag = tag . Tag ( tag . tagClassContext , tag . tagFormatConstructed , <NUM_LIT:1> ) ) ) , <EOL> namedtype . NamedType ( '<STR_LIT>' , SignerInfos ( ) ) <EOL> ) <EOL> class Data ( univ . OctetString ) : pass </s>
